Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129270 - udev does not handle properly some device files, and creates recursive symlinks
Summary: udev does not handle properly some device files, and creates recursive symlinks
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
: 130976 137339 (view as bug list)
Depends on:
Blocks: udev-meta
  Show dependency tree
 
Reported: 2006-04-08 12:11 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-06-20 00:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2006-04-08 12:11:17 UTC
$ mount
[...]
udev on /dev type tmpfs (rw,nosuid)
[...]

ls -l /dev/ttyS*
lrwxrwxrwx 1 root root 5 2006-04-08 08:40 /dev/ttyS0 -> tts/0

ls -l /dev/tts/
lrwxrwxrwx 1 root root 8 2006-04-08 08:40 0 -> ../ttyS0

$ file -s /dev/ttyS0
/dev/ttyS0: broken symbolic link to `tts/0'

cat /dev/ttyS
cat: /dev/ttyS1: Too many levels of symbolic links

mknod /mnt/ttyS0 c 4 64
cat /mnt/ttyS0
<(expected output)>

********************************************************************

please, find out how this could be possible ... recursive symlink inside udevor hotplug ? not being able to stand properly a device file or driver ? when manual mknod shows that it "can" work ...

absolutely no clue where it could come from ... but I known that the following emerge --info is very likely to be quiet useless ...

for which packages/ebuild do you need the versions I use and conf files from /etc ?

Good luck every body.

$ emerge --info
Portage 2.1_pre6-r5 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r1, 2.6.15-gentoo-r7-Gentoo-moon_05 i686)
=================================================================
System uname: 2.6.15-gentoo-r7-Gentoo-moon_05 i686 AMD Athlon(tm) 4 Processor
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks keeptemp keepwork metadata-transfer noclean sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
MAKEOPTS="-j2"
PKGDIR="/tmp"
PORTAGE_TMPDIR="/mnt/big"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi aim alsa amr amuled apache2 apic apm arts audiofile avi bash-completion berkdb bidi binfilter bitmap-fonts bl bonjour bootsplash cdda cdparanoia cdr cjk cmov cpudetection crypt cups curl cx8 dbus de dga directfb doc dri dts dv dvb dvd dvdread dynamic eds emboss encode esd ethereal examples fbcon ffmpeg flac flash foomaticdb fortran fping fpu freetype fxsr gdbm ggi gif gnome gnutls gpm gs gstreamer gtk gtk2 httpd i8x0 icq idea idn ieee1394 imagemagick imlib ipv6 irc isdnlog jabber jack java javascript jpeg kde lcms libcaca libg++ libwww lirc listentcp live lj logrotate lzo mad matrox mca mce mikmod mmx mmxext mono motif mozcalendar mp3 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pae pam pat pdflib perl pge png pppd pse pse36 python qt quicktime rar readline real rss rtc samba screen sdl sensord sep silc skey skins sndfile speex spell sse ssl stream subtitles svg svga swat symlink tcpd tga theora threads tiff truetype truetype-fonts tsc type1-fonts unicode urandom usb v4l v4l2 vcd vim vlm vme vorbis win32codecs wmf wxwindows x264 xanim xinerama xml2 xmms xosd xscreensaver xv xvid xvmc yahoo zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux userland_GNU video_cards_apm video_cards_chips video_cards_cirrus video_cards_fbdev video_cards_i810 video_cards_i128 video_cards_mga video_cards_nv video_cards_nvidia video_cards_s3 video_cards_s3virge video_cards_sis video_cards_tga video_cards_trident video_cards_v4l video_cards_vesa video_cards_vga video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-08 12:17:03 UTC
# ls -l /dev/ttyS*
crw-rw---- 1 root tty 4, 64 2006-04-08 12:39 /dev/ttyS0
crw-rw---- 1 root tty 4, 65 2006-04-08 12:39 /dev/ttyS1
crw-rw---- 1 root tty 4, 66 2006-04-08 12:39 /dev/ttyS2
crw-rw---- 1 root tty 4, 67 2006-04-08 12:39 /dev/ttyS3

# ls -l /dev/tts
lrwxrwxrwx 1 root root 8 2006-04-08 12:39 0 -> ../ttyS0
lrwxrwxrwx 1 root root 8 2006-04-08 12:39 1 -> ../ttyS1
lrwxrwxrwx 1 root root 8 2006-04-08 12:39 2 -> ../ttyS2
lrwxrwxrwx 1 root root 8 2006-04-08 12:39 3 -> ../ttyS3

# emerge -pv udev

[ebuild   R   ] sys-fs/udev-089-r2  0 kB 

No such problem here, post your udev version. Also make sure you don't have any stale stuff from previous versions in /etc/udev
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-04-08 16:37:50 UTC
Yes, make sure you have not modified the udev rules to do something else.

Please post your version of udev, as I can not duplicate this here either.
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2006-04-11 10:23:32 UTC
I had not modified serial port related configuration. Only added an 'additionnal' script, and relead the daemon in local.start.

I removed all symlinks, and reboot was OK.

Took time because comp had night work to do, and could not reboot earlier.
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2006-04-11 13:33:25 UTC
reopen to clseo afterward
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2006-04-11 13:34:15 UTC
definite close: sfix was: remove all symlinks and reboot.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 08:58:40 UTC
*** Bug 130976 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-20 00:48:16 UTC
*** Bug 137339 has been marked as a duplicate of this bug. ***