From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Sat, 20 Nov 2004 19:19:51 +0000 Subject: Bug#281107: udev: segfault while doing force-reload or restart Message-Id: <20041120191951.GA20077@wonderland.linux.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org ----- Forwarded message from "Jean-Luc Coulon (f5ibh)" ----- Subject: Bug#281107: udev: segfault while doing force-reload or restart Reply-To: "Jean-Luc Coulon (f5ibh)" , 281107@bugs.debian.org Original-Sender: Jean-Luc Coulon (f5ibh) X-Debian-PR-Message: report 281107 X-Debian-PR-Package: udev X-Debian-PR-Keywords:=20 From: "Jean-Luc Coulon (f5ibh)" To: Debian Bug Tracking System X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at coulon.evette X-Spam-Status: No, hits=3D-8.0 required=3D4.0 tests=BAYES_00,HAS_PACKAGE=20 autolearn=3Dno version=3D2.60-bugs.debian.org_2004_03_25 X-Spam-Level:=20 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 probabl= y not handled correctly =20 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=3Dfr_FR@euro, LC_CTYPE=3Dfr_FR@euro (charmap=3DISO-8859-15) Versions of packages udev depends on: ii debconf [debconf-2.0] 1.4.40 Debian configuration managemen= t sy ii hotplug 0.0.20040329-16 Linux Hotplug Scripts ii initscripts 2.86-5 Standard scripts needed for bo= otin ii libc6 2.3.2.ds1-18 GNU C Library: Shared librarie= s 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 -= ---- Subject: Bug#281107: udev: segfault while doing force-reload or restart Reply-To: Jean-Luc Coulon , 281107@bugs.debian.org X-Debian-PR-Message: report 281107 X-Debian-PR-Package: udev X-Debian-PR-Keywords:=20 To: Marco d'Itri Cc: 281107@bugs.debian.org From: Jean-Luc Coulon X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at coulon.evette X-Spam-Status: No, hits=3D-6.0 required=3D4.0 tests=BAYES_00,HAS_BUG_NUMBER= =20 autolearn=3Dno version=3D2.60-bugs.debian.org_2004_03_25 X-Spam-Level:=20 On Sun, Nov 14, 2004 at 12:02:19PM +0100, Marco d'Itri wrote: > On Nov 14, Jean-Luc Coulon wrote: >=20 > > "Try running udevstart from the command line." > >=20 > > I replied: > >=20 > > "udevstart get frozen after a while, the latest devices created was: > > [ ... ]" > So it does not segfaults when run from the shell? This is weird. >=20 > 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 foun= d". [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=20 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 condition= s. 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)=20 #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->ke= rnel'dvb*' class_dev->name=3D'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/tt= y/pty bf' for device 'ptybf' Nov 14 14:14:20 tangerine udev[22745]: dev_d_execute: DEVNAME=3D'/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/de= v.d/d efault/selinux.dev' in list Nov 14 14:14:20 tangerine udev[22745]: call_foreach_file: put file '/etc/de= v.d/d efault/10-hal.dev' in list Nov 14 14:14:20 tangerine udev[22745]: run_program: running /etc/dev.d/defa= ult/1 0-hal.dev Nov 14 14:14:20 tangerine udev[22745]: run_program: running /etc/dev.d/defa= ult/s elinux.dev Nov 14 14:14:20 tangerine udev[22745]: get_major_minor: dev=3D'2:208 ' Nov 14 14:14:20 tangerine udev[22745]: get_major_minor: found major=3D2, mi= nor 8 Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: class_dev->name= =3D'pty c0' Nov 14 14:14:20 tangerine udev[22745]: sysfs_path_is_link: stat() failed=20 Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: udev->kernel_na= me =3D=20 'ptyc0' Nov 14 14:14:20 tangerine udev[22745]: namedev_name_device: kernel_number= =3D'0' Regards Jean-Luc >=20 > --=20 > ciao, | > Marco | [9168 inJiEscbCqp3Q] ----- End forwarded message ----- --=20 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel