On Mon, Apr 27, 2015 at 01:55:30PM +0200, Remi Locherer wrote: > I rebuilt a kernel with /etc/mk.conf containing this: > > SUDO=/usr/bin/sudo > DEBUG=-g > #DEBUGLIB=-g > > But there are no line numbers in the ddb output (see end of dmesg). Is there > another why to build a kernel with debug symbols?
It doesn't work that way. To get line numbers, create a new kernel config file: cp GENERIC URTWN_DEBUG add this line to the URTWN_DEBUG config file: makeoptions DEBUG="-g" run 'config URTWN_DEBUG; cd ../compile/URTWN_DEBUG; make' and boot the resulting kernel. > > Something is going wrong in the IPv6 code. This problem is not specific > > to urtwn(4). The relevant part of the trace is: > > With a series of removals and insertions of the urtwn device I could > provoke another panic. I didn't wait for a timeout message to apear. > > This time no nd6_* or in6_* are visible in the trace. > > I updated kernel sources short before building the kernel. The suspected cause of your problem is a use-after-free. So panic details might vary since they depend on when and where the freed-and-subsequently-modified chunk of memory ends up being allocated again.