View Single Post
Old 02-20-2011, 12:03 PM   #29
scotsman
Enthusiast
scotsman doesn't litterscotsman doesn't litter
 
Posts: 32
Karma: 106
Join Date: Mar 2009
Device: irex DR1000S
DR1000 2.0RC3 Segmentation fault details

OK, what I get is this:
execute: modprobe arcotg_usb
this gives me output
ARC USBOTG Device Controller driver (1 August 2005)
usbotg_active: usbotg_init()
and no further line in dmesg output

when I then insmod g_ether.ko,
I get a segmentation fault immediately
dmesg -c gives me

g_ether: no version for "struct_module" found: kernel tainted.
Unable to handle kernel NULL pointer dereference at virtual address 0000009c
pgd = c72cc000
[0000009c] *pgd=872b0031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
Modules linked in: g_ether(F) arcotg_udc
CPU: 0 Tainted: GF (2.6.24-irex #2000)
PC is at eth_bind+0x290/0x6cc [g_ether]
LR is at alloc_netdev_mq+0xc4/0xdc
pc : [<bf007bdc>] lr : [<c01900bc>] psr: a0000013
sp : c72bde68 ip : c72bde30 fp : c72bdeb4
r10: c72a9540 r9 : c72a94c0 r8 : c7ffda00
r7 : bf00bfc0 r6 : 00000082 r5 : c7dfd800 r4 : 00000000
r3 : 00000000 r2 : 000000a0 r1 : c025f837 r0 : c7dfd800
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 00e5387f Table: 872cc000 DAC: 00000015
Process insmod (pid: 2296, stack limit = 0xc72bc260)
Stack: (0xc72bde68 to 0xc72be000)
de60: c027bb9a bf002570 00000001 00000028 c72a9248 0000002a
de80: c72bde9c c72a9480 c007234c c72651e0 bf00bf2c bf0048c8 00000001 00000028
dea0: c72a9248 0000002a c72bded4 c72bdeb8 bf000c70 bf007958 00000001 c72651e0
dec0: 00000001 bf00c220 c72bdee4 c72bded8 bf00e014 bf000b90 c72bdfa4 c72bdee8
dee0: c00667a0 bf00e00c 00000000 00000000 00000000 00000000 00000000 00000000
df00: 00000000 00000000 0000000d 00000000 00000000 00000000 0000000a 00000000
df20: 00000000 00000000 0000000b c88f62c0 c72cb680 c88decb9 c8898000 c88df448
df40: c88df0b0 c008dcc8 00000141 00000141 c72bc000 bf00c268 00000027 c88df470
df60: bf00c22c c88df498 00000029 c01f6174 c0269080 00000000 c72bdfa4 00000000
df80: 00080000 40149008 00000080 c0022084 c72bc000 00000003 00000000 c72bdfa8
dfa0: c0021f00 c00651a0 00000000 00080000 40149008 0005ef31 00012008 40146480
dfc0: 00000000 00080000 40149008 00000080 00012008 00000000 00000003 beeaab04
dfe0: beeaad69 beeaaacc 00008e30 400e5db4 60000010 40149008 00000000 00000000
Backtrace:
[<bf00794c>] (eth_bind+0x0/0x6cc [g_ether]) from [<bf000c70>] (usb_gadget_register_driver+0xec/0x210 [arcotg_udc])
[<bf000b84>] (usb_gadget_register_driver+0x0/0x210 [arcotg_udc]) from [<bf00e014>] (init+0x14/0x1c [g_ether])
r6:bf00c220 r5:00000001 r4:c72651e0
[<bf00e000>] (init+0x0/0x1c [g_ether]) from [<c00667a0>] (sys_init_module+0x160c/0x16ac)
[<c0065194>] (sys_init_module+0x0/0x16ac) from [<c0021f00>] (ret_fast_syscall+0x0/0x2c)
Code: 0a0000d5 e5954194 e3a03000 e28420a0 (e584309c)
---[ end trace a725123fb95d8b82 ]---

when I then lsmod, I get
Module Size Used by
g_ether 25672 1
arcotg_udc 18636 1 g_ether

Note that g_ether is listed as used. I then cannot remove g_ether by rmmod g_ether, as I then get an error that the module is in use
scotsman is offline   Reply With Quote