Bug 19966

Summary: [2.23 Regression] binaries linked with --version-script segfault with 2.23 on powerpc-linux-gnu
Product: glibc Reporter: Matthias Klose <doko>
Component: dynamic-linkAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: fweimer
Priority: P2 Flags: fweimer: security-
Version: 2.23   
Target Milestone: ---   
Host: powerpc-linux-gnu Target:
Build: Last reconfirmed:

Description Matthias Klose 2016-04-18 21:30:02 UTC
binaries linked with --version-script segfault with 2.23 on powerpc-linux-gnu.  The binaries don't need to be built with 2.23, but just start segfaulting.

Several packages link their binaries, not just the shared libraries with --version-script= ...
On Ubuntu 16.04, this is at least seen for xorriso (src:libisoburn), lua5.x and llvm (when built using autoconf, not cmake).

https://bugs.launchpad.net/ubuntu/+source/libisoburn/+bug/1571684

(gdb) run
Starting program: /home/doko/tmp/libisoburn-1.4.2/xorriso/.libs/xorriso -no_rc -version
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".
xorriso 1.4.2 : RockRidge filesystem manipulator, libburnia project.

xorriso 1.4.2
ISO 9660 Rock Ridge filesystem manipulator and CD/DVD/BD burn program
Copyright (C) 2015, Thomas Schmitt <scdbackup@gmx.net>, libburnia project.
xorriso version : 1.4.2
Version timestamp : 2015.11.28.140001
Build timestamp : -none-given-
libisofs in use : 1.4.2 (min. 1.4.2)
libjte in use : 1.0.0 (min. 1.0.0)
libburn in use : 1.4.2 (min. 1.4.2)
libburn OS adapter: internal GNU/Linux SG_IO adapter sg-linux
libisoburn in use : 1.4.2 (min. 1.4.2)
Provided under GNU GPL version 3 or later, due to libreadline license.
There is NO WARRANTY, to the extent permitted by law.

Program received signal SIGSEGV, Segmentation fault.
__GI__IO_wsetb (f=f@entry=0x1feccca0 <_IO_stdout_>, b=b@entry=0x0, eb=eb@entry=0x0, a=a@entry=0) at wgenops.c:105
105 wgenops.c: No such file or directory.
Fedora report this for s390x too:
https://bugzilla.redhat.com/show_bug.cgi?id=1320305

libburn and libisofs seem to be affected too.