Re: dtrace ustack kernel panic

2011-08-03 Thread Andriy Gapon
on 03/08/2011 11:42 Andriy Gapon said the following: > on 03/08/2011 03:47 maestro something said the following: >> now it seems that the ustack() action on i386 and FreeBSD-9.0BETA1 almost >> works. >> >> Almost because dtrace still exits (this time without an error message) The >> process for wh

Re: dtrace ustack kernel panic

2011-08-03 Thread Andriy Gapon
on 03/08/2011 03:47 maestro something said the following: > now it seems that the ustack() action on i386 and FreeBSD-9.0BETA1 almost > works. > > Almost because dtrace still exits (this time without an error message) The > process for which the ustack should be genereated is terminated > Here ar

Re: dtrace ustack kernel panic

2011-08-03 Thread Andriy Gapon
on 03/08/2011 01:46 maestro something said the following: > What do I have to recompile for the patch to be picked up? > make libproc in /usr/src/lib Correct way is: $ cd /usr/src/lib/libproc $ make obj $ make depend $ make $ make install -- Andriy Gapon _

Re: dtrace ustack kernel panic

2011-08-03 Thread Andriy Gapon
on 03/08/2011 01:39 maestro something said the following: > hm userland and CTF not that I know. I only recompiled the kernel with CTF. > Do I > have to recompile userland (and would that be make world?) If so can i just > pass > the same WITH_CTF=1 option to make? I _think_ (as in: not sure) th

Re: dtrace ustack kernel panic

2011-08-02 Thread maestro something
Hi, > Hi, > > > > diff --git a/lib/libproc/proc_create.c b/lib/libproc/proc_create.c > >> index c372a47..9bd24a2 100644 > >> --- a/lib/libproc/proc_create.c > >> +++ b/lib/libproc/proc_create.c > >> @@ -79,12 +79,11 @@ proc_attach(pid_t pid, int flags, struct proc_handle > >> **pphdl) > >>

Re: dtrace ustack kernel panic

2011-08-02 Thread Kevin Oberman
On Tue, Aug 2, 2011 at 3:46 PM, maestro something wrote: > Hi, > > diff --git a/lib/libproc/proc_create.c b/lib/libproc/proc_create.c >> index c372a47..9bd24a2 100644 >> --- a/lib/libproc/proc_create.c >> +++ b/lib/libproc/proc_create.c >> @@ -79,12 +79,11 @@ proc_attach(pid_t pid, int flags, stru

Re: dtrace ustack kernel panic

2011-08-02 Thread maestro something
Hi, diff --git a/lib/libproc/proc_create.c b/lib/libproc/proc_create.c > index c372a47..9bd24a2 100644 > --- a/lib/libproc/proc_create.c > +++ b/lib/libproc/proc_create.c > @@ -79,12 +79,11 @@ proc_attach(pid_t pid, int flags, struct proc_handle > **pphdl) >else >phdl->stat

Re: dtrace ustack kernel panic

2011-08-02 Thread maestro something
Hi, > > http://freebsd.1045724.n5.nabble.com/bin-158431-dtrace-crash-in-dt-proc-lookup-when-attaching-to-PID-assert-dpr-NULL-tt4535367.html#none > > Kind of a mentoring note: it would be much shorter and much more useful to > paste > "PR 158431" or, even better, an http URL to the said PR in FreeB

Re: dtrace ustack kernel panic

2011-08-02 Thread Andriy Gapon
on 03/08/2011 00:03 Andriy Gapon said the following: > I tried to run dtruss (as you did) and I got this pre-amble before the > assertion: > [some dtrace script body] > : probe description proc:::exit does not match any probes > > I guess that in my case I got it because my userland was not compi

Re: dtrace ustack kernel panic

2011-08-02 Thread Andriy Gapon
on 02/08/2011 20:46 maestro something said the following: > Hi, > > just finished installing FreeBSD-9BETA1 and recompiling the kernel with > dtrace. > > This is even worse, I have the same behavior as mentioned here: > http://freebsd.1045724.n5.nabble.com/bin-158431-dtrace-crash-in-dt-proc-look

Re: dtrace ustack kernel panic

2011-08-02 Thread maestro something
Hi, This is even worse, I have the same behavior as mentioned here: > > http://freebsd.1045724.n5.nabble.com/bin-158431-dtrace-crash-in-dt-proc-lookup-when-attaching-to-PID-assert-dpr-NULL-tt4535367.html#none > > i.e., dtrace regardless of whether with or without any probes just quits > with the f

Re: dtrace ustack kernel panic

2011-08-02 Thread maestro something
Hi, just finished installing FreeBSD-9BETA1 and recompiling the kernel with dtrace. This is even worse, I have the same behavior as mentioned here: http://freebsd.1045724.n5.nabble.com/bin-158431-dtrace-crash-in-dt-proc-lookup-when-attaching-to-PID-assert-dpr-NULL-tt4535367.html#none i.e., dtrac

Re: dtrace ustack kernel panic

2011-08-01 Thread maestro something
Running the same example on amd64 has the same behavior as on i386 (granted the backtrace is slightly different). That is, the kernel panics immediately when you use the ustack() action. Furthermore, the crashdump does not provide the nececcary information to get at the root of the cause (i.e., no

Re: dtrace ustack kernel panic

2011-07-31 Thread Alex Samorukov
Hi, I just tried your test on -STABLE + 1 fix from current [1] and got no trap. dtrace: buffer size lowered to 2m CPU IDFUNCTION:NAME 4 42224accept:return nc accept:return Assertion failed: (dpr != NULL), file /usr/src/cddl/lib/libdtrace/../../../

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
Hi, > This is i386, right ? >> I think the cause is that assembler routine panic_trigger does not >> establish the standard i386 frame. Basically, you need either this, >> or dwarf annotations, for gdb to be able to walk over the frame. >> >> You need to add the standard prologue >>pushl

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
Hi, This is i386, right ? > I think the cause is that assembler routine panic_trigger does not > establish the standard i386 frame. Basically, you need either this, > or dwarf annotations, for gdb to be able to walk over the frame. > > You need to add the standard prologue >pushl %ebp >

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
Hi, on 30/07/2011 23:03 maestro something said the following: > > (kgdb) list *dtrace_probe+0xfd6 > > No source file for address 0xc10fa6a6. > > Are the sources on the same machine? > This is probably the last idea from me. > Yes all is done on the same (virtual 32bit) machine. Sources are there

Re: dtrace ustack kernel panic

2011-07-30 Thread Andriy Gapon
on 30/07/2011 23:03 maestro something said the following: > (kgdb) list *dtrace_probe+0xfd6 > No source file for address 0xc10fa6a6. Are the sources on the same machine? This is probably the last idea from me. -- Andriy Gapon ___ freebsd-stable@freebsd

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
Hi, On Sat, Jul 30, 2011 at 12:52 PM, Andriy Gapon wrote: > on 30/07/2011 22:05 maestro something said the following: > > fb82i386# cat /etc/make.conf > > CFLAGS= -O > > > > (accodring to man make.conf only -O and -O2 is supported for CFLAGS > anyways) > > > > kernel.debug is the newly compiled

Re: dtrace ustack kernel panic

2011-07-30 Thread Andriy Gapon
on 30/07/2011 22:05 maestro something said the following: > fb82i386# cat /etc/make.conf > CFLAGS= -O > > (accodring to man make.conf only -O and -O2 is supported for CFLAGS anyways) > > kernel.debug is the newly compiled kernel (according to the timestamp) > > fb82i386# kgdb kernel.debug /var/c

Re: dtrace ustack kernel panic

2011-07-30 Thread Kostik Belousov
On Sat, Jul 30, 2011 at 12:05:33PM -0700, maestro something wrote: > Hi, > > > >> Have you started kgdb with the correct kernel and core file? > >> If yes, then I am out of ideas. > >> > > > > I hope so, I only recompiled the kernel once according to the DTRACE wiki > > instructions and I certain

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
Hi, >> Have you started kgdb with the correct kernel and core file? >> If yes, then I am out of ideas. >> > > I hope so, I only recompiled the kernel once according to the DTRACE wiki > instructions and I certainly only have one /var/crash/vmcore.* file. > > I'll try recompiling the kernel with -

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
On Sat, Jul 30, 2011 at 11:27 AM, Andriy Gapon wrote: > on 30/07/2011 21:19 maestro something said the following: > > > > > > On Sat, Jul 30, 2011 at 12:50 AM, Andriy Gapon > > wrote: > > > > on 30/07/2011 00:27 maestro something said the following: > > > Hi, > >

Re: dtrace ustack kernel panic

2011-07-30 Thread Andriy Gapon
on 30/07/2011 21:19 maestro something said the following: > > > On Sat, Jul 30, 2011 at 12:50 AM, Andriy Gapon > wrote: > > on 30/07/2011 00:27 maestro something said the following: > > Hi, > > > > trying to do so I don't really find my way around. This

Re: dtrace ustack kernel panic

2011-07-30 Thread maestro something
On Sat, Jul 30, 2011 at 12:50 AM, Andriy Gapon wrote: > on 30/07/2011 00:27 maestro something said the following: > > Hi, > > > > trying to do so I don't really find my way around. This is what I get > when I run > > kgdb > > > > On startup the assert frame is #7 and the probe frame is #8. > > >

Re: dtrace ustack kernel panic

2011-07-30 Thread Andriy Gapon
on 30/07/2011 00:27 maestro something said the following: > on 30/07/2011 10:50 Andriy Gapon said the following: >> #7 0xc11012d7 in dtrace_panic_trigger () from /boot/kernel/dtrace.ko >> > Previous frame inner to this frame (corrupt stack?) >> > (kgdb) >> > >> > what am I doing wrong and what do

Re: dtrace ustack kernel panic

2011-07-30 Thread Andriy Gapon
on 30/07/2011 00:27 maestro something said the following: > Hi, > > trying to do so I don't really find my way around. This is what I get when I > run > kgdb > > On startup the assert frame is #7 and the probe frame is #8. > [snip] > kernel trap 12 with interrupts disabled > > > Fatal trap 12

Re: dtrace ustack kernel panic

2011-07-29 Thread maestro something
Hi, trying to do so I don't really find my way around. This is what I get when I run kgdb On startup the assert frame is #7 and the probe frame is #8. kgdb kernel.debug /var/crash/vmcore.0 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the

Re: dtrace ustack kernel panic

2011-07-26 Thread Andriy Gapon
on 26/07/2011 04:20 maestro something said the following: > Hi, > > when using the ustack action on the latest FreeBSD8.2 i386 the kernel > panics. > > Here is the information I could gather: > > let me know if I can provide more information. (i.e., i have the full crash > information 80+mbs han