public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/26094]  New: Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
@ 2006-02-03 23:23 mahek2k1 at yahoo dot com
  2006-02-04 18:49 ` [Bug libstdc++/26094] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mahek2k1 at yahoo dot com @ 2006-02-03 23:23 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug libstdc++/26094] Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
  2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
@ 2006-02-04 18:49 ` pinskia at gcc dot gnu dot org
  2006-02-04 20:51 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-04 18:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-04 18:49 -------
"Linux 7.1" that is a new one.

Also 3.1 came out almost 4 years ago.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094


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

* [Bug libstdc++/26094] Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
  2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
  2006-02-04 18:49 ` [Bug libstdc++/26094] " pinskia at gcc dot gnu dot org
@ 2006-02-04 20:51 ` rguenth at gcc dot gnu dot org
  2006-02-05 15:41 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-04 20:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-02-04 20:51 -------
Please try with Linux and gcc that are still supported.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094


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

* [Bug libstdc++/26094] Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
  2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
  2006-02-04 18:49 ` [Bug libstdc++/26094] " pinskia at gcc dot gnu dot org
  2006-02-04 20:51 ` rguenth at gcc dot gnu dot org
@ 2006-02-05 15:41 ` pinskia at gcc dot gnu dot org
  2006-02-06 21:05 ` mahek2k1 at yahoo dot com
  2006-02-08 16:34 ` bkoz at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-05 15:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094


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

* [Bug libstdc++/26094] Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
  2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
                   ` (2 preceding siblings ...)
  2006-02-05 15:41 ` pinskia at gcc dot gnu dot org
@ 2006-02-06 21:05 ` mahek2k1 at yahoo dot com
  2006-02-08 16:34 ` bkoz at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mahek2k1 at yahoo dot com @ 2006-02-06 21:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mahek2k1 at yahoo dot com  2006-02-06 21:05 -------
(In reply to comment #2)
> Please try with Linux and gcc that are still supported.

Thanks for the inputs, sorry for making it confusing, the linux is Redhat 7.1

Additional info

GDB Stack trace is following: 


(gdb) run 


Starting program: tryrdstategrid.2 


Error opening 'test.txt' 


Program received signal SIGSEGV, Segmentation fault. 


0x00000000 in ?? () 


(gdb) backtrace 


#0  0x00000000 in ?? () 


#1  0x4011e6f0 in __libc_start_main ( 


    main=0x400ad648 <vtable for std::num_put<char, 
std::ostreambuf_iterator<char, std::char_traits<char> > >+8>, argc=0, 


    ubp_av=0x400ad1e8, init=0, fini=0, rtld_fini=0, stack_end=0x0) at 
../sysdeps/generic/libc-start.c:129 


Previous frame inner to this frame (corrupt stack?) 


(gdb) 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094


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

* [Bug libstdc++/26094] Segmentation fault in  Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp
  2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
                   ` (3 preceding siblings ...)
  2006-02-06 21:05 ` mahek2k1 at yahoo dot com
@ 2006-02-08 16:34 ` bkoz at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2006-02-08 16:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bkoz at gcc dot gnu dot org  2006-02-08 16:34 -------

The compiler you are using, 3.1 was a release that was immediately superceeded
by 3.2 because of errors. It is unsupported, as is Red Hat 7.1.

Please put self-contained (ie cut and paste to compiler with no edits) sources
in bug reports. 

I suggest you try again with 3.3, 3.4, or 4.0. Try compiling both as you did
(which was how, by the way) and also with static links (-static). See if one
fails, and the other works. If so, reopen this and provide more details.

-benjamin


-- 

bkoz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26094


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

end of thread, other threads:[~2006-02-08 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03 23:23 [Bug libstdc++/26094] New: Segmentation fault in Linux 7.1 GCC 3.1 Kernel 2.4.9-45lxset34smp mahek2k1 at yahoo dot com
2006-02-04 18:49 ` [Bug libstdc++/26094] " pinskia at gcc dot gnu dot org
2006-02-04 20:51 ` rguenth at gcc dot gnu dot org
2006-02-05 15:41 ` pinskia at gcc dot gnu dot org
2006-02-06 21:05 ` mahek2k1 at yahoo dot com
2006-02-08 16:34 ` bkoz at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).