Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* program compiled with g++ dumps core?
@ 1998-03-30  5:00 Colin Prepscius
  1998-03-30  5:00 ` Andreas Trottmann
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Prepscius @ 1998-03-30  5:00 UTC (permalink / raw)



Programs I compile with g++ dump core after just about any i/o: 

#include <stdio.h>
int main (void) {
        cout << "Hello";
        return 1;
}

yields:
HelloSegmentation fault (core dumped)

But if I do no i/o (like incrementing an int or something), it doesn't  
fault.

This is with RedHat linux on a 533Mhz Microway Alpha, gcc version 2.7.  

Anybody have any ideas?

thanks,

-Colin Prepscius
Programmer, Neurosurgery, UVA



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-03-30  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-30  5:00 program compiled with g++ dumps core? Colin Prepscius
1998-03-30  5:00 ` Andreas Trottmann
1998-03-30  5:00   ` Greg Lindahl
1998-03-30  5:00   ` Colin Prepscius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox