Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* C++ Exception runtime problem
@ 2002-09-23 21:39 Major
  2002-09-23 22:10 ` Kenneth Block
  0 siblings, 1 reply; 3+ messages in thread
From: Major @ 2002-09-23 21:39 UTC (permalink / raw)


I am trying to port a multi-threaded (pthreads) C++ application to
Tru64 and have managed to successfully compile and link it, but it
will not run, when executing the program I get the following error
(below). Any ideas about the cause/solutions would be appreciated, it
seems to happen before my code even begins execution:

uname: OSF1 mymachine T5.1 585 alpha

compiler: Compaq C++ V6.5-014 for Compaq Tru64 UNIX T5.1-9 (Rev. 585)
Compiler Driver V6.5-014 (cxx) cxx Driver

compiler flags: 
cxx -x cxx -using_std -pthread -tweak -call_shared
-D__USE_STD_IOSTREAM -D_TS_ERRNO -DALPHA -DALPHA5 -DI18N_COMPILE
-DUNSAFE_STRLEN -g -D_RWSTD_CONTAINER_BUFFER_SIZE=1 -DSVR4 -DDEBUG
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ...

Error:
> myProgram
exception system: exiting due to multiple internal errors:
exception dispatch or unwind stuck in infinite loop
exception dispatch or unwind stuck in infinite loop
exception system: exiting due to multiple internal errors:
exception dispatch or unwind stuck in infinite loop
exception dispatch or unwind stuck in infinite loop
Abort (core dumped)
>

Here is the stack trace:
dbx version 5.1
Type 'help' for help.
Core file created by program "jfd"

thread 0x8 signal IOT/Abort trap at >*[_sigprocmask, 0x3ff800d2118]
bne a3, 0x3ff800d2120
(dbx) where
> 0 _sigprocmask(0x3ff00000000, 0x50ffe0000, 0x3ff8011a1f8, 0x6, 0x3ff80171424) [0x3ff800d2118]
1 __sigprocmask(0x3ff8011a1f8, 0x6, 0x3ff80171424, 0x0, 0x3ff80190250)
[0x3ff800d420c]
2 abort(0x3ff807f2210, 0x20, 0x0, 0x0, 0x600000000) [0x3ff8019024c]
3 __exc_raise_status_exception(0x0, 0x0, 0x0, 0x0, 0x3ff800beeb0)
[0x3ff807f220c]
4 exc_raise_status_exception(0x0, 0x0, 0x3ff800beeb0, 0x0,
0x3ff807f2f04) [0x3ff807f227c]
5 exc_dispatch_exception(0x11fffbf50, 0x7, 0x11fff9e80, 0x140000000,
0x20c000) [0x3ff807f2f00]
6 exc_raise_signal_exception(0x60ffe0003, 0x80, 0x0, 0x3ff805c87c8,
0x1) [0x3ff807f39e0]
7 (unknown)() [0x3ff805b7bf0]
8 __nxm_thread_kill(0x10, 0x1, 0x0, 0x0, 0x3ff800d7ab4)
[0x3ff805c87c8]
9 pthread_kill(0x0, 0x0, 0x0, 0x1, 0x3ff00000000) [0x3ff805b6034]
10 (unknown)() [0x3ff805be7cc]
11 __tis_raise(0x3ff00000000, 0x50ffe0000, 0x3ff8011a1f8, 0x6,
0x3ff80171424) [0x3ff8011a1f4]
12 raise(0x3ff8011a1f8, 0x6, 0x3ff80171424, 0x0, 0x3ff801901d0)
[0x3ff80171420]
13 abort(0x3ff807f2210, 0x3ff800beeb0, 0x3ff805b7940, 0x0,
0x600000000) [0x3ff801901cc]
14 __exc_raise_status_exception(0x0, 0x0, 0x0, 0x0, 0x3ff800beeb0)
[0x3ff807f220c]
15 exc_raise_status_exception(0x0, 0x0, 0x3ff800beeb0, 0x0,
0x3ff807f2f04) [0x3ff807f227c]
16 exc_dispatch_exception(0x11fffbf50, 0x11fffb088, 0x11fffab00, 0x0,
0x3ff807f23ac) [0x3ff807f2f00]
17 exc_raise_exception(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff807f2400]
18 __exc_raise_status_exception(0x0, 0x3ff807f2244, 0x0, 0x0, 0x0)
[0x3ff807f2244]
19 exc_raise_status_exception(0x0, 0x0, 0x0, 0x11fffb6d9,
0x3ff807f2f04) [0x3ff807f227c]
20 exc_dispatch_exception(0x11fffbf50, 0x3ffc0004300, 0x11fffb640,
0x174400003b95, 0x3ff80010fd0) [0x3ff807f2f00]
21 exc_raise_signal_exception(0xb0ffe0003, 0x80, 0x0, 0x3ff81f1ab68,
0x1) [0x3ff807f39e0]
22 (unknown)() [0x3ff805b7bf0]
23 Lock__13InternalMutexXv() [0x3ff81f1ab64]
24 lock__5MutexXv() [0x3ff81f2a0f0]
25 __ct__13Iostream_initXv() [0x3ff81f28c38]
26 __init_sti__cxxl_init_cxx_2e91e52e() [0x3ff81f160a8]


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

* Re: C++ Exception runtime problem
  2002-09-23 21:39 C++ Exception runtime problem Major
@ 2002-09-23 22:10 ` Kenneth Block
  2002-09-24  8:01   ` Major
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Block @ 2002-09-23 22:10 UTC (permalink / raw)


By any chance, do you have a class called Mutex? If so, it could be
interfering with the class of the same name that exists in libcxx.so.

"Major" <mlhoyt@hotmail.com> wrote in message
news:abdd6ed8.0209231339.28d6c3f7@posting.google.com...
> I am trying to port a multi-threaded (pthreads) C++ application to
> Tru64 and have managed to successfully compile and link it, but it
> will not run, when executing the program I get the following error
> (below). Any ideas about the cause/solutions would be appreciated, it
> seems to happen before my code even begins execution:
>
> uname: OSF1 mymachine T5.1 585 alpha
>
> compiler: Compaq C++ V6.5-014 for Compaq Tru64 UNIX T5.1-9 (Rev. 585)
> Compiler Driver V6.5-014 (cxx) cxx Driver
>
> compiler flags:
> cxx -x cxx -using_std -pthread -tweak -call_shared
> -D__USE_STD_IOSTREAM -D_TS_ERRNO -DALPHA -DALPHA5 -DI18N_COMPILE
> -DUNSAFE_STRLEN -g -D_RWSTD_CONTAINER_BUFFER_SIZE=1 -DSVR4 -DDEBUG
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ...
>
> Error:
> > myProgram
> exception system: exiting due to multiple internal errors:
> exception dispatch or unwind stuck in infinite loop
> exception dispatch or unwind stuck in infinite loop
> exception system: exiting due to multiple internal errors:
> exception dispatch or unwind stuck in infinite loop
> exception dispatch or unwind stuck in infinite loop
> Abort (core dumped)
> >
>
> Here is the stack trace:
> dbx version 5.1
> Type 'help' for help.
> Core file created by program "jfd"
>
> thread 0x8 signal IOT/Abort trap at >*[_sigprocmask, 0x3ff800d2118]
> bne a3, 0x3ff800d2120
> (dbx) where
> > 0 _sigprocmask(0x3ff00000000, 0x50ffe0000, 0x3ff8011a1f8, 0x6,
0x3ff80171424) [0x3ff800d2118]
> 1 __sigprocmask(0x3ff8011a1f8, 0x6, 0x3ff80171424, 0x0, 0x3ff80190250)
> [0x3ff800d420c]
> 2 abort(0x3ff807f2210, 0x20, 0x0, 0x0, 0x600000000) [0x3ff8019024c]
> 3 __exc_raise_status_exception(0x0, 0x0, 0x0, 0x0, 0x3ff800beeb0)
> [0x3ff807f220c]
> 4 exc_raise_status_exception(0x0, 0x0, 0x3ff800beeb0, 0x0,
> 0x3ff807f2f04) [0x3ff807f227c]
> 5 exc_dispatch_exception(0x11fffbf50, 0x7, 0x11fff9e80, 0x140000000,
> 0x20c000) [0x3ff807f2f00]
> 6 exc_raise_signal_exception(0x60ffe0003, 0x80, 0x0, 0x3ff805c87c8,
> 0x1) [0x3ff807f39e0]
> 7 (unknown)() [0x3ff805b7bf0]
> 8 __nxm_thread_kill(0x10, 0x1, 0x0, 0x0, 0x3ff800d7ab4)
> [0x3ff805c87c8]
> 9 pthread_kill(0x0, 0x0, 0x0, 0x1, 0x3ff00000000) [0x3ff805b6034]
> 10 (unknown)() [0x3ff805be7cc]
> 11 __tis_raise(0x3ff00000000, 0x50ffe0000, 0x3ff8011a1f8, 0x6,
> 0x3ff80171424) [0x3ff8011a1f4]
> 12 raise(0x3ff8011a1f8, 0x6, 0x3ff80171424, 0x0, 0x3ff801901d0)
> [0x3ff80171420]
> 13 abort(0x3ff807f2210, 0x3ff800beeb0, 0x3ff805b7940, 0x0,
> 0x600000000) [0x3ff801901cc]
> 14 __exc_raise_status_exception(0x0, 0x0, 0x0, 0x0, 0x3ff800beeb0)
> [0x3ff807f220c]
> 15 exc_raise_status_exception(0x0, 0x0, 0x3ff800beeb0, 0x0,
> 0x3ff807f2f04) [0x3ff807f227c]
> 16 exc_dispatch_exception(0x11fffbf50, 0x11fffb088, 0x11fffab00, 0x0,
> 0x3ff807f23ac) [0x3ff807f2f00]
> 17 exc_raise_exception(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff807f2400]
> 18 __exc_raise_status_exception(0x0, 0x3ff807f2244, 0x0, 0x0, 0x0)
> [0x3ff807f2244]
> 19 exc_raise_status_exception(0x0, 0x0, 0x0, 0x11fffb6d9,
> 0x3ff807f2f04) [0x3ff807f227c]
> 20 exc_dispatch_exception(0x11fffbf50, 0x3ffc0004300, 0x11fffb640,
> 0x174400003b95, 0x3ff80010fd0) [0x3ff807f2f00]
> 21 exc_raise_signal_exception(0xb0ffe0003, 0x80, 0x0, 0x3ff81f1ab68,
> 0x1) [0x3ff807f39e0]
> 22 (unknown)() [0x3ff805b7bf0]
> 23 Lock__13InternalMutexXv() [0x3ff81f1ab64]
> 24 lock__5MutexXv() [0x3ff81f2a0f0]
> 25 __ct__13Iostream_initXv() [0x3ff81f28c38]
> 26 __init_sti__cxxl_init_cxx_2e91e52e() [0x3ff81f160a8]




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

* Re: C++ Exception runtime problem
  2002-09-23 22:10 ` Kenneth Block
@ 2002-09-24  8:01   ` Major
  0 siblings, 0 replies; 3+ messages in thread
From: Major @ 2002-09-24  8:01 UTC (permalink / raw)


Yes I have pthreads mutex wrapper class 'Mutex'. To test, I just
renamed it to Mutex1 and my application now runs properly.

  Thanks for your insight.

"Kenneth Block" <krblock@computer.org> wrote in message news:<bjMj9.45$CG2.1030168@news.cpqcorp.net>...
> By any chance, do you have a class called Mutex? If so, it could be
> interfering with the class of the same name that exists in libcxx.so.


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

end of thread, other threads:[~2002-09-24  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-23 21:39 C++ Exception runtime problem Major
2002-09-23 22:10 ` Kenneth Block
2002-09-24  8:01   ` Major

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox