bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ ofstream and shared libraries...


From: Stefan Eilers
Subject: g++ ofstream and shared libraries...
Date: Wed, 15 Aug 2001 14:19:52 +0200

A similiar problem was reportet in 1995 by address@hidden with
subject "dynamically loaded shared library, exit() function". This was
found in google..

I am able to reproduce this problem, using GCC 2.95.2 on Linux (Suse
7.1):

If I am adding a ofstream in a shared library, the program is unable to
return. Using gdb and interrupting the program shows the following:

Program received signal SIGINT, Interrupt.
[Switching to Thread 1024 (LWP 24490)]
0x401c437a in _IO_flush_all () from /lib/libc.so.6

The Backtrace says:

#0  0x401c437a in _IO_flush_all () from /lib/libc.so.6
#1  0x401c44b9 in _cleanup () from /lib/libc.so.6
#2  0x40184354 in exit () from /lib/libc.so.6
#3  0x40171bb5 in __libc_start_main () from /lib/libc.so.6

This shows that there must be a problem in the IO_flush algorith of the
c-library...

If I remove the complete ofstream, everything works fine ..

Maybe I am wrong in this newsgroup, but I do need help !!

Thanks a lot.. !






--
Dipl.-Ing. Stefan Eilers           | Institut für Technische Informatik
Tel.   +49 511 762 19737           | Abt. Rechnerstrukturen und
Fax    +49 511 762 19733           | Betriebssysteme
EMail: address@hidden  | Universität Hannover
                                   | Appelstraße 4 (Raum 118) 
                                   | D-30167 Hannover



reply via email to

[Prev in Thread] Current Thread [Next in Thread]