From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6238 invoked by alias); 3 Feb 2006 23:23:14 -0000 Received: (qmail 6227 invoked by uid 48); 3 Feb 2006 23:23:10 -0000 Date: Fri, 03 Feb 2006 23:23:00 -0000 Subject: [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mahek2k1 at yahoo dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00292.txt.bz2 List-Id: 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