[Issue 4710] New: writeln crashes when called from C code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 22 01:44:18 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4710
Summary: writeln crashes when called from C code.
Product: D
Version: D2
Platform: x86
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at gmail.com 2010-08-22 01:44:15 PDT ---
Given the following content:
// x.d
import std.stdio;
extern (C) void foo() {
writeln("1");
}
// y.c
void foo(void);
int main () {
foo();
return 0;
}
And compile and run with
gcc -c -m32 y.c -o y.o
dmd x.d y.o -ofx
./x
Result in a Bus Error on Mac OS X. (I am using dmd r620, druntime r370 and
Phobos r1900.)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list