From nobody@FreeBSD.org  Tue Nov 19 14:49:19 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 889921FB
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Nov 2013 14:49:19 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5EA4F250E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Nov 2013 14:49:19 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAJEnIxl008616
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Nov 2013 14:49:18 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAJEnIYU008580;
	Tue, 19 Nov 2013 14:49:18 GMT
	(envelope-from nobody)
Message-Id: <201311191449.rAJEnIYU008580@oldred.freebsd.org>
Date: Tue, 19 Nov 2013 14:49:18 GMT
From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: process crash when dtrace is run: dtrace -n pid<PID>:::entry
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184085
>Category:       kern
>Synopsis:       [dtrace] process crash when dtrace is run: dtrace -n pid<PID>:::entry
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    markj
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 19 14:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Feb 22 03:04:17 UTC 2014
>Originator:     Patrick Dung
>Release:        FreeBSD 9.2 release
>Organization:
>Environment:
FreeBSD fbsd92pkg.local.nonet 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
1. I loaded dtrace kernel modules (dtrace.ko and dtraceall.ko)

2. Suppose I have a process (vi) with PID 32264.

3. When below command is run, the vi process core dumped.
pid 32264 (vi), uid 0: exited on signal 11 (core dumped)

# dtrace -n pid32264:::entry
dtrace: description 'pid32264:::entry' matched 2655 probes
CPU     ID                    FUNCTION:NAME
  0  60896                     malloc:entry
  0  60223                     memset:entry

# gdb vi vi.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `vi'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000000000008 in ?? ()
(gdb) where
#0  0x0000000000000008 in ?? ()
#1  0x0000000000414c49 in ?? ()
#2  0x00000000004099d1 in ?? ()
#3  0x0000000000409ef2 in ?? ()
#4  0x00000000004394c6 in ?? ()
#5  0x0000000000439685 in ?? ()
#6  0x000000000043a8ca in ?? ()
#7  0x000000000040c59a in ?? ()
#8  0x00000000004048a8 in ?? ()
#9  0x00000000004036e1 in ?? ()
#10 0x000000080066d000 in ?? ()
#11 0x0000000000000000 in ?? ()
>How-To-Repeat:
I have tried to replaced the PID of the vi process, eg. apache/database.
Still experienced core dump.
>Fix:


>Release-Note:
>Audit-Trail:

From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: "FreeBSD-gnats-submit@FreeBSD.org" <FreeBSD-gnats-submit@FreeBSD.org>,
  "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid<PID>:::entry
Date: Tue, 19 Nov 2013 23:28:35 +0800 (SGT)

 Just tested with FreeBSD 10-Beta 2, still have this issue.
 
From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org, patrick_dkt@yahoo.com.hk
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid&lt;PID&gt;:::entry
Date: Fri, 06 Dec 2013 21:13:11 -0800

 I want to note that only 'entry' probe causes the programs to crash, and 
 not 'return' ones.

From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: Yuri <yuri@rawbw.com>,
  "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
  "FreeBSD-gnats-submit@FreeBSD.org" <FreeBSD-gnats-submit@FreeBSD.org>,
  "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid<PID>:::entry
Date: Sat, 7 Dec 2013 17:22:11 +0800 (SGT)

 Resend the mail for Yuri.
 I have checked that the Yuri's reply did not get into the ticket system.
 
 
 
 
 On Saturday, December 7, 2013 1:13 PM, Yuri <yuri@rawbw.com> wrote:
 
 I want to note that only 'entry' probe causes the programs to crash, and 
 not 'return' ones.

From: Patrick Dung <patrick_dkt@yahoo.com.hk>
To: Yuri <yuri@rawbw.com>,
  "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
  "FreeBSD-gnats-submit@FreeBSD.org" <FreeBSD-gnats-submit@FreeBSD.org>,
  "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid<PID>:::entry
Date: Sat, 7 Dec 2013 17:22:11 +0800 (SGT)

 Resend the mail for Yuri.
 I have checked that the Yuri's reply did not get into the ticket system.
 
From: Yuri <yuri@rawbw.com>
To: Patrick Dung <patrick_dkt@yahoo.com.hk>,
        "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
        "FreeBSD-gnats-submit@FreeBSD.org" <FreeBSD-gnats-submit@FreeBSD.org>,
        "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid<PID>:::entry
Date: Sat, 07 Dec 2013 01:34:29 -0800

 On 12/07/2013 01:22, Patrick Dung wrote:
 >
 > I want to note that only 'entry' probe causes the programs to crash, and
 > not 'return' ones.
 
 
 Not sure why my message got lost.
 

From: Yuri <yuri@rawbw.com>
To: Patrick Dung <patrick_dkt@yahoo.com.hk>,
        "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
        "FreeBSD-gnats-submit@FreeBSD.org" <FreeBSD-gnats-submit@FreeBSD.org>,
        "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>
Cc:  
Subject: Re: kern/184085: process crash when dtrace is run: dtrace -n pid<PID>:::entry
Date: Sat, 07 Dec 2013 01:34:29 -0800

 On 12/07/2013 01:22, Patrick Dung wrote:
 >
 > I want to note that only 'entry' probe causes the programs to crash, and
 > not 'return' ones.
 
 
 Not sure why my message got lost.
 
Responsible-Changed-From-To: freebsd-bugs->markj 
Responsible-Changed-By: markj 
Responsible-Changed-When: Sun Dec 29 18:15:37 UTC 2013 
Responsible-Changed-Why:  
I'm working on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184085 
>Unformatted:
