Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492824 - sys-fs/lvm2-2.02.103 with sys-kernel/gentoo-sources-3.12.0 - lvcreate --type raid5 ... hangs
Summary: sys-fs/lvm2-2.02.103 with sys-kernel/gentoo-sources-3.12.0 - lvcreate --type ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 01:14 UTC by Tyson
Modified: 2014-02-02 06:22 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 Tyson 2013-11-29 01:14:43 UTC
Using sys-fs/lvm2-2.02.103, issuing a command such as

lvcreate --type raid5 ...

Results in lvcreate getting stuck in a DM_TABLE_LOAD syscall that never returns.

I tried several different kernel versions.

sys-kernel/gentoo-sources-3.10.17 - WORKS
sys-kernel/gentoo-sources-3.10.20 - WORKS
sys-kernel/gentoo-sources-3.11.8 - WORKS
sys-kernel/gentoo-sources-3.11.9 - WORKS
sys-kernel/gentoo-sources-3.12.0 - FAILS
sys-kernel/gentoo-sources-3.12.1 - FAILS
Comment 1 Tyson 2013-11-29 02:57:41 UTC
I don't think my previous comment about DM_TABLE_LOAD was correct, I think strace locked up before it finished writing what had happened.

Here's the output of emerge --info:

ortage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.16.0, 3.12.1-gentoo x86_64)
=================================================================
System uname: Linux-3.12.1-gentoo-x86_64-AMD_Opteron-TM-_Processor_6238-with-gentoo-2.2
KiB Mem:     8180084 total,   7546492 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 28 Nov 2013 06:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O0 -ggdb3 -march=opteron-sse3 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O0 -ggdb3 -march=opteron-sse3 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 6 --load-average 6"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip 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://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 --load-average=6"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://luna/gentoo-portage"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode 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" DRACUT_MODULES="lvm" 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" GRUB_PLATFORMS="pc" 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_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

The CFLAGS variable was originally contained -O2 -fomit-frame-pointer, but I changed it because I wanted lvm2 to have debugging info and was too lazy to create and environment entry for it.

Here is a stack trace of executing

  lvcreate foo -n bar --type raid5 -i 2 -l 65%VG

from sys-fs/lvm2-2.02.104 before it locked up:

Catchpoint 1 (call to syscall 16), 0x00007ffff70716e7 in ioctl () from /lib64/libc.so.6
#0  0x00007ffff70716e7 in ioctl () from /lib64/libc.so.6
#1  0x00007ffff75b0b00 in _do_dm_ioctl (dmt=0x7a6690, command=3241737481, buffer_repeat_count=0, retry_repeat_count=1, retryable=0x7fffffffc98c) at ioctl/libdm-iface.c:1752
#2  0x00007ffff75b136c in dm_task_run (dmt=0x7a6690) at ioctl/libdm-iface.c:1870
#3  0x00007ffff75af80b in _reload_with_suppression_v4 (dmt=0x7a6690) at ioctl/libdm-iface.c:1482
#4  0x00007ffff75b0ff6 in dm_task_run (dmt=0x7a6690) at ioctl/libdm-iface.c:1842
#5  0x00007ffff7596569 in _load_node (dnode=0x7a51e0) at libdm-deptree.c:2505
#6  0x00007ffff75969a6 in dm_tree_preload_children (dnode=0x7a50a8, uuid_prefix=0x7bb678 "LVM-V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", uuid_prefix_len=36)
    at libdm-deptree.c:2571
#7  0x00000000004d51b6 in _tree_action (dm=0x7bae00, lv=0x7b73e0, laopts=0x7fffffffcda0, action=ACTIVATE) at activate/dev_manager.c:2696
#8  0x00000000004d5339 in dev_manager_activate (dm=0x7bae00, lv=0x7b73e0, laopts=0x7fffffffcda0) at activate/dev_manager.c:2731
#9  0x000000000044da43 in _lv_activate_lv (lv=0x7b73e0, laopts=0x7fffffffcda0) at activate/activate.c:1086
#10 0x00000000004509f8 in _lv_activate (cmd=0x749070, lvid_s=0x7fffffffde90 "V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", laopts=0x7fffffffcda0, filter=1, lv=0x7b73e0)
    at activate/activate.c:2083
#11 0x0000000000450bdf in lv_activate_with_filter (cmd=0x749070, lvid_s=0x7fffffffde90 "V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", exclusive=1, noscan=1, 
    temporary=0, lv=0x7b73e0) at activate/activate.c:2121
#12 0x00000000004de42a in _file_lock_resource (cmd=0x749070, resource=0x7fffffffde90 "V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", flags=125, lv=0x7a7330)
    at locking/file_locking.c:322
#13 0x000000000047efe9 in _lock_vol (cmd=0x749070, resource=0x7fffffffde90 "V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", flags=125, lv_op=LV_NOOP, lv=0x7a7330)
    at locking/locking.c:385
#14 0x000000000047f2e8 in lock_vol (cmd=0x749070, vol=0x7a7330 "V9Vk1pZBzziBnMCd3fdRiZIcANLbF3BU8VXLOEaTJe5Jao8NoyiYM1kOPErJJH8o", flags=125, lv=0x7a7330) at locking/locking.c:463
#15 0x000000000047f78f in activate_lv_excl (cmd=0x749070, lv=0x7a7330) at locking/locking.c:550
#16 0x0000000000483651 in lv_active_change (cmd=0x749070, lv=0x7a7330, activate=CHANGE_AY) at metadata/lv.c:788
#17 0x0000000000495e28 in _lv_create_an_lv (vg=0x7a6d40, lp=0x7fffffffe150, new_lv_name=0x7fffffffe684 "bar") at metadata/lv_manip.c:6060
#18 0x000000000049663a in lv_create_single (vg=0x7a6d40, lp=0x7fffffffe150) at metadata/lv_manip.c:6186
#19 0x000000000042b313 in lvcreate (cmd=0x749070, argc=1, argv=0x7fffffffe430) at lvcreate.c:1125
#20 0x00000000004316a2 in lvm_run_command (cmd=0x749070, argc=1, argv=0x7fffffffe430) at lvmcmdline.c:1179
#21 0x0000000000432b33 in lvm2_main (argc=10, argv=0x7fffffffe3e8) at lvmcmdline.c:1614
#22 0x000000000044accc in main (argc=10, argv=0x7fffffffe3e8) at lvm.c:21

/proc/2823/syscall contained:

16 0x3 0xc138fd09 0x7c2df0 0x7c2ea0 0x7ffff75b72d8 0x7ffff75b6673 0x7fffffffc758 0x7ffff70716e7
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-02 06:22:48 UTC
Please retest with .105.