Hi ALL, Machine A : Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp Machine B : Linux 7.1 GCC 3.1 Kernel 2.4.2-2
The following piece of code when run and compiled in Linux7.1 Machine A, runs fine, also compiled and run in Machine B, runs fine. But when the code is compiled in Machine A and run in Machine B, it crashes with segmentation fault: --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ int main () { ifstream is; is.open ("test.txt"); if ( (is.rdstate() & ifstream::failbit ) != 0 ) printf( "Error opening 'test.txt'\n"); return 0; } Any IDEAS?? Rgds, LearningAllTheTime -- Summary: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9- 45lxset34smp Product: gcc Version: 3.1 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mahek2k1 at yahoo dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094