[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libc causes exception 0xd
I followed the advice in the RTLinux FAQ and added "-lm -lc" to my linker
command file, i.e.,
ld -r -static -o rt_module.o rt_module_cc.o -L/usr/lib -lm -lc
to resolve some library symbols, but now I get the following error when my
code starts:
May 23 09:18:38 gw7332 kernel: rtl_debug: exception 0xd in rt_module
(EIP=0xc483ab43), thread id 0xc25a8200; (re)start GDB to debug
May 23 09:18:47 gw7332 kernel: Unable to handle kernel paging request at
virtual address c488b5ab
May 23 09:18:47 gw7332 kernel: current->tss.cr3 = 00101000, %%cr3 = 00101000
May 23 09:18:47 gw7332 kernel: *pde = 0406a063
May 23 09:18:47 gw7332 kernel: *pte = 00000000
May 23 09:18:47 gw7332 kernel: Oops: 0000
May 23 09:18:47 gw7332 kernel: CPU: 0
May 23 09:18:47 gw7332 kernel: EIP: 0010:[<c01121dc>]
May 23 09:18:47 gw7332 kernel: EFLAGS: 00010286
May 23 09:18:47 gw7332 kernel: eax: 00000001 ebx: c0957800 ecx:
00000000 edx: 00000000
May 23 09:18:47 gw7332 kernel: esi: c488b59f edi: c1dc51e0 ebp:
c1fabf90 esp: c1fabf68
May 23 09:18:47 gw7332 kernel: ds: 0018 es: 0018 ss: 0018
May 23 09:18:47 gw7332 kernel: Process rmmod (pid: 1784, process nr: 69,
stackpage=c1fab000)
May 23 09:18:47 gw7332 kernel: Stack: c1dc51e0 c4831c2d c0254000 c1fabf7c
c4831e35 c1faa000 c011928b c0957800
May 23 09:18:47 gw7332 kernel: 00000020 00000200 00000001 c0119591
c1faa000 401041bc 00000000 bffff4b8
May 23 09:18:47 gw7332 kernel: 00000400 c1fabfb4 c1faa000 00000200
c01195a7 00000000 c0107b24 00000000
May 23 09:18:47 gw7332 kernel: Call Trace: [<c4831c2d>] [<c4831e35>]
[<c011928b>] [<c0119591>] [<c01195a7>] [<c0107b24>]
May 23 09:18:47 gw7332 kernel: Code: 8b 46 0c 8b 4e 08 89 f2 8b 36 f0 83 44
24 00 00 c7 42 04 00
I don't have the problem if I just use "-lm", but some additional software
I will need to include requires "-lc" to resolve some symbols.
I am using rtlinux-3.0 compiled into
Linux version 2.2.18-rtl (root@gw7332.draper.com) (gcc driver version
2.95.3 19991030 (prerelease) executing gcc version egcs-2.91.66) #2 SMP Thu
Apr 12 06:52:39 EDT 2001
Any ideas on what is causing the problem and how to fix it? Thanks for any
help. Steve
Steve Friend
617-258-2234 phone
617-258-3858 fax