Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499514 - dev-db/mysql-workbench-6.0.8 - mysql-workbench: libgcc_s.so.1 must be installed for pthread_cancel to work
Summary: dev-db/mysql-workbench-6.0.8 - mysql-workbench: libgcc_s.so.1 must be install...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL: http://bugs.mysql.com/bug.php?id=42850
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-27 23:38 UTC by Marko D
Modified: 2015-07-12 09:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.52 KB, text/plain)
2014-01-27 23:39 UTC, Marko D
Details
gdb mysql-workbench-bin (debuger-output.txt,2.84 KB, text/plain)
2014-01-27 23:40 UTC, Marko D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marko D 2014-01-27 23:38:08 UTC
mysql-workbench-6.0.8 fails to connect to a mysql database instance with message

libgcc_s.so.1 must be installed for pthread_cancel to work

The reported library is not missing:
> locate libgcc_s.so.1
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1.debug
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so.1.debug
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1.debug
/usr/lib64/debug/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/32/libgcc_s.so.1.debug
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/32/libgcc_s.so.1

> file usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
        file /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
        /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),       dynamically linked, stripped

>ldconfig -p |grep libgcc_s.so
	libgcc_s.so.1 (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1
	libgcc_s.so.1 (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1
	libgcc_s.so.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/32/libgcc_s.so.1
	libgcc_s.so.1 (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so.1
	libgcc_s.so (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so
	libgcc_s.so (libc6,x86-64) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so
	libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/32/libgcc_s.so
	libgcc_s.so (libc6) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so

> source /usr/bin/mysql-workbench
gdb /usr/bin/mysql-workbench-bin output: attached.
emerge --info: attached


As per discussions in http://bugs.mysql.com/bug.php?id=42850, if nptl_pthread_exit_hack_handler function (in my_thr_init.c) is modified and pthread_exit(0) is commented out, then mysql-workbench can be used to connect to a database without error.
The mysql-workbench GUI would still have an issue at exit: if an attempt to connect to a database fails, the the GUI can not be closed gracefully. 

Reproducible: Always

Steps to Reproduce:
1.Launch mysql-workbench
2.Go to Database -> Connect to database (top menu)
3.Create a connection a MySql database (hostname, username); storing the connection is optional
4. click OK
5. try to use the connection created in previous step
Actual Results:  
mysql-workbench-bin exits:
Program received signal SIGABRT, Aborted
last message on the console: libgcc_s.so.1 must be installed for pthread_cancel to work
Comment 1 Marko D 2014-01-27 23:39:19 UTC
Created attachment 368932 [details]
emerge --info
Comment 2 Marko D 2014-01-27 23:40:46 UTC
Created attachment 368934 [details]
gdb mysql-workbench-bin
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-28 11:29:38 UTC
Did you try re-emerging dev-db/mysql-workbench? You may have switched to a newer libgcc_s.so when you upgraded your system compiler (gcc-config -l).
Comment 4 Marko D 2014-01-28 15:50:56 UTC
(In reply to Jeroen Roovers from comment #3)

Yes, re-emerged after checking gcc-config output:
>  gcc-config -l
    [1] x86_64-pc-linux-gnu-4.7.3
    [2] x86_64-pc-linux-gnu-4.8.2 *

Still no difference after re-emerging.
Comment 5 Hans de Graaff gentoo-dev Security 2014-02-25 19:09:01 UTC
I can't reproduce this issue, and the bug you reference has been closed a long time ago. I'm not sure what to do about this. If this also happens when you build mysql-workbench by hand then it might be best to report this upstream directly.
Comment 6 Cedric Godin 2014-04-16 11:17:10 UTC
I had the problem too on my 32 and 64 bits machines.
What I did to resolve it is remove the "strip-flags" line and emerge it agaibn with LDFLAGS=-lgcc_s
So something seems wrong in my (our?) LDFLAGS

from emerge --info:

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now"

"-Wl,-z,now" maybe
Comment 7 Hans de Graaff gentoo-dev Security 2015-07-12 09:55:56 UTC
I have just tested building mysql-workbench 6.3.4 with -Wl,-z,now and (after fixing a different bug) this now works as expected for me. Could you retest with this version and reopen the bug if the issue is still there?