Bug #31

panic

Added by steve.mynott over 8 years ago. Updated over 7 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

panic: assertion: s->last_td != curthread in lwkt_serialize_enter

dumping to dev #ad/0x20001, offset 1541344
dump ata0: resetting devices .. done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239
238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222
221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205
204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188
187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171
170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154
153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137
136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120
119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103
102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58
57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35
34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12
11 10 9 8 7 6 5 4 3 2 1 0
---
#0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:527
527 if (dumping++) {
dumpsys () at /usr/src/sys/kern/kern_shutdown.c:527
527 if (dumping++) {
(kgdb) bt full
#1 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:527
error = 11
#1 0xc01624a9 in db_fncall (dummy1=1936, dummy2=0, dummy3=-825886832,
dummy4=0xcec5f78c "Ï\a") at /usr/src/sys/ddb/db_command.c:548
fn_addr = -1070947490
args = {0 <repeats 11 times>}
nargs = 11
retval = 0
func = (fcn_10args_t *) 0xc02aa35e <dumpsys>
t = 0
#2 0xc0162263 in db_command (last_cmdp=0xc05a9950, cmd_table=0x0,
aux_cmd_tablep=0xc054d450, aux_cmd_tablep_end=0xc054d468)
at /usr/src/sys/ddb/db_command.c:345
cmd = (struct command *) 0xc0556100
t = 0
modif =
"Ï\a\000\000\000\000\000\000à\024_Àà\024_À\000\000\000\000´÷ÅÎR0IÀ\001\000\000\000\001\000\000\000à\024_ÀÔ÷ÅÎÚ.IÀû^À\aK\000
x\000\000\000@¢ZÀ\000\000\000\000ì÷ÅÎ\203<\026ÀøóOÀ³ìJÀx\000\000\000´æJÀ\000\000\000\000@¢ZÀ\0176\026À@¢ZÀ\200\231ZÀx\000\000\000\003\000\000"
addr = 1936
count = -825886832
have_addr = 0
result = 0
#3 0xc0162343 in db_command_loop () at /usr/src/sys/ddb/db_command.c:471
No locals.
#4 0xc0165020 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:72
bkpt = 0
#5 0xc049c020 in kdb_trap (type=3, code=0, regs=0xcec5f8a4)
at /usr/src/sys/i386/i386/db_interface.c:150
ddb_mode = 1
#6 0xc04b0592 in trap (frame=
{tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 1, tf_esi =
-1068287628, tf_ebp = -825886484, tf_isp = -825886512, tf_ebx = 256,
tf_edx = -1072988160, tf_ec---Type <return> to continue, or q <return>
to quit---
x = 32, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1068907658,
tf_cs = 8, tf_eflags = 662, tf_esp = -1068410640, tf_ss =
-1068483665})
at /usr/src/sys/i386/i386/trap.c:811
gd = (struct globaldata *) 0x3
td = (struct thread *) 0xc60ae600
lp = (struct lwp *) 0xc60a99d4
p = (struct proc *) 0xc60a9860
sticks = 42
i = 0
ucode = 0
type = 3
code = 0
eva = 0
__func__ = "trap"
#7 0xc049d2ff in calltrap () at /usr/src/sys/i386/i386/exception.s:774
No locals.
#8 0x00000018 in ?? ()
No symbol table info available.
#9 0x00000010 in ?? ()
No symbol table info available.
#10 0x00000010 in ?? ()
No symbol table info available.
#11 0x00000001 in ?? ()
No symbol table info available.
#12 0xc0533974 in ?? ()
No symbol table info available.
#13 0xcec5f8ec in ?? ()
No symbol table info available.
#14 0xcec5f8d0 in ?? ()
No symbol table info available.
#15 0x00000100 in ?? ()
No symbol table info available.
#16 0xc00b8000 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#17 0x00000020 in ?? ()
No symbol table info available.
#18 0x00000012 in ?? ()
No symbol table info available.
#19 0x00000003 in ?? ()
No symbol table info available.
#20 0x00000000 in ?? ()
No symbol table info available.
#21 0xc049c376 in Debugger (msg=0x0) at cpufunc.h:68
in_Debugger = 1 '\001'
#22 0xc02aa5c6 in panic (
fmt=0xc0533974 "assertion: s->last_td != curthread in %s")
at /usr/src/sys/kern/kern_shutdown.c:671
bootopt = 256
newpanic = 1
buf = "assertion: s->last_td != curthread in
lwkt_serialize_enter", '\0' <repeats 197 times>
#23 0xc02b1ceb in lwkt_serialize_enter (s=0xc9876198)
at /usr/src/sys/kern/lwkt_serialize.c:77
__func__ = "lwkt_serialize_enter"
#24 0xc032965a in in_control (so=0x0, cmd=2149607705, data=0xcec5f994 "",
ifp=0xc9876000, td=0x0) at /usr/src/sys/netinet/in.c:458
ifr = (struct ifreq *) 0xcec5f994
ia = (struct in_ifaddr *) 0xc12128c8
iap = (struct in_ifaddr *) 0x0
ifa = (struct ifaddr *) 0x0
dst = {s_addr = 33619978}
ifra = (struct in_aliasreq *) 0xcec5f994
oldaddr = {sin_len = 176 '°', sin_family = 124 '|', sin_port = 49445,
sin_addr = {s_addr = 64}, sin_zero = "xùÅÎ\224\004\200ÿ"}
hostIsNew = -2145359591
iaIsNew = 0
---Type <return> to continue, or q <return> to quit---
maskIsNew = 0
error = 0
#25 0xc030cd94 in if_detach (ifp=0xc9876000) at /usr/src/sys/net/if.c:352
ifr = {ifra_name = '\0' <repeats 15 times>, ifra_addr = {
sa_len = 16 '\020', sa_family = 2 '\002',
sa_data = "\000\000\n\000\001\002\000\000\000\000\000\000\000"},
ifra_broadaddr = {sa_len = 16 '\020', sa_family = 2 '\002',
sa_data = "\000\000\n\000\001ÿ\000\000\000\000\000\000\000"}, ifra_mask = {
sa_len = 0 '\0', sa_family = 0 '\0', sa_data = '\0' <repeats 13 times>}}
ifa = (struct ifaddr *) 0xc12128c8
rnh = (struct radix_node_head *) 0x0
i = -1054791480
dp = (struct domain *) 0xc12128c8
#26 0xc0310453 in ether_ifdetach (ifp=0xc9876000)
at /usr/src/sys/net/if_ethersubr.c:866
No locals.
#27 0xc031e232 in ieee80211_ifdetach (ifp=0xc9876000)
at /usr/src/sys/netproto/802_11/ieee80211.c:165
No locals.
#28 0xc0279252 in wi_detach (dev=0xc612c5e8)
at /usr/src/sys/dev/netif/wi/if_wi.c:516
sc = (struct wi_softc *) 0xc9876000
#29 0xc02ba471 in device_detach (dev=0xc612c5e8) at device_if.h:48
No locals.

#30 0xc0396cbe in pccard_detach_card (dev=0xc612b700)
at /usr/src/sys/bus/pccard/pccard.c:277
state = 0
sc = (struct pccard_softc *) 0xc12a4328
pf = (struct pccard_function *) 0xc1169f00
cfe = (struct pccard_config_entry *) 0x0
#31 0xc0397dae in pccard_shutdown (self=0xc612b700)
at /usr/src/sys/bus/pccard/pccard.c:804
No locals.
---Type <return> to continue, or q <return> to quit---
#32 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#33 0xc016b8ee in cbb_shutdown (brdev=0xc612b3e8)
at /usr/src/sys/dev/pccard/pccbb/pccbb.c:774
devlist = (device_t *) 0xc1061740
numdevs = 2
i = 1
#34 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#35 0xc02bb7b8 in bus_generic_shutdown (dev=0x0)
at /usr/src/sys/kern/subr_bus.c:1903
child = 0xc612b3e8
#36 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#37 0xc02bb7b8 in bus_generic_shutdown (dev=0x0)
at /usr/src/sys/kern/subr_bus.c:1903
child = 0xc612b310
#38 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#39 0xc02bb7b8 in bus_generic_shutdown (dev=0x0)
at /usr/src/sys/kern/subr_bus.c:1903
child = 0xc612b2c8
#40 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#41 0xc02bb7b8 in bus_generic_shutdown (dev=0x0)
at /usr/src/sys/kern/subr_bus.c:1903
child = 0xc612b280
#42 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
No locals.
#43 0xc02bb7b8 in bus_generic_shutdown (dev=0x0)
at /usr/src/sys/kern/subr_bus.c:1903
child = 0xc612b1a8
#44 0xc02ba563 in device_shutdown (dev=0x0) at device_if.h:57
---Type <return> to continue, or q <return> to quit---
No locals.
#45 0xc02bcfda in root_bus_module_handler (mod=0xc97e96d8, what=0, arg=0x0)
at /usr/src/sys/kern/subr_bus.c:2480
No locals.
#46 0xc028f598 in module_shutdown (arg1=0x0, arg2=0)
at /usr/src/sys/kern/kern_module.c:86
mod = 0xc97e96d8

#47 0xc02aa0e2 in boot (howto=0) at /usr/src/sys/kern/kern_shutdown.c:357
_el = (struct eventhandler_list *) 0x0
_ep = (struct eventhandler_entry *) 0xc1080f48
#48 0xc02a9c64 in reboot (uap=0x0) at /usr/src/sys/kern/kern_shutdown.c:172
td = (struct thread *) 0x0
error = 0
#49 0xc04b0f2b in syscall2 (frame=
{tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = 5,
tf_ebp = -1077938176, tf_isp = -825885324, tf_ebx = 2, tf_edx = -1,
tf_ecx = 134827424, tf_eax = 55, tf_trapno = 12, tf_err = 2, tf_eip =
134516360, tf_cs = 31, tf_eflags = 582, tf_esp = -1077938260, tf_ss =
47}) at /usr/src/sys/i386/i386/trap.c:1420
td = (struct thread *) 0xc60ae600
p = (struct proc *) 0xc60a9860
lp = (struct lwp *) 0xc60a99d4
params = 0xbfbff7b0---Can't read userspace from dump, or
kernel process---

(kgdb)

History

#1 Updated by swildner over 8 years ago

Steve Mynott wrote:
> panic: assertion: s->last_td != curthread in lwkt_serialize_enter

Is this with the source from before or after sephe's ifdetach() commit
(ca. 3.5 hours ago)?

Sascha

#2 Updated by dillon over 8 years ago

I tested wi0 with the most recent ifdetach commits with a linksys card
on my laptop and it seemed to work.

I have committed fixes for NDIS to HEAD and it appears to work properly
now too. Anyone using NDIS must remember to recompile the kld manually
(following the README file in /usr/src/sys/dev/netif/ndis), since the
kernel build will not do it for you.

I will be getting all this stuff into RELEASE today and will then roll
RC2.

-Matt
Matthew Dillon
<>

Also available in: Atom PDF