Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646980 - sys-fs/udisks-1.0.5-r2: udisks-part-id: segmentation fault in ped_disk_atari_done () at atari.c:1967, causes systemd to enter recovery
Summary: sys-fs/udisks-1.0.5-r2: udisks-part-id: segmentation fault in ped_disk_atari_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on: 646104
Blocks:
  Show dependency tree
 
Reported: 2018-02-08 10:39 UTC by Andrew Udvare
Modified: 2018-02-08 13:47 UTC (History)
1 user (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 Andrew Udvare 2018-02-08 10:39:22 UTC
This is happening on boot for every disk device (probably every entry in fstab):

udisks-part-id[1123]: segfault at 0 ip 00007f1cfb127392 sp 00007fffd0253330 error 4 in libc-2.26.so[7f1cfb0fa000+1ba000]

It makes systemd go into recovery mode. I can then type 'systemctl default' to boot normally. It appears that udisks-part-id has a null pointer get passed into __freelocale() somehow.


GDB output:

https://github.com/bminor/glibc/blob/master/locale/freelocale.c#L44 (dataset is 0x0 below)

# gdb --args /lib/udev/udisks-part-id /dev/sda1
Reading symbols from /lib/udev/udisks-part-id...(no debugging symbols found)...done.
(ins)(gdb) run
Starting program: /lib64/udev/udisks-part-id /dev/sda1
b[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
using device_file=/dev/sda syspath=/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda, offset=1048576 ao=0 and number=1 for /dev/sda1
Entering MS-DOS parser (offset=0, size=250059350016)
MSDOS_MAGIC found
found partition type 0xee => protective MBR for GPT
Exiting MS-DOS parser
Entering EFI GPT parser
GPT magic found
partition_entry_lba=2
num_entries=128
size_of_entry=128
Leaving EFI GPT parser
EFI GPT partition table detected
UDISKS_PARTITION=1
UDISKS_PARTITION_SCHEME=gpt
UDISKS_PARTITION_NUMBER=1
UDISKS_PARTITION_TYPE=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
UDISKS_PARTITION_SIZE=67108864
UDISKS_PARTITION_LABEL=primary
UDISKS_PARTITION_UUID=5E5549F3-8CB9-46C9-AF9F-D541A5F3BFD1
UDISKS_PARTITION_FLAGS=
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
UDISKS_PARTITION_OFFSET=1048576
UDISKS_PARTITION_ALIGNMENT_OFFSET=0

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff72c8392 in __freelocale (dataset=dataset@entry=0x0) at freelocale.c:44
44      freelocale.c: No such file or directory.
(ins)(gdb) bt full
#0  0x00007ffff72c8392 in __freelocale (dataset=dataset@entry=0x0) at freelocale.c:44
        cnt = 0
#1  0x00007ffff767b32b in ped_disk_atari_done () at atari.c:1967
No locals.
#2  0x00007ffff766bf08 in done_disk_types () at libparted.c:166
No locals.
#3  _done () at libparted.c:224
No locals.
#4  0x00007ffff7de7993 in _dl_fini () at dl-fini.c:235
        array = 0x7ffff789baf0
        i = <optimized out>
        l = 0x7ffff7fa99d0
        maps = 0x7fffffffda50
        i = <optimized out>
        l = <optimized out>
        nmaps = <optimized out>
        nloaded = <optimized out>
        ns = 0
        do_audit = <optimized out>
        __PRETTY_FUNCTION__ = "_dl_fini"
#5  0x00007ffff72d4138 in __run_exit_handlers (status=0, listp=0x7ffff76596f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, 
    run_dtors=run_dtors@entry=true) at exit.c:83
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = <optimized out>
        f = <optimized out>
        cur = <optimized out>
#6  0x00007ffff72d419a in __GI_exit (status=<optimized out>) at exit.c:105
No locals.
#7  0x00007ffff72bbf11 in __libc_start_main (main=0x555555555ea0, argc=2, argv=0x7fffffffdc58, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffdc48) at ../csu/libc-start.c:342
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 7420063870708974348, 93824992241968, 140737488346192, 0, 0, 3723361516468142860, 
                3723377632100057868}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fffffffdc70, 0x7ffff7ffe110}, data = {prev = 0x0, cleanup = 0x0, 
              canceltype = -9104}}}
        not_first_call = <optimized out>
#8  0x000055555555695a in ?? ()
No symbol table info available.

# emerge --info udisks
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r5, 4.15.1-gentoo-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.15.1-gentoo-limelight-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    32754656 total,  25159208 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 08 Feb 2018 07:00:01 +0000
Head commit of repository gentoo: a8ee3e2c4e7439baab11db9f6f7518da6390dc66
sh bash 4.4_p18
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p18::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/gcruft /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict n
ews parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersa
ndbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ rsync://gentoo.mirro
rs.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j13"
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 --tim
eout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 cairo cdio cjk cli crypt cups cxx dbus declarative dri dts dvd dvdr em
boss exif fam ffmpeg flac fortran gdbm gif glamor gpm iconv idn ipv6 jemalloc jpeg jpeg2k kde kipi kwallet lcms libnotify mad mod modules mp3 mp4 mpeg multil
ib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt5 readline samba seccomp spell ssl
svg syslog systemd tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xcomposite xinerama xv xvid 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 auth
n_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_l
ock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite seten
vif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLEC
TD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="gl
ibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm10
4v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux
" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_I
MPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5 p
ython3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia 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_RSY
NC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-fs/udisks-1.0.5-r2::gentoo was built with the following:
USE="nls -debug -remote-access (-selinux)" ABI_X86="(64)"


sys-fs/udisks-2.7.5-r1::gentoo was built with the following:
USE="acl cryptsetup gptfdisk introspection lvm nls systemd -debug -elogind (-selinux)" ABI_X86="(64)"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-08 11:08:43 UTC
Could you please upgrade to sys-block/parted-3.2_p19-r1 or sys-block/parted-3.2_p20-r1 and see if this is fixed now?
Comment 2 Andrew Udvare 2018-02-08 12:17:43 UTC
Works with parted-3.2_p20-r1. Thanks