Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #2099 (new defect)

Opened 12 years ago

Tango as a 64bit library with DMD on Mac OS X

Reported by: doob Assigned to: community
Priority: major Milestone: 1.0
Component: Tango Version: 0.99.9 Kai
Keywords: Cc:

Description

I'm creating this ticket for keeping track of what needs to be fixed to get Tango working as a 64bit library with DMD on Mac OS X. I've attached a patch as a first step to get Tango to compile as a 64bit library with DMD on Mac OS X.

Running a Hello World application results in a segmentation fault with the following backtrace from GDB:

(gdb) r
Starting program: /Users/doob/development/d/test 
Reading symbols for shared libraries +. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000030
0x00000001000160f4 in D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput5printMFYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput ()
(gdb) bt
#0  0x00000001000160f4 in D5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput5printMFYC5tango2io6stream6Format20__T12FormatOutputTaZ12FormatOutput ()
#1  0x0000000100000a9c in _Dmain ()
#2  0x0000000100007c8d in D2rt8compiler3dmd2rt6dmain24mainUiPPaZi7runMainMFZv ()
#3  0x0000000100007bb9 in D2rt8compiler3dmd2rt6dmain24mainUiPPaZi7tryExecMFDFZvZv ()
#4  0x0000000100007cd8 in D2rt8compiler3dmd2rt6dmain24mainUiPPaZi6runAllMFZv ()
#5  0x0000000100007bb9 in D2rt8compiler3dmd2rt6dmain24mainUiPPaZi7tryExecMFDFZvZv ()
#6  0x00000001000078b5 in main ()

Attachments

tango.patch (23.2 kB) - added by doob on 11/16/11 17:41:09.

Change History

11/16/11 17:41:09 changed by doob

  • attachment tango.patch added.