Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 107715 - /sbin/modutils -c segfaults when run as normal user on 2.6
/sbin/modutils -c segfaults when run as normal user on 2.6
Product: Red Hat Raw Hide
Classification: Retired
Component: modutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brian Brock
Depends On:
Blocks: CambridgeTarget
  Show dependency treegraph
Reported: 2003-10-22 09:19 EDT by Ralf Ertzinger
Modified: 2014-03-16 22:39 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-09 08:00:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
modprobe backtrace (truncated, goes on line this for ~150 lines total) (774 bytes, text/plain)
2004-01-29 10:52 EST, Ralf Ertzinger
no flags Details
modprobe.conf (789 bytes, text/plain)
2004-01-29 11:35 EST, Ralf Ertzinger
no flags Details
modprobe.conf.dist (6.12 KB, text/plain)
2004-01-29 11:36 EST, Ralf Ertzinger
no flags Details

  None (edit)
Description Ralf Ertzinger 2003-10-22 09:19:41 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031014

Description of problem:
When running "/sbin/modprobe -c" as a normal user (kernel-2.6.0-0.test8.1.63),
modprobe segfaults.

It runs fine as root.

Since the binary is not compiled with debugging symbols,
there is not much to be seen in strace or gdb.

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

How reproducible:

Steps to Reproduce:
1. Boot 2.6.0-test kernel
2. Log in as normal user
3. run "/sbin/modprobe -c"

Actual Results:  modprobe segfaults

Expected Results:  Show the currently used configuration, or show an error
message (if the command is meant to be run as root only)

Additional info:
Comment 1 Bill Nottingham 2004-01-28 01:19:13 EST
This works for me with 2.4.26-2. Please reopen if it persists.
Comment 2 Ralf Ertzinger 2004-01-28 07:03:07 EST
Still segfaults for me.
Any pointer to a document explaining how to use the -debuginfo
packages to get the debugging symbols back would be highly appreciated.
Comment 3 Bill Nottingham 2004-01-28 12:41:59 EST
Just install modutils-debuginfo, and run modprobe under gdb.
Comment 4 Ralf Ertzinger 2004-01-29 10:52:21 EST
Created attachment 97335 [details]
modprobe backtrace (truncated, goes on line this for ~150 lines total)
Comment 5 Ralf Ertzinger 2004-01-29 10:52:55 EST
OK, things are getting stranger.
Running /sbin/modprobe in an xterm or at the console works just fine.
Starting a screen and running modprobe in it causes modprobe to segfault.

gdb says:

(gdb) run -c
Starting program: /sbin/modprobe -c

Program received signal SIGSEGV, Segmentation fault.
0x080593e5 in gather_options (argv=0xfeeb1e78) at modprobe.c:1098
1098                    if (strchr(*argv, ' ')) {

The backtrace is... interesting. Attached.
Comment 6 Bill Nottingham 2004-01-29 11:26:45 EST
Can you attach your /etc/modprobe.conf and /etc/modprobe.conf.dist?
Comment 7 Ralf Ertzinger 2004-01-29 11:35:36 EST
Created attachment 97338 [details]
Comment 8 Ralf Ertzinger 2004-01-29 11:36:27 EST
Created attachment 97339 [details]
Comment 9 Bill Nottingham 2004-01-29 11:50:44 EST
Ah, it's screen that's the trigger. Looking at it.
Comment 10 Ralf Ertzinger 2004-04-09 08:00:18 EDT
Works now with screen-4.0.2-1 and modutils-2.4.26-14.

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