Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517546

Summary: media-video/vlc-2.1.4[svg] -?/bin/sh: line 4: 8508 Segmentation fault ./vlc-cache-gen ../modules
Product: Gentoo Linux Reporter: Alessandro Di Federico <ale>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alessandro Di Federico 2014-07-20 07:37:11 UTC
media-video/vlc-2.1.4 using the svg USE flag leads to a segmentation fault towards the end of the build:

------------- 8< -------------

if test "x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu"; then \
        ./vlc-cache-gen ../modules ; \
else \
        echo "Cross-compilation: cache generation skipped!" ; \
fi
/bin/sh: line 4:  8508 Segmentation fault      ./vlc-cache-gen ../modules
make[2]: *** [../modules/plugins.dat] Error 139
make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4'
make: *** [all] Error 2

------------- 8< -------------

I understood it was due to svg attaching the debugger:

------------- 8< -------------

(gdb) break dlopen
Breakpoint 2 at 0x7ffff710a250
(gdb) commands
Type commands for breakpoint(s) 2, one per line.
End with a line saying just "end".
>x /1s $rdi
>c
>end
(gdb) c
Continuing.

Breakpoint 2, 0x00007ffff710a250 in dlopen () from /lib64/libdl.so.2
0x42d520:       "../modules//services_discovery/.libs/libsap_plugin.so"

Breakpoint 2, 0x00007ffff710a250 in dlopen () from /lib64/libdl.so.2
0x42d7c0:       "../modules//services_discovery/.libs/libudev_plugin.so"

...

Breakpoint 2, 0x00007ffff710a250 in dlopen () from /lib64/libdl.so.2
0x51cf60:       "../modules//text_renderer/.libs/libfreetype_plugin.so"

Breakpoint 2, 0x00007ffff710a250 in dlopen () from /lib64/libdl.so.2
0x51ce20:       "../modules//text_renderer/.libs/libsvg_plugin.so"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b51416 in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff7b51416 in ?? () from /lib64/libc.so.6
#1  0x00007ffff39cfd36 in g_str_equal () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff39cedc6 in g_hash_table_lookup () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff39ede5d in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ffff39ee025 in g_quark_from_static_string () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ffff22fef41 in ?? () from /usr/lib64/libgobject-2.0.so.0
#6  0x00007ffff7de9b46 in ?? () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7de9c2a in ?? () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7dedcd9 in ?? () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7de9986 in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff7ded509 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff710a1e6 in ?? () from /lib64/libdl.so.2
#12 0x00007ffff7de9986 in ?? () from /lib64/ld-linux-x86-64.so.2
#13 0x00007ffff710a78c in ?? () from /lib64/libdl.so.2
#14 0x00007ffff710a281 in dlopen () from /lib64/libdl.so.2
#15 0x00007ffff7f6d4bf in module_Load () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#16 0x00007ffff7f5aaed in module_InitDynamic () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#17 0x00007ffff7f5add6 in AllocatePluginDir () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#18 0x00007ffff7f5ae78 in AllocatePluginDir () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#19 0x00007ffff7f5ae78 in AllocatePluginDir () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#20 0x00007ffff7f5b0e4 in AllocatePluginPath () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#21 0x00007ffff7f5b56b in module_LoadPlugins () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#22 0x00007ffff7f02c8d in libvlc_InternalInit () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/src/.libs/libvlccore.so.7
#23 0x00007ffff7fe845d in libvlc_new () from /var/tmp/portage/media-video/vlc-2.1.4/work/vlc-2.1.4/lib/.libs/libvlc.so.5
#24 0x0000000000400a1c in main ()

------------- 8< -------------

My current workaround is to disable svg, if I get the time I'll investigate better the reason for this segfault.

Shall we forcibly disable svg until a proper fix is available?

This issue has also been discussed in the forum:

http://forums.gentoo.org/viewtopic-t-956738-start-0.html

The suggestion was to disable a bunch of USE flags:

USE="-svg -libnotify -xv -xcb"

But only svg should be responsible for this segfault.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-20 11:56:51 UTC

*** This bug has been marked as a duplicate of bug 405173 ***