public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
[not found] <bug-44661-4@http.gcc.gnu.org/bugzilla/>
@ 2013-03-02 20:42 ` g_sauthoff at web dot de
2013-03-02 20:44 ` pinskia at gcc dot gnu.org
2013-11-10 5:49 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: g_sauthoff at web dot de @ 2013-03-02 20:42 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
[not found] <bug-44661-4@http.gcc.gnu.org/bugzilla/>
2013-03-02 20:42 ` [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert g_sauthoff at web dot de
@ 2013-03-02 20:44 ` pinskia at gcc dot gnu.org
2013-11-10 5:49 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-03-02 20:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-02 20:44:20 UTC ---
I bet the issue is that Ubuntu's GCC passes --as-needed by default (non
standard really).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
[not found] <bug-44661-4@http.gcc.gnu.org/bugzilla/>
2013-03-02 20:42 ` [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert g_sauthoff at web dot de
2013-03-02 20:44 ` pinskia at gcc dot gnu.org
@ 2013-11-10 5:49 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-11-10 5:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX
Target Milestone|--- |4.9.0
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
fmudflap support has been removed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
2010-06-25 5:08 [Bug libmudflap/44661] New: " davi dot arnaut at sun dot com
` (2 preceding siblings ...)
2010-07-22 7:53 ` jakub at gcc dot gnu dot org
@ 2010-07-22 10:54 ` davi dot arnaut at sun dot com
3 siblings, 0 replies; 7+ messages in thread
From: davi dot arnaut at sun dot com @ 2010-07-22 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from davi dot arnaut at sun dot com 2010-07-22 10:54 -------
Let's get it documented? One sentence should do. I think it's pertinent because
-lpthread will most of the time come before user supplied compiler flags.
--
davi dot arnaut at sun dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
2010-06-25 5:08 [Bug libmudflap/44661] New: " davi dot arnaut at sun dot com
2010-06-28 0:48 ` [Bug libmudflap/44661] " pinskia at gcc dot gnu dot org
2010-07-21 23:53 ` pinskia at gcc dot gnu dot org
@ 2010-07-22 7:53 ` jakub at gcc dot gnu dot org
2010-07-22 10:54 ` davi dot arnaut at sun dot com
3 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-22 7:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2010-07-22 07:53 -------
Of course libmudflapth needs to come first, otherwise it doesn't override
libpthread symbols it means to override.
If it doesn't, that is a user error though.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
2010-06-25 5:08 [Bug libmudflap/44661] New: " davi dot arnaut at sun dot com
2010-06-28 0:48 ` [Bug libmudflap/44661] " pinskia at gcc dot gnu dot org
@ 2010-07-21 23:53 ` pinskia at gcc dot gnu dot org
2010-07-22 7:53 ` jakub at gcc dot gnu dot org
2010-07-22 10:54 ` davi dot arnaut at sun dot com
3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-21 23:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-07-21 23:53 -------
I think libmudflapth does have a dependency on libpthread which is causing this
issue. I think libmudflapth have a weak check in it too.
w pthread_join
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-07-21 23:53:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert
2010-06-25 5:08 [Bug libmudflap/44661] New: " davi dot arnaut at sun dot com
@ 2010-06-28 0:48 ` pinskia at gcc dot gnu dot org
2010-07-21 23:53 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-06-28 0:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-28 00:48 -------
>-lpthread
I think it is better to use -pthread instead.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-11-10 5:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-44661-4@http.gcc.gnu.org/bugzilla/>
2013-03-02 20:42 ` [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert g_sauthoff at web dot de
2013-03-02 20:44 ` pinskia at gcc dot gnu.org
2013-11-10 5:49 ` pinskia at gcc dot gnu.org
2010-06-25 5:08 [Bug libmudflap/44661] New: " davi dot arnaut at sun dot com
2010-06-28 0:48 ` [Bug libmudflap/44661] " pinskia at gcc dot gnu dot org
2010-07-21 23:53 ` pinskia at gcc dot gnu dot org
2010-07-22 7:53 ` jakub at gcc dot gnu dot org
2010-07-22 10:54 ` davi dot arnaut at sun dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).