From: md@Linux.IT (Marco d'Itri)
To: linux-hotplug@vger.kernel.org
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Date: Sat, 20 Nov 2004 19:19:51 +0000 [thread overview]
Message-ID: <20041120191951.GA20077@wonderland.linux.it> (raw)
----- Forwarded message from "Jean-Luc Coulon (f5ibh)" <jean-luc.coulon@wanadoo.fr> -----
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Reply-To: "Jean-Luc Coulon (f5ibh)" <jean-luc.coulon@wanadoo.fr>,
281107@bugs.debian.org
Original-Sender: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>
X-Debian-PR-Message: report 281107
X-Debian-PR-Package: udev
X-Debian-PR-Keywords:
From: "Jean-Luc Coulon (f5ibh)" <jean-luc.coulon@wanadoo.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
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 <jean-luc.coulon@wanadoo.fr> -----
Subject: Bug#281107: udev: segfault while doing force-reload or restart
Reply-To: Jean-Luc Coulon <jean-luc.coulon@wanadoo.fr>,
281107@bugs.debian.org
X-Debian-PR-Message: report 281107
X-Debian-PR-Package: udev
X-Debian-PR-Keywords:
To: Marco d'Itri <md@Linux.IT>
Cc: 281107@bugs.debian.org
From: Jean-Luc Coulon <jean-luc.coulon@wanadoo.fr>
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:
On Sun, Nov 14, 2004 at 12:02:19PM +0100, Marco d'Itri wrote:
> On Nov 14, Jean-Luc Coulon <jean-luc.coulon@wanadoo.fr> wrote:
>
> > "Try running udevstart from the command line."
> >
> > I replied:
> >
> > "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
>
> --
> ciao, |
> Marco | [9168 inJiEscbCqp3Q]
----- End forwarded message -----
--
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
next reply other threads:[~2004-11-20 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-20 19:19 Marco d'Itri [this message]
2004-11-20 23:47 ` Bug#281107: udev: segfault while doing force-reload or restart Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041120191951.GA20077@wonderland.linux.it \
--to=md@linux.it \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).