www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Hello World crashes on OS X 10.6.1

reply asd <asd asd.invalid> writes:
import std.stdio;


void main()
{
	writef("Hello world\n");
}


dmd -run test.d gives:

Process:         test [1703]
Path:            /Users/username/Desktop/test
Identifier:      test
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  dmd [1698]

Date/Time:       2009-10-31 10:18:54.604 +0000
OS Version:      Mac OS X 10.6.1 (10B504)
Report Version:  6

Interval Since Last Report:          1964 sec
Crashes Since Last Report:           4
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      1840379D-AECE-4F32-870F-67C913F11C0E

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000009090007c
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   test                          	0x00003bf5 D3std4conv11__T2toTsTiZ2toFiZs +
13
1   test                          	0x00002584 _Dmain + 32
2   test                          	0x00007ec7
D2rt6dmain24mainUiPPaZi7runMainMFZv + 23
3   test                          	0x00007c4e
D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
4   test                          	0x00007f0b
D2rt6dmain24mainUiPPaZi6runAllMFZv + 55
5   test                          	0x00007c4e
D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
6   test                          	0x00007bdc main + 168
7   test                          	0x00002559 start + 53

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x9090007c  ebx: 0xbffff238  ecx: 0x00007c35  edx: 0x00007eb0
  edi: 0x00007b5a  esi: 0xbffff238  ebp: 0xbffff118  esp: 0xbffff0fc
   ss: 0x0000001f  efl: 0x00010202  eip: 0x00003bf5   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x9090007c

Binary Images:
    0x1000 -    0x1fff7 +test ??? (???) <E1858B00-12D8-CA3C-5CAD-B762E75A3D7F>
/Users/username/Desktop/test
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???)
<211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
0x91b41000 - 0x91b44fe7  libmathCommon.A.dylib ??? (???)
<1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x94128000 - 0x942ccfeb  libSystem.B.dylib ??? (???)
<E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib
0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???)
<E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib
Oct 31 2009
next sibling parent asd <asd asd.invalid> writes:
forgot to add it's freshly downloaded dmd v2.035.
Oct 31 2009
prev sibling parent Jason House <jason.james.house gmail.com> writes:
It's a known issue. Apple breaks backwards compatibility all the time. Walter
hinted that 2.034 would fix the issue, but that didn't come to pass. I don't
know if that's from difficulty or shifting priorities. I'm sure a patch would
be appreciated ;)

asd Wrote:

 import std.stdio;
 
 
 void main()
 {
 	writef("Hello world\n");
 }
 
 
 dmd -run test.d gives:
 
 Process:         test [1703]
 Path:            /Users/username/Desktop/test
 Identifier:      test
 Version:         ??? (???)
 Code Type:       X86 (Native)
 Parent Process:  dmd [1698]
 
 Date/Time:       2009-10-31 10:18:54.604 +0000
 OS Version:      Mac OS X 10.6.1 (10B504)
 Report Version:  6
 
 Interval Since Last Report:          1964 sec
 Crashes Since Last Report:           4
 Per-App Crashes Since Last Report:   3
 Anonymous UUID:                      1840379D-AECE-4F32-870F-67C913F11C0E
 
 Exception Type:  EXC_BAD_ACCESS (SIGBUS)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x000000009090007c
 Crashed Thread:  0  Dispatch queue: com.apple.main-thread
 
 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   test                          	0x00003bf5 D3std4conv11__T2toTsTiZ2toFiZs +
13
 1   test                          	0x00002584 _Dmain + 32
 2   test                          	0x00007ec7
D2rt6dmain24mainUiPPaZi7runMainMFZv + 23
 3   test                          	0x00007c4e
D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
 4   test                          	0x00007f0b
D2rt6dmain24mainUiPPaZi6runAllMFZv + 55
 5   test                          	0x00007c4e
D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv + 42
 6   test                          	0x00007bdc main + 168
 7   test                          	0x00002559 start + 53
 
 Thread 0 crashed with X86 Thread State (32-bit):
   eax: 0x9090007c  ebx: 0xbffff238  ecx: 0x00007c35  edx: 0x00007eb0
   edi: 0x00007b5a  esi: 0xbffff238  ebp: 0xbffff118  esp: 0xbffff0fc
    ss: 0x0000001f  efl: 0x00010202  eip: 0x00003bf5   cs: 0x00000017
    ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
   cr2: 0x9090007c
 
 Binary Images:
     0x1000 -    0x1fff7 +test ??? (???) <E1858B00-12D8-CA3C-5CAD-B762E75A3D7F>
/Users/username/Desktop/test
 0x8fe00000 - 0x8fe4162b  dyld 132.1 (???)
<211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
 0x91b41000 - 0x91b44fe7  libmathCommon.A.dylib ??? (???)
<1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
 0x94128000 - 0x942ccfeb  libSystem.B.dylib ??? (???)
<E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib
 0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???)
<E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib
 
 
Oct 31 2009