Bug 202927 - depmod segfaults
Summary: depmod segfaults
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: module-init-tools
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jon Masters
QA Contact:
URL: http://konstantin.antselovich.com/arc...
Whiteboard:
Depends On:
Blocks: 202961
TreeView+ depends on / blocked
 
Reported: 2006-08-17 10:27 UTC by Konstantin Antselovich
Modified: 2008-03-12 14:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-12 14:04:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
acpidump output SORRY: attached to the wrong bug# -- pls disregard (68.56 KB, application/octet-stream)
2006-08-17 10:38 UTC, Konstantin Antselovich
no flags Details

Description Konstantin Antselovich 2006-08-17 10:27:17 UTC
Description of problem:

depmod segfaults 

Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:
1. delete direcory /lib/modules/$kernel_verion/updates
2. run depmod

  
Actual results:

depmod exits SIGSEGV 

Expected results:

depmod terminates normally or keeps running producing waring

Additional info:

Strace:
---skip bunch of stuff---
readlink("/lib/modules/2.6.17.8/source", "/", 1) = 1
readlink("/lib/modules/2.6.17.8/build", "/", 1) = 1
getdents(4, /* 0 entries */, 4096)      = 0
close(4)                                = 0
open("/lib/modules/2.6.17.8/updates",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---


running depmod

 /sbin/depmod -e -F System.map 2.6.17.8
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/ipt_DSCP.ko is
not an elf object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/ipt_ECN.ko is
not an elf object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/ipt_NETMAP.ko is
not an elf object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/ipt_TTL.ko is
not an elf object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/ipt_dscp.ko is
not an elf object
WARNING: Module
/lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/iptable_mangle.ko is not an elf
object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/netfilter/iptable_nat.ko
is not an elf object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/tcp_diag.ko is not an elf
object
WARNING: Module /lib/modules/2.6.17.8/kernel/net/ipv4/tunnel4.ko is not an elf
object
Segmentation fault

Comment 1 Konstantin Antselovich 2006-08-17 10:38:45 UTC
Created attachment 134374 [details]
acpidump output

SORRY: attached to the wrong bug# -- pls disregard

Comment 2 Konstantin Antselovich 2006-08-17 10:42:33 UTC
attachment is for another bug, I attached it here by mistake. pls disregard it.


Comment 3 Jon Masters 2006-08-17 11:35:20 UTC
Yeah. It's a silly lack of an error check in a depmod patch that works fine on
RH kernels but not all upstream ones - I'll get it fixed asap.

Comment 4 Jon Masters 2006-09-30 15:14:53 UTC
It's in rawhide. I'm waiting to hear that this has gone away.

Comment 5 Konstantin Antselovich 2006-11-14 15:35:51 UTC
Hi, I;m just going through my bugs and trying to close old ones.  
I'm pretty sure that this one is already fixed.  

I tried on FC6 and depmod works on FC kernels as well as vanilla kernels.
Can this bug be closed?



Comment 6 Peter van Egdom 2008-03-12 14:04:53 UTC
Thank you for the bug report. Closing bug as per comments #4 and #5.


Note You need to log in before you can comment on or make changes to this bug.