Re: PANIC: Most recently used by bus

2002-11-27 Thread Aurelien Nephtali
On Wed, Nov 27, 2002 at 12:43:23AM -0700, M. Warner Losh wrote:
 In message: [EMAIL PROTECTED]
 M. Warner Losh [EMAIL PROTECTED] writes:
 : In message: [EMAIL PROTECTED]
 : Aurelien Nephtali [EMAIL PROTECTED] writes:
 : : I've got a panic by unplugging my NIC then plugging it again and then doing
 : : a dhclient interface. I've attached some informations about the panic.
 : 
 : Kill the dhclient after you unplug the interface, but before you plug
 : it back in.

I've killed it before, as always.

 
 This can also be caused by a bug in the network driver.  If it failed
 to attach for some reason, but created (and not destroyed) a mutex,
 then the WITNESS code will modify the softc after it has been freed,
 trigging the panic you described.
 
 Warner

Yes, I think it's a bug too. I've already unplugged/plugged my NIC in the past
without any problem (and always with WITNESS enabled) so maybe it's a new bug
introduced recently, but I've not seen any commit about if_ed recently.

-- Aurélien



msg47581/pgp0.pgp
Description: PGP signature


Re: PANIC: Most recently used by bus

2002-11-27 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Aurelien Nephtali [EMAIL PROTECTED] writes:
: Yes, I think it's a bug too. I've already unplugged/plugged my NIC in the past
: without any problem (and always with WITNESS enabled) so maybe it's a new bug
: introduced recently, but I've not seen any commit about if_ed recently.

So which card are you using?

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



PANIC: Most recently used by bus

2002-11-26 Thread Aurelien Nephtali
Hi,

I've got a panic by unplugging my NIC then plugging it again and then doing
a dhclient interface. I've attached some informations about the panic.

-- Aurélien

Script started on Tue Nov 26 20:17:13 2002

nebula# /sys/i386/compile/NEBULAggdb -k

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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 i386-undermydesk-freebsd.
(kgdb) symbol-file kernel.debug 
Reading symbols from kernel.debug...done.
(kgdb) exec-file /boot/kernel/kernel
(kgdb) core-file /var/crash/vmcore.0 
panic: from debugger
panic messages:
---
panic: Most recently used by bus

panic: from debugger
Uptime: 2h0m15s
Dumping 123 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112
---
#0  doadump () at ../../../kern/kern_shutdown.c:232
232 dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:232
#1  0xc0216bfe in boot (howto=260) at ../../../kern/kern_shutdown.c:364
#2  0xc0216e43 in panic () at ../../../kern/kern_shutdown.c:517
#3  0xc013bed2 in db_panic () at ../../../ddb/db_command.c:450
#4  0xc013be52 in db_command (last_cmdp=0xc039cee0, cmd_table=0x0, 
aux_cmd_tablep=0xc0397a0c, aux_cmd_tablep_end=0xc0397a10)
at ../../../ddb/db_command.c:346
#5  0xc013bf66 in db_command_loop () at ../../../ddb/db_command.c:472
#6  0xc013ebfa in db_trap (type=3, code=0) at ../../../ddb/db_trap.c:72
#7  0xc032eed2 in kdb_trap (type=3, code=0, regs=0xc9077910)
at ../../../i386/i386/db_interface.c:166
#8  0xc033fabf in trap (frame=
  {tf_fs = -1061945320, tf_es = -922288112, tf_ds = -1071644656, tf_edi = 
-1045057088, tf_esi = 256, tf_ebp = -922257060, tf_isp = -922257092, tf_ebx = 0, 
tf_edx = 0, tf_ecx = 3840, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = 
-1070403212, tf_cs = 8, tf_eflags = 658, tf_esp = -1070001757, tf_ss = -1070110374})
at ../../../i386/i386/trap.c:603
#9  0xc03306a8 in calltrap () at {standard input}:98
#10 0xc0216e2b in panic (fmt=0x0) at ../../../kern/kern_shutdown.c:503
#11 0xc0311c4d in mtrash_ctor (mem=0xc1820800, size=0, arg=0x0)
at ../../../vm/uma_dbg.c:138
#12 0xc0310667 in uma_zalloc_arg (zone=0xc0b4c3c0, udata=0x0, flags=0)
at ../../../vm/uma_core.c:1358
#13 0xc020b626 in malloc (size=6, type=0xc03c14e0, flags=0)
---Type return to continue, or q return to quit---
at ../../../kern/kern_malloc.c:182
#14 0xc01f1b73 in exec_elf32_imgact (imgp=0xc9077b88) at imgact_elf.c:804
#15 0xc01feae2 in kern_execve (td=0xc1b5b1c0, fname=---Can't read userspace from dump, 
or kernel process---

)
at ../../../kern/kern_exec.c:313
#16 0xc01ff570 in execve (td=0x0, uap=0x0) at ../../../kern/kern_exec.c:694
#17 0xc034039e in syscall (frame=
  {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 135274340, tf_esi = 135274500, 
tf_ebp = -1077938104, tf_isp = -922256012, tf_ebx = 0, tf_edx = 135274500, tf_ecx = 
135274500, tf_eax = 59, tf_trapno = 12, tf_err = 2, tf_eip = 134723367, tf_cs = 31, 
tf_eflags = 646, tf_esp = -1077938132, tf_ss = 47})
at ../../../i386/i386/trap.c:1033
#18 0xc03306fd in Xint0x80_syscall () at {standard input}:140
---Can't read userspace from dump, or kernel process---

(kgdb) frame 11
#11 0xc0311c4d in mtrash_ctor (mem=0xc1820800, size=0, arg=0x0)
at ../../../vm/uma_dbg.c:138
138 panic(Most recently used by %s\n, (*ksp == NULL)?
(kgdb) list
133 
134 for (p = mem; cnt  0; cnt--, p++)
135 if (*p != uma_junk) {
136 printf(Memory modified after free %p(%d)\n,
137 mem, size);
138 panic(Most recently used by %s\n, (*ksp == NULL)?
139 none : (*ksp)-ks_shortdesc);
140 }
141 }
142 
(kgdb) p p
$1 = (u_int32_t *) 0x0
(kgdb) p uma_junk
$2 = 3735929054
(kgdb) quit

nebula# /sys/i386/compile/NEBULAeexit


Script done on Tue Nov 26 20:18:30 2002




msg47532/pgp0.pgp
Description: PGP signature


Re: PANIC: Most recently used by bus

2002-11-26 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Aurelien Nephtali [EMAIL PROTECTED] writes:
: I've got a panic by unplugging my NIC then plugging it again and then doing
: a dhclient interface. I've attached some informations about the panic.

Kill the dhclient after you unplug the interface, but before you plug
it back in.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: PANIC: Most recently used by bus

2002-11-26 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
M. Warner Losh [EMAIL PROTECTED] writes:
: In message: [EMAIL PROTECTED]
: Aurelien Nephtali [EMAIL PROTECTED] writes:
: : I've got a panic by unplugging my NIC then plugging it again and then doing
: : a dhclient interface. I've attached some informations about the panic.
: 
: Kill the dhclient after you unplug the interface, but before you plug
: it back in.

This can also be caused by a bug in the network driver.  If it failed
to attach for some reason, but created (and not destroyed) a mutex,
then the WITNESS code will modify the softc after it has been freed,
trigging the panic you described.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message