Bug 179000 - Segmentation fault in /usr/sbin/module_upgrade
Summary: Segmentation fault in /usr/sbin/module_upgrade
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kudzu
Version: 5
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-26 11:54 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2014-03-17 02:57 UTC (History)
1 user (show)

Fixed In Version: 1.2.23-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-26 16:01:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2006-01-26 11:54:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060103 Fedora/1.5-4 Firefox/1.5

Description of problem:
When installing kernel-2.6.15-1.1871_FC5.i686 (along currently installed kernel-2.6.15-1.1863_FC5) I get:
/var/tmp/rpm-tmp.18047: line 1: 30955 Segmentation fault      /usr/sbin/module_upgrade 2.6.15-1.1871_FC5

I've traced it down to %post scriptlet, and running /usr/sbin/module_upgrade 2.6.15-1.1871_FC5 after the kernel RPM gets installed exhibits the same behaviour.

GDB session below:
# gdb /usr/sbin/module_upgrade
GNU gdb Red Hat Linux (6.3.0.0-1.98rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run 2.6.15-1.1871_FC5
Starting program: /usr/sbin/module_upgrade 2.6.15-1.1871_FC5
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xadf000

Program received signal SIGSEGV, Segmentation fault.
0x080503d5 in pciProbe (probeClass=CLASS_UNSPEC, probeFlags=3, devlist=Variable "devlist" is not available.
) at pci.c:475
475                     if (dev->vendorId == 0x10de && !strcmp(dev->driver,"forcedeth")
(gdb) bt
#0  0x080503d5 in pciProbe (probeClass=CLASS_UNSPEC, probeFlags=3, devlist=Variable "devlist" is not available.
) at pci.c:475
#1  0x0804df66 in probeDevices (probeClass=CLASS_UNSPEC, probeBus=2050, probeFlags=3) at kudzu.c:806
#2  0x0804a79d in main (argc=Cannot access memory at address 0xa
) at module_upgrade.c:169
#3  0x00be56b4 in __libc_start_main (main=0x804a398 <main>, argc=2, ubp_av=0xbfc60874, init=0x805fc38 <__libc_csu_init>,
    fini=0x805fc30 <__libc_csu_fini>, rtld_fini=0x350dd0 <_dl_fini>, stack_end=0xbfc6086c) at libc-start.c:231
#4  0x0804a021 in _start ()
(gdb) bt full
#0  0x080503d5 in pciProbe (probeClass=CLASS_UNSPEC, probeFlags=3, devlist=Variable "devlist" is not available.
) at pci.c:475
        x_drv = 0x8c3bb88 "nv"
        config = "\uffff\020\022\003\a\000\uffff\002\uffff\000\000\003\000\uffff\000\000\000\000\000\uffff\b\000\000\uffff", '\0' <repeats 28 times>, "`\000\000\000\000\000\000\000\t\001\005\001", '\0' <repeats 191 times>
        subvend = Variable "subvend" is not available.

I have installed the following debuginfo RPMs:
rpm -qa '*-debuginfo'
module-init-tools-debuginfo-3.2-0.pre9.2
chkconfig-debuginfo-1.3.25-1.1
python-debuginfo-2.4.2-3
glibc-debuginfo-2.3.90-30
bash-debuginfo-3.1-5
kudzu-debuginfo-1.2.21-1
hal-debuginfo-0.5.6-2
pam-debuginfo-0.99.2.1-3

Should I install any others?


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

How reproducible:
Always

Steps to Reproduce:
1. rpm -ivh /var/cache/yum/development/packages/kernel-2.6.15-1.1871_FC5.i686.rpm


Actual Results:  /var/tmp/rpm-tmp.18047: line 1: 30955 Segmentation fault      /usr/sbin/module_upgrade 2.6.15-1.1871_FC5


Expected Results:  No segfault should have occured.

Additional info:

Comment 1 Dominik 'Rathann' Mierzejewski 2006-01-26 12:22:00 UTC
Just in case, I've retried without binary nvidia driver loaded, same result.

Comment 2 Bill Nottingham 2006-01-26 16:01:21 UTC
This is fixed in today's rawhide. 

Comment 3 Bill Nottingham 2006-01-26 16:03:13 UTC
Erm, tomorrows.


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