This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/10797] filebuf.open() locks when using -lpthread on MIPS


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From toojays at toojays dot net  2003-06-19 08:33 -------
Okay, I've installed gcc-3.3 and the bug is still there. This is what it looks
like in gdb after I HUP the program:

Starting program: /home/toojays/t6/test1-gcc-3.3-with-pthread-native
[New Thread 16384 (LWP 21453)]

Program received signal SIGHUP, Hangup.
[Switching to Thread 16384 (LWP 21453)]
0x2aef3fd4 in __syscall_rt_sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x2aef3fd4 in __syscall_rt_sigsuspend () from /lib/libc.so.6
#1  0x2aef29e0 in sigsuspend () from /lib/libc.so.6
#2  0x2ab4aeec in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#3  0x2ab4db38 in __pthread_lock () from /lib/libpthread.so.0
#4  0x2ab481ec in pthread_mutex_lock () from /lib/libpthread.so.0
#5  0x2ab4c990 in flockfile () from /lib/libpthread.so.0
#6  0x2af49d30 in _IO_link_in_internal () from /lib/libc.so.6
#7  0x2af4c78c in _IO_old_file_init () from /lib/libc.so.6
#8  0x2af44c58 in fopen@GLIBC_2.0 () from /lib/libc.so.6
#9  0x2acb9c94 in std::__basic_file<char>::open(char const*, std::_Ios_Openmode,
int) (this=0x7fff79a0,
    __name=0x401270 "file1", __mode=1) at basic_file.cc:173
#10 0x2ac4132c in std::basic_filebuf<char, std::char_traits<char> >::open(char
const*, std::_Ios_Openmode) (
    this=0x7fff7938, __s=0x401270 "file1", __mode=8) at fstream.tcc:88
#11 0x00400da4 in foo::do_foo() (this=0x7fff7938) at filebuf_test1.cc:21
#12 0x00400eb0 in main () at filebuf_test1.cc:29


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]