Bug#281107: udev: segfault while doing force-reload or restart
----- Forwarded message from "Jean-Luc Coulon (f5ibh)" <[email protected]> -----
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Reply-To: "Jean-Luc Coulon (f5ibh)" <[email protected]>,
[email protected]
Original-Sender: Jean-Luc Coulon (f5ibh) <[email protected]>
X-Debian-PR-Message: report 281107
X-Debian-PR-Package: udev
X-Debian-PR-Keywords:
From: "Jean-Luc Coulon (f5ibh)" <[email protected]>
To: Debian Bug Tracking System <[email protected]>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at coulon.evette
X-Spam-Status: No, hits=-8.0 required=4.0 testsºYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: udev
Version: 0.042-1
Severity: normal
Hi,
I have added a new partition on my hdd from the free space. The new device (/dev/hdb1) was not in the /dev directory.
I tried to add it restarting udev:/etc/init.d/udev force-reload (or restart)
It said that it was creating initial nodes then segfault in line 129 of /etc/init.d/udev
i can see the creation of the nodes in the systlog, then the following:
....
Nov 13 18:14:00 tangerine udev[5508]: creating device node '/dev/ttyab' Nov 13 18:14:00 tangerine udev[5508]: error: timeout reached, event probably not
handled correctly
Regards
Jean-Luc
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.9-k6-radeon-2
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Versions of packages udev depends on:
ii debconf [debconf-2.0] 1.4.40 Debian configuration management sy ii hotplug 0.0.20040329-16 Linux Hotplug Scripts ii initscripts 2.86-5 Standard scripts needed for bootin ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an ii makedev 2.3.1-75 Creates device files in /dev
-- debconf information:
udev/devfs-warning:
* udev/reboot-warning:
----- End forwarded message -----
----- Forwarded message from Jean-Luc Coulon <[email protected]> -----
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Reply-To: Jean-Luc Coulon <[email protected]>,
[email protected]
X-Debian-PR-Message: report 281107
X-Debian-PR-Package: udev
X-Debian-PR-Keywords:
To: Marco d'Itri <[email protected]>
Cc: [email protected]
From: Jean-Luc Coulon <[email protected]>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at coulon.evette
X-Spam-Status: No, hits=-6.0 required=4.0 testsºYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Quoted 6 lines · Marco d'Itri
Quoted 4 lines · Jean-Luc Coulon
"Try running udevstart from the command line."
I replied:
Quoted 7 lines
Quoted 2 lines
"udevstart get frozen after a while, the latest devices created was:
[ ... ]"So it does not segfaults when run from the shell? This is weird.
Again, please try to get a stack trace (it's only useful with the debugging symbols, so you should compile the package from source and get the udevstart binary before it's stripped).
I recompiled udev unstripped and got a core.
I used gdb to get a backtrace but I failed. gdb says "no debug symbols found".
[root@tangerine] # file /sbin/udev/sbin/udev: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
[root@tangerine] # /sbin/udevstart
Segmentation fault (core dumped)
[root@tangerine] # gdb -c core
GNU gdb 6.3-debian
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-linux".
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1". (no debugging symbols found)
Core was generated by `/sbin/udevstart'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7fe9000 in ?? ()
(gdb)
#0 0xb7fe9000 in ?? () #1 0x0000000e in ?? () #2 0x00000000 in ?? () #3 0x00000000 in ?? () #4 0x0000007b in ?? () #5 0x0000007b in ?? () #6 0x00000000 in ?? () #7 0xbfffd14c in ?? () #8 0xbfffd218 in ?? () #9 0xbfffd024 in ?? ()
#10 0x00000009 in ?? ()
#11 0xb7fe5620 in ?? ()
#12 0xbfffd028 in ?? ()
#13 0x00000042 in ?? ()
So, nothing interesting.
With the dbg libc, I've a lot of mesages in the syslog:
[...]
Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: process rule Nov 14 14:14:20 tangerine udev[22745]: match_rule: device has no bus Nov 14 14:14:20 tangerine udev[22745]: match_rule: try parent sysfs device Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: process rule Nov 14 14:14:20 tangerine udev[22745]: match_rule: device has no bus Nov 14 14:14:20 tangerine udev[22745]: match_rule: try parent sysfs device Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: process rule Nov 14 14:14:20 tangerine udev[22745]: match_rule: device has no bus Nov 14 14:14:20 tangerine udev[22745]: match_rule: try parent sysfs device [...] Nov 14 14:14:20 tangerine udev[22745]: match_rule: check for KERNEL dev->kernel'dvb*' class_dev->name='ptybf' Nov 14 14:14:20 tangerine udev[22745]: match_rule: KERNEL is not matching Nov 14 14:14:20 tangerine udev[22745]: match_rule: try parent sysfs device
Nov 14 14:14:20 tangerine udev[22745]: creating device node '/dev/ptybf' Nov 14 14:14:20 tangerine udev[22745]: make_node: preserve file '/dev/ptybf', ca use it has correct dev_t Nov 14 14:14:20 tangerine udev[22745]: make_node: chmod(/dev/ptybf, 020660) Nov 14 14:14:20 tangerine udev[22745]: udevdb_add_dev: store key '/class/tty/pty bf' for device 'ptybf' Nov 14 14:14:20 tangerine udev[22745]: dev_d_execute: DEVNAME='/dev/ptybf' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: open directory '/etc/d ev.d/ptybf' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: unable to open '/etc/d ev.d/ptybf' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: open directory '/etc/d ev.d/tty' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: unable to open '/etc/d ev.d/tty' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: open directory '/etc/d ev.d/default' Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: put file '/etc/dev.d/d efault/selinux.dev' in list Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: put file '/etc/dev.d/d efault/10-hal.dev' in list Nov 14 14:14:20 tangerine udev[22745]: run_program: running /etc/dev.d/default/1 0-hal.dev Nov 14 14:14:20 tangerine udev[22745]: run_program: running /etc/dev.d/default/s elinux.dev Nov 14 14:14:20 tangerine udev[22745]: get_major_minor: dev='2:208 ' Nov 14 14:14:20 tangerine udev[22745]: get_major_minor: found major=2, minor 8 Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: class_dev->name='pty c0' Nov 14 14:14:20 tangerine udev[22745]: sysfs_path_is_link: stat() failed Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: udev->kernel_name = 'ptyc0' Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: kernel_number='0'
Regards
Jean-Luc
Quoted 4 lines
Signature · 3 lines
-- ciao, | Marco | [9168 inJiEscbCqp3Q]
----- End forwarded message -----
Signature · 13 lines
ciao, | Marco | [9304 sg0EucyR1TAWk] ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Marco d'Itri
----- Forwarded message from "Jean-Luc Coulon (f5ibh)" <[email protected]> -----
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Nov 13 18:14:00 tangerine udev[5508]: creating device node '/dev/ttyab' Nov 13 18:14:00 tangerine udev[5508]: error: timeout reached, event probably nothandled correctly
Maybe 30 seconds timeout are too short for the dev.d/ scripts or a slow syslog. Later udev versions have 120 seconds and do not log in the udevstart case.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
"Try running udevstart from the command line."
I replied:
"udevstart get frozen after a while, the latest devices created was:
[ ... ]"
This is probably cause by using syslog() in a signal handler. It's fixed in a later version.
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel