iftab_helper segfaults if /etc/iftab is missing

Bug #34078 reported by Michael Bienia
6
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

I've renamed /etc/iftab some time ago because of a bug which is now resolved.

But without a /etc/iftab segfaults:

$ /lib/udev/iftab_helper eth0 00:04:e2:64:4a:69 1
Segmentation fault
(with a /etc/iftab it works)

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaae85fc0 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00002aaaaae85fc0 in strlen () from /lib/libc.so.6
#1 0x00002aaaaae71f90 in puts () from /lib/libc.so.6
#2 0x0000000000401730 in ?? ()
#3 0x00002aaaaae3149b in __libc_start_main () from /lib/libc.so.6

This is on amd64 running dapper. The udev version is 079-0ubuntu18.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Format: 1.7
Date: Wed, 15 Mar 2006 18:28:39 +0000
Source: udev
Binary: udev udev-udeb
Architecture: source
Version: 079-0ubuntu19
Distribution: dapper
Urgency: low
Maintainer: Scott James Remnant <email address hidden>
Changed-By: Scott James Remnant <email address hidden>
Description:
 udev - rule-based device node and kernel event manager
 udev-udeb - rule-based device node and kernel event manager
Changes:
 udev (079-0ubuntu19) dapper; urgency=low
 .
   "For I am ordinary, unimportant, and undeserving of such attention."
 .
   * Place joysticks in the "plugdev" group, for programs that access the
     joystick device directly and not through X. Ubuntu: #33354.
   * The storage device enumerator used by the installer was a bit too
     efficient; it would generate new symlink names every time an add event
     for a device was received. The installer causes many add events to occur,
     each time hw-detect and the partitioner is run. Fix the script to
     return an existing symlink name if one exists in the udevdb.
     Ubuntu: #27926.
   * Fix iftab_helper segmentation fault when /etc/iftab doesn't exist,
     caused by returning NULL rather than the suggested name; now returns
     whatever name the kernel gave. Ubuntu: #34078.
Files:
 6e9c2efb7ada3132419e6b31490001c7 622 admin important udev_079-0ubuntu19.dsc
 0032e1712e973addea3fa6a1c1b2aee8 46696 admin important udev_079-0ubuntu19.diff.gz
Package-Type: udeb

Changed in udev:
assignee: nobody → keybuk
status: Unconfirmed → Confirmed
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.