This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]