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 target/29517] Exception handling not thread-safe on AIX5.x and HP-UX



------- Comment #9 from chris at cdnorthamerica dot com  2007-07-20 21:22 -------

This fails for me too on HPUX 11.11, gcc 4.1.1:

cmm@wendy:121>uname -a
HP-UX wendy B.11.11 U 9000/785 1681839108 unlimited-user license
cmm@wendy:122>make
/opt/hp-gcc64-4.1.1/bin/g++ -pthread crashme.cpp -o crashme -lpthread
cmm@wendy:123>~/dev/.dev/gdb/hpux-hppa-11.11/bin/gdb crashme
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa64-hp-hpux11.11"...(no debugging symbols found)

(gdb) run 5 10
Starting program: /home/cmm/hpux/crashme 5 10
Detaching after fork from child process 17434.
Detaching after fork from child process 17435.
Detaching after fork from child process 17436.
(no debugging symbols found)
(no debugging symbols found)
[New process 17433, lwp 886906]
Pass 1: Throwing exception in thread 0
[New process 17433, lwp 886907]
Pass 1: Throwing exception in thread 1
[New process 17433, lwp 886908]
Pass 1: Throwing exception in thread 2
[New process 17433, lwp 886909]
Pass 1: Throwing exception in thread 3
[New process 17433, lwp 886910]
Pass 1: Throwing exception in thread 4

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 17433, lwp 886910]
_Unwind_SetGR (context=<value optimized out>, index=<value optimized out>,
val=<value optimized out>)
    at /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/gcc/unwind-dw2.c:176
176     /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/gcc/unwind-dw2.c: No such file or
directory.
        in /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/gcc/unwind-dw2.c
(gdb) bt
#0  _Unwind_SetGR (context=<value optimized out>, index=<value optimized out>,
val=<value optimized out>)
    at /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/gcc/unwind-dw2.c:176
#1  0x800003ffbffc66c8 in __gxx_personality_v0 (version=<value optimized out>,
actions=6, exception_class=<value optimized out>,
    ue_header=0x80000001000c4038, context=0x800003ffbfc8b490)
    at
/tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/libstdc++-v3/libsupc++/eh_personality.cc:672
#2  0x800003ffbfe36218 in _Unwind_RaiseException_Phase2 (exc=<value optimized
out>, context=<value optimized out>)
    at unwind.inc:66
#3  0x800003ffbfe36524 in _Unwind_RaiseException (exc=<value optimized out>) at
unwind.inc:135
#4  0x800003ffbffc6b70 in __cxa_throw (obj=<value optimized out>, tinfo=0x14,
dest=0x80000001000c4038)
    at /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/libstdc++-v3/libsupc++/eh_throw.cc:72
#5  0x4000000000002bd8 in f ()
#6  0x800003ffbffdb250 in __pthread_body () from /lib/pa20_64/libpthread.1
#7  0x800003ffbffdb250 in __pthread_body () from /lib/pa20_64/libpthread.1
#8  0x800003ffbffdb250 in __pthread_body () from /lib/pa20_64/libpthread.1
#9  0x800003ffbffdb250 in __pthread_body () from /lib/pa20_64/libpthread.1
Cannot access memory at address 0x800003ffbfc8afb0
(gdb) quit
The program is running.  Exit anyway? (y or n) y
cmm@wendy:124>/opt/hp-gcc64-4.1.1/bin/g++ -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/configure
--host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp
-hpux11.11 --prefix=/opt/hp-gcc64-4.1.1 --enable-languages=c,c++ --with-gnu-as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-t
hreads=posix
Thread model: posix
gcc version 4.1.1
cmm@wendy:125>


-- 

chris at cdnorthamerica dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris at cdnorthamerica dot
                   |                            |com


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


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