[Issue 5278] DMD generates programs that immediately segfault.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 6 18:14:00 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5278
--- Comment #3 from Chad Joan <chadjoan at gmail.com> 2010-12-06 18:12:22 PST ---
(In reply to comment #2)
> Something looks wrong with your 32 bit gcc installation. Notice that gcc is
> invoking the 64 bit linker. Can you successfully build any 32 bit C apps with
> gcc? I'm going to guess no.
Good thought. I still seem to be able to build 32 bit C apps though:
chad at Hugin ~/cprojects/ctesting $ gcc trivial.c -o trivial
chad at Hugin ~/cprojects/ctesting $ file trivial
trivial: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
chad at Hugin ~/cprojects/ctesting $ ./trivial
chad at Hugin ~/cprojects/ctesting $ gcc trivial.c -m32 -o trivial
chad at Hugin ~/cprojects/ctesting $ file trivial
trivial: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
chad at Hugin ~/cprojects/ctesting $ ./trivial
chad at Hugin ~/cprojects/ctesting $ cat trivial.c
int main(int argc, char *argv[])
{
return 0;
}
I checked dmd 2.050 at the same time just to make sure this isn't because I
changed my system config. It still produces segfaulting executables. I have
encountered another program that I didn't expect to segfault but did: the Gish
demo (http://www.chroniclogic.com/gish_download.htm). I don't know if it's
related because the segfault is such a terribly vague error and I don't feel
like learning how to disassemble executables again right now :/ If someone
wants to point me in the right directions to do that though, I wouldn't mind.
So hey, maybe there is something special about my system that makes things
crashy, but it'd be nice if the D executables could run on my system without
crashing like all of the other executables on my system that don't crash.
--
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