Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559236 - sys-fs/udev-216: spurious hangs
Summary: sys-fs/udev-216: spurious hangs
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 09:15 UTC by Patrick Lauer
Modified: 2021-12-03 01:18 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 Patrick Lauer gentoo-dev 2015-08-31 09:15:21 UTC
[155762.406078] INFO: task systemd-udevd:128018 blocked for more than 120 seconds.
[155762.406081]       Not tainted 4.0.5-gentooadjust #1
[155762.406082] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[155762.406083] systemd-udevd   D ffff8828802c3aa8     0 128018   2078 0x00000004
[155762.406098]  ffff8828802c3aa8 ffff885f605b9320 ffff882fa66e5fa0 ffff8828802c3a98
[155762.406100]  ffffffff810e5b89 ffff882fa06d1860 ffff8828802c3fd8 ffff885f605b9320
[155762.406101]  ffff882fbeed069c ffff882fbeed0698 0000000000000246 ffff8828802c3ac8
[155762.406103] Call Trace:
[155762.406110]  [<ffffffff810e5b89>] ? try_to_grab_pending+0x99/0x140
[155762.406115]  [<ffffffff8158f512>] schedule+0x32/0x80
[155762.406117]  [<ffffffff8158f789>] schedule_preempt_disabled+0x9/0x10
[155762.406119]  [<ffffffff815917ad>] __mutex_lock_slowpath+0xed/0x2f0
[155762.406120]  [<ffffffff815919c1>] mutex_lock+0x11/0x25
[155762.406123]  [<ffffffff8121e593>] __blkdev_get+0x43/0x3f0
[155762.406125]  [<ffffffff8121eca0>] ? blkdev_get_by_dev+0x50/0x50
[155762.406126]  [<ffffffff8121eaed>] blkdev_get+0x1ad/0x310
[155762.406130]  [<ffffffff81193edc>] ? __alloc_pages_nodemask+0x17c/0x980
[155762.406131]  [<ffffffff8121eca0>] ? blkdev_get_by_dev+0x50/0x50
[155762.406132]  [<ffffffff8121ecfa>] blkdev_open+0x5a/0x80
[155762.406136]  [<ffffffff811e83d7>] do_dentry_open.isra.14+0xf7/0x320
[155762.406137]  [<ffffffff811e8679>] vfs_open+0x49/0x50
[155762.406140]  [<ffffffff811f55b2>] do_last+0x132/0xdf0
[155762.406143]  [<ffffffff81301b71>] ? cpumask_any_but+0x31/0x40
[155762.406145]  [<ffffffff811f7d2b>] path_openat+0x7b/0x610
[155762.406148]  [<ffffffff811b3cc7>] ? do_wp_page+0x2d7/0x7a0
[155762.406150]  [<ffffffff811f9485>] do_filp_open+0x35/0x90
[155762.406153]  [<ffffffff8120523d>] ? __alloc_fd+0x7d/0x120
[155762.406155]  [<ffffffff811e9684>] do_sys_open+0x124/0x220
[155762.406156]  [<ffffffff811e9799>] SyS_open+0x19/0x20
[155762.406158]  [<ffffffff81593632>] system_call_fastpath+0x12/0x17
[157563.806503] INFO: task systemd-udevd:128122 blocked for more than 120 seconds.
[157563.806506]       Not tainted 4.0.5-gentooadjust #1
[157563.806506] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[157563.806507] systemd-udevd   D ffff882c20a2baa8     0 128122   2078 0x00000004
[157563.806511]  ffff882c20a2baa8 ffff885f9c17b960 ffff885fa6288000 ffff882c20a2ba98
[157563.806512]  ffffffff810e5b89 ffff882fa37dd760 ffff882c20a2bfd8 ffff885f9c17b960
[157563.806514]  ffff882fbee4069c ffff882fbee40698 0000000000000246 ffff882c20a2bac8
[157563.806516] Call Trace:
[157563.806523]  [<ffffffff810e5b89>] ? try_to_grab_pending+0x99/0x140
[157563.806529]  [<ffffffff8158f512>] schedule+0x32/0x80
[157563.806531]  [<ffffffff8158f789>] schedule_preempt_disabled+0x9/0x10
[157563.806533]  [<ffffffff815917ad>] __mutex_lock_slowpath+0xed/0x2f0
[157563.806534]  [<ffffffff815919c1>] mutex_lock+0x11/0x25
[157563.806538]  [<ffffffff8121e593>] __blkdev_get+0x43/0x3f0
[157563.806539]  [<ffffffff8121eca0>] ? blkdev_get_by_dev+0x50/0x50
[157563.806541]  [<ffffffff8121eaed>] blkdev_get+0x1ad/0x310
[157563.806544]  [<ffffffff81193edc>] ? __alloc_pages_nodemask+0x17c/0x980
[157563.806546]  [<ffffffff8121eca0>] ? blkdev_get_by_dev+0x50/0x50
[157563.806547]  [<ffffffff8121ecfa>] blkdev_open+0x5a/0x80
[157563.806551]  [<ffffffff811e83d7>] do_dentry_open.isra.14+0xf7/0x320
[157563.806552]  [<ffffffff811e8679>] vfs_open+0x49/0x50
[157563.806556]  [<ffffffff811f55b2>] do_last+0x132/0xdf0
[157563.806559]  [<ffffffff81301b71>] ? cpumask_any_but+0x31/0x40
[157563.806561]  [<ffffffff811f7d2b>] path_openat+0x7b/0x610
[157563.806564]  [<ffffffff811b3cc7>] ? do_wp_page+0x2d7/0x7a0
[157563.806566]  [<ffffffff811f9485>] do_filp_open+0x35/0x90
[157563.806569]  [<ffffffff8120523d>] ? __alloc_fd+0x7d/0x120
[157563.806571]  [<ffffffff811e9684>] do_sys_open+0x124/0x220
[157563.806573]  [<ffffffff811e9799>] SyS_open+0x19/0x20
[157563.806574]  [<ffffffff81593632>] system_call_fastpath+0x12/0x17


Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoot-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v3_@_2.40GHz-with-gentoo-2.2
KiB Mem:   396236812 total, 199641384 free
KiB Swap:    9764860 total,   9764860 free
Timestamp of repository gentoo: Sun, 30 Aug 2015 17:30:02 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://[internal server]/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7-avx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=corei7-avx"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm git iconv iproute2 ipv6 mmx mmxext modules ncurses nls nptl openmp pam pcre perl python readline seccomp session sse sse2 ssl tcpd unicode vim-syntax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2015-08-31 14:20:55 UTC
As I mentioned in IRC, this seems like a simple open(2) that is hanging in the kernel for some reason. Could be hardware-related.

It does not seem like a bug in udev, unless it happens to be opening some strange file erroneously.
Comment 2 Mike Gilbert gentoo-dev 2015-08-31 16:17:23 UTC
Assuming udevd is still blocking, you might be able to attach gdb and determine what file is being opened.