[Issue 758] Segmentation fault when compiling.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 31 17:47:22 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=758





------- Comment #4 from quartz13163 at distanthumans.info  2006-12-31 19:47 -------
(In reply to comment #3)
> I just want it known that Bud uses the system() function to invoke the
> compiler. If this is returning zero when the compiler segfaults then there is
> not much more I can do.
> 
>     lRC = system(std.string.toStringz(pCommand));
>     version(Posix) lTrueRC = ((lRC & 0xFF00) >> 8);
>     version(Windows) lTrueRC = lRC;
> 
> I suppose I could check that all the files being passed to the linker do in
> fact exist, but as the linker does that check anyway it would be a bit
> redundant.
> 

I didn't mean to imply anything was wrong with bud--I use it alot-- Bud is a
great tool btw. I have made a local customization to compile only one file at a
time which gets me past this ticket's issue (for a short while).

I ventured into the depths of phobos to see what the code is doing to handle
SIGSEGV. process.d is simply calling the kernel's system call and returning the
result.


-- 



More information about the Digitalmars-d-bugs mailing list