tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ld core dumps when modload already builtin feature



I was trying to test if other modules would break my console per PR #38244
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=38244

So I attempt to load some modules but their features are already in 
kernel and their is a  multiple definition message and Seg fault:

tx:reed$ sudo modload /usr/lkm/tap.o                                           
/usr/lkm/tap.o: In function `tap_clone_destroyer':
: multiple definition of `tap_clone_destroyer'
ld: [1]   Segmentation fault (core dumped) ld -R /dev/ksyms...
modload: can't prelink `/usr/lkm/tap.o' creating `/usr/lkm/tap'

This also leaves a zero byte file under /usr/lkm -- you can see all my 
attempts:

tx:reed$ find /usr/lkm/ -size 0 -ls
3354692      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 14:23 /usr/lkm/union
3354707      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 14:23 /usr/lkm/ext2fs
3354710      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 14:51 /usr/lkm/smbfs
3354725      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 14:24 /usr/lkm/ntfs
3354736      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 14:24 /usr/lkm/deflate
3354735      0 -rw-r--r--    1 root              wheel                     
0 Mar 17 15:27 /usr/lkm/tap


No debugging and backtrace is one line:

Core was generated by `ld'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffda78808 in ?? ()
(gdb) bt
#0  0x00007f7ffda78808 in ?? ()
(gdb)


HEAD from today:

tx:reed$ uname -a
NetBSD tx.reedmedia.net 4.99.55 NetBSD 4.99.55 (GENERIC) #1: Mon Mar 17 
13:16:38 CDT 2008  
reed%tx.reedmedia.net@localhost:/usr/src/obj/sys/arch/amd64/compile/GENERIC 
amd64


  Jeremy C. Reed


Home | Main Index | Thread Index | Old Index