From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12197 invoked by alias); 2 Mar 2013 20:42:41 -0000 Received: (qmail 12147 invoked by uid 48); 2 Mar 2013 20:42:26 -0000 From: "g_sauthoff at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libmudflap/44661] Link order (?) might cause threaded libmudflap to assert Date: Sat, 02 Mar 2013 20:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libmudflap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: g_sauthoff at web dot de X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00136.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44661 --- Comment #5 from Georg Sauthoff 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