From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14942 invoked by alias); 9 Feb 2012 00:47:04 -0000 Received: (qmail 14932 invoked by uid 22791); 9 Feb 2012 00:47:03 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Feb 2012 00:46:51 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug boehm-gc/52179] boehm-gc incompatible with aslr on darwin11 Date: Thu, 09 Feb 2012 00:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: boehm-gc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED 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: 2012-02/txt/msg00918.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52179 --- Comment #4 from Jack Howarth 2012-02-09 00:46:21 UTC --- Backtrace for thread_leak_test at -m64.... # gdb ./thread_leak_testGNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done (gdb) set disable-aslr off (gdb) r Starting program: /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.3.0/boehm-gc/testsuite/.libs/thread_leak_test Reading symbols for shared libraries + done Reading symbols for shared libraries ++++........................ done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00007fff650f1368 GC_mark_from (mark_stack_top=0x105522000, mark_stack=0x105522000, mark_stack_limit=0x105532000) at ../../../gcc-4.7-20120207/boehm-gc/mark.c:759 759 deferred = *limit; (gdb) bt #0 GC_mark_from (mark_stack_top=0x105522000, mark_stack=0x105522000, mark_stack_limit=0x105532000) at ../../../gcc-4.7-20120207/boehm-gc/mark.c:759 #1 0x000000010547c947 in GC_mark_some (cold_gc_frame=0x7fff6506c5dc "\001") at ../../../gcc-4.7-20120207/boehm-gc/mark.c:361 #2 0x00000001054746ae in GC_stopped_mark (stop_func=0x105473b88 ) at ../../../gcc-4.7-20120207/boehm-gc/alloc.c:531 #3 0x000000010547426a in GC_try_to_collect_inner (stop_func=0x105473b88 ) at ../../../gcc-4.7-20120207/boehm-gc/alloc.c:378 #4 0x0000000105480222 in GC_init_inner () at ../../../gcc-4.7-20120207/boehm-gc/misc.c:789 #5 0x000000010547adda in GC_generic_malloc_inner (lb=144, k=1) at ../../../gcc-4.7-20120207/boehm-gc/malloc.c:123 #6 0x0000000105486d39 in GC_pthread_create (new_thread=0x7fff6506c740, attr=0x0, start_routine=0x10546dd18 , arg=0x0) at ../../../gcc-4.7-20120207/boehm-gc/pthread_support.c:1330 #7 0x000000010546ddd6 in main () at /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120207/boehm-gc/testsuite/boehm-gc.c/thread_leak_test.c:28 (gdb)