segfault in configuring linux-restricted modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
module-init-tools |
Unknown
|
Unknown
|
|||
module-init-tools (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
I upgraded to edgy a couple of days ago, and on one of my machines, apt-get is unable to configure linux-restricte
Can't say why it's acting like that, anyway I recompiled module-init-tools with debugging symbols and obtained the following:
(gdb) handle SIG33 pass nostop noprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) run -a -q -F /boot/System.
Starting program: /sbin/depmod -a -q -F /boot/System.
Program received signal SIGSEGV, Segmentation fault.
0x0804a1e4 in main (argc=6, argv=0xbfca9fd4) at ../depmod.c:151
151 ptr = strchr(line, '\n');
(gdb) thread apply all bt
(gdb)
(gdb) backtrace
#0 0x0804a1e4 in main (argc=6, argv=0xbfca9fd4) at ../depmod.c:151
Hope it helps.
Changed in module-init-tools: | |
importance: | Undecided → Low |
status: | Unconfirmed → Confirmed |
Changed in module-init-tools: | |
status: | Unknown → Confirmed |
Ok, found the cause. I misconfigured lilo.conf and so System.map got corrupted. Anyway I think assigning a char to a pointer that could be null is still a bug. (maybe using strchrnul could be the case?) :)