This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
- From: "g_sauthoff at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 02 Mar 2013 20:42:25 +0000
- Subject: [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
- Auto-submitted: auto-generated
- References: <bug-44661-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
--- Comment #5 from Georg Sauthoff <g_sauthoff at web dot de> 2013-03-02 20:42:25 UTC ---
I can reproduce this issue on Ubuntu 10.04 (gcc 4.4.3).
That means:
$ gcc -o foo foo.c -fmudflapth -lpthread -lmudflapth
$ ./foo
-> mf: erroneous reentrancy detected in `__mf_check'
$ gcc -o foo foo.c -fmudflapth -pthread -lmudflapth
$ ./foo
-> foo 1
On Fedora 17 (x86-64) (gcc 4.7.2) the issue is not present:
$ gcc -lpthread -o foo foo.c -fmudflapth -lpthread -lmudflap
$ ./foo
-> foo 1