XBMC hangs in loop while scanning /sys/
#1
Hello everyone,

my xbmc 9.11 (built from source on Gentoo Linux, but also applies to 10.4) is hanging itself up in a loop when the menu is displayed for a longer time, e.g. not while playing a movie.

strace reveales constant output like:
Code:
getdents64(36, /* 74 entries */, 32768) = 2256
getdents64(36, /* 0 entries */, 32768)  = 0
close(36)                               = 0
time(NULL)                              = 1296735899
stat64("/sys/module/usbserial/holders/ftdi_sio/drivers/usb-serial:ftdi_sio/ttyUSB0/tty/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/tty40/subsystem/tty2/subsystem/ttyUSB0", 0xbf9dc530) = -1 ELOOP (Too many levels of symbolic links)
access("ttyUSB0", R_OK)                 = -1 ENOENT (No such file or directory)
stat64("/sys/module/usbserial/holders/ftdi_sio/drivers/usb-serial:ftdi_sio/ttyUSB0/tty/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/tty40/subsystem/tty2/subsystem/ttyS3", 0xbf9dc6e0) = -1 ELOOP (Too many levels of symbolic links)
access("ttyS3", R_OK)                   = -1 ENOENT (No such file or directory)
stat64("/sys/module/usbserial/holders/ftdi_sio/drivers/usb-serial:ftdi_sio/ttyUSB0/tty/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/tty40/subsystem/tty2/subsystem/ttyS2", 0xbf9dc6e0) = -1 ELOOP (Too many levels of symbolic links)
access("ttyS2", R_OK)                   = -1 ENOENT (No such file or directory)
stat64("/sys/module/usbserial/holders/ftdi_sio/drivers/usb-serial:ftdi_sio/ttyUSB0/tty/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/ttyUSB0/subsystem/tty40/subsystem/tty2/subsystem/ttyS1", 0xbf9dc6e0) = -1 ELOOP (Too many levels of symbolic links)
access("ttyS1", R_OK)                   = -1 ENOENT (No such file or directory


ttyUSB0 is a FTDI driving my Atmolight controller.

Can someone tell me what's wrong here?
Reply
#2
Have you by any chance defined a source with "/" as the directory? If so, it must be removed. / is not suited to be scanned by XBMC.
Reply
#3
Thumbs Up 
Thanks a lot, that was indeed the case.

I removed that source, now everything's working fine

EDIT:
I stand corrected; the scanning started again...

I removed the root-source from sources.xml - can it be elsewhere?
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC hangs in loop while scanning /sys/0