segfault on Mac 10.5.8

9 views
Skip to first unread message

Digited

unread,
Oct 6, 2009, 12:07:32 PM10/6/09
to LDC - the LLVM D compiler
Hi, LDC Devs,

Thanks again for a great compiler, i use it at home in opensuse linux
64bit.

At work in Mac Mini (Intel) with OSX 10.5.8 i have a stable segfault
on exit of every D app, compiled with today's ldc & tango trunks (llvm
2.6 prerelease).
Most D apps work, just segfault on app exit: minid's mdcl and minidc
do, but xfbuild doesn't.

If there's a way to find out more details (i dunno how), please let me
know.

Digited

unread,
Oct 15, 2009, 8:26:38 AM10/15/09
to LDC - the LLVM D compiler
2 Fawzi

http://paste.dprogramming.com/dpu7n7ai

llvm 2.6 from now, ldc from now, tango from now, mac os x intel 10.5.8
//--------------------------------------------

module test;

import
tango.core.Version,
tango.io.Stdout;

int main( char[][] args )
{
Stdout.formatln( "Built with {} v{} and Tango v{}.{} at {}
{}",
__VENDOR__, __VERSION__, Tango.Major, Tango.Minor,
__DATE__, __TIME__ );
return 0;
}

//----------------------------------------

elizabeth:testing ezheleznikov$ ldc test.d -g
elizabeth:testing ezheleznikov$ gdb test
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58
UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome 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 "i386-apple-darwin"...Reading symbols for
shared libraries ... done

(gdb) run
Starting program: /Users/ezheleznikov/Documents/d/testing/test
Reading symbols for shared libraries ++. done
Built with LDC v1045 and Tango v0.999 at Oct 15 2009 17:25:31

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xbf7ffffc
0x00015e70 in _D2rt7basicgc3gcx3Gcx16thread_InvariantMFZv
(this=0x100210

Digited

unread,
Oct 15, 2009, 10:56:15 AM10/15/09
to LDC - the LLVM D compiler
(gdb) bt
#0 0x00015e70 in _D2rt7basicgc3gcx3Gcx16thread_InvariantMFZv
(this=0x100210)
#1 0x00014ea2 in _D2rt7basicgc3gcx2GC11__invariantMFZv
(this=0x100130) at rt.basicgc.gcx.d:322
#2 0x0001fb01 in _d_invariant (o=0x100130) at rt.invariant_.d:24
#3 0x00013dc4 in _D2rt7basicgc3gcx2GC6mallocMFkkZPv (this=0x100130,
size=36, bits=1) at rt.basicgc.gcx.d:482
#4 0x0001241c in gc_malloc (sz=36, ba=1) at rt.basicgc.gc.d:156
#5 0x0001a7dd in _d_allocclass (ci=0x4dee0) at rt.lifetime.d:127
#6 0x0000d874 in onAssertError (file={length = 95, ptr = 0x36bc0 "/
Users/ezheleznikov/Documents/d/src/tango/build/runtime/../../runtime/
gc/basic/rt/basicgc/gcx.d"}, line=3060) at tango.core.Exception.d:442
#7 0x00020551 in _d_assert (file={length = 95, ptr = 0x36bc0 "/Users/
ezheleznikov/Documents/d/src/tango/build/runtime/../../runtime/gc/
basic/rt/basicgc/gcx.d"}, line=3060) at rt.dmain2.d:60

and this 7 lines then repeat for ever (without changes), i ctrl
+cancelled it on 50k or so, it seems to be an infinite recursion.

Digited

unread,
Oct 21, 2009, 11:11:04 AM10/21/09
to LDC - the LLVM D compiler
Reply all
Reply to author
Forward
0 new messages