This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
- From: "mahek2k1 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2006 23:23:10 -0000
- Subject: [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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