Re: fatm driver crashes upon startup

From: Harti Brandt <hartmut.brandt_at_dlr.de>
Date: Wed, 22 Jun 2005 10:04:32 +0200 (CEST)
On Tue, 21 Jun 2005, Craig Rodrigues wrote:

CR>Hi,
CR>
CR>I just started seeing this with latest -CURRENT.
CR>
CR>It looks like the fatm driver crashes somewhere in 
CR>the startup/probe stage.
CR>
CR>Any ideas?  Here is the stack trace.

This looks like fallout from the ifnet change. Utopia was definitely 
broken and I have committed a fix right now. The ioctl below would result 
in a call to utopia_media_status() which happend to assume that the struct 
ifnet is the first member of struct ifatm which isn't true anymore.

Could you check it with the newest utopia?

harti

CR>
CR>
CR>
CR>#0  doadump () at pcpu.h:165
CR>#1  0xc06658f4 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:397
CR>#2  0xc0665c09 in panic (fmt=0xc083ed4b "from debugger")
CR>    at /usr/src/sys/kern/kern_shutdown.c:553
CR>#3  0xc04bc4e1 in db_panic (addr=-1067421940, have_addr=0, count=-1,
CR>    modif=0xd0cb79b4 "") at /usr/src/sys/ddb/db_command.c:435
CR>#4  0xc04bc478 in db_command (last_cmdp=0xc0909564, cmd_table=0x0,
CR>    aux_cmd_tablep=0xc089e164, aux_cmd_tablep_end=0xc089e180)
CR>    at /usr/src/sys/ddb/db_command.c:349
CR>#5  0xc04bc540 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
CR>#6  0xc04be0c5 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221
CR>#7  0xc067e780 in kdb_trap (type=12, code=0, tf=0xd0cb7b50)
CR>    at /usr/src/sys/kern/subr_kdb.c:471
CR>#8  0xc0805cbb in trap_fatal (frame=0xd0cb7b50, eva=1800)
CR>    at /usr/src/sys/i386/i386/trap.c:826
CR>#9  0xc0805a07 in trap_pfault (frame=0xd0cb7b50, usermode=0, eva=1800)
CR>    at /usr/src/sys/i386/i386/trap.c:749
CR>#10 0xc0805671 in trap (frame=
CR>      {tf_fs = -792002552, tf_es = -1066926040, tf_ds = -1064107992, tf_edi = -1
CR>050205184, tf_esi = -1049042752, tf_ebp = -791970908, tf_isp = -791970948, tf_eb
CR>x = 1792, tf_edx = -1049042752, tf_ecx = 1, tf_eax = -1050273792, tf_trapno = 12
CR>, tf_err = 0, tf_eip = -1067421940, tf_cs = 32, tf_eflags = 66182, tf_esp = 0, t
CR>f_ss = -1064917763}) at /usr/src/sys/i386/i386/trap.c:439
CR>#11 0xc07f3c7a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
CR>#12 0xd0cb0008 in ?? ()
CR>#13 0xc0680028 in putchar (c=-1050205184, arg=0xc178e0c0)
CR>    at /usr/src/sys/kern/subr_prf.c:325
CR>#14 0xc06d0a53 in ifmedia_ioctl (ifp=0xc1661828, ifr=0x0, ifm=0xc178e0c0,
CR>    cmd=0) at /usr/src/sys/net/if_media.c:281
CR>#15 0xc0569c73 in fatm_ioctl (ifp=0xc1672400, cmd=0, arg=0xc178e0c0 "fatm0")
CR>    at /usr/src/sys/dev/fatm/if_fatm.c:2485
CR>#16 0xc06cbcb8 in ifhwioctl (cmd=3223873848, ifp=0xc1672400,
CR>    data=0xc178e0c0 "fatm0", td=0x0) at /usr/src/sys/net/if.c:1476
CR>#17 0xc06cbddf in ifioctl (so=0xc17d4000, cmd=3223873848,
CR>    data=0xc178e0c0 "fatm0", td=0xc1730000) at /usr/src/sys/net/if.c:1530
CR>#18 0xc068fb0f in soo_ioctl (fp=0x0, cmd=3223873848, data=0xc178e0c0,
CR>    active_cred=0xc153a780, td=0xc1730000)
CR>    at /usr/src/sys/kern/sys_socket.c:214
CR>#19 0xc068a3fc in ioctl (td=0xc1730000, uap=0xd0cb7d04) at file.h:258
CR>#20 0xc0805fa3 in syscall (frame=
CR>      {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = -1077942776, tf_esi = 3, tf_
CR>ebp = -1077942744, tf_isp = -791970460, tf_ebx = -1077942816, tf_edx = 134583422
CR>, tf_ecx = 0, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 671900123, tf_cs
CR> = 51, tf_eflags = 646, tf_esp = -1077942852, tf_ss = 59})
CR>    at /usr/src/sys/i386/i386/trap.c:976
CR>#21 0xc07f3ccf in Xint0x80_syscall ()
CR>    at /usr/src/sys/i386/i386/exception.s:200
CR>#22 0x0000003b in ?? ()
CR>
CR>
Received on Wed Jun 22 2005 - 06:04:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC