I have trimmed my test program further and now dbx keeps telling me I have an
rua error in strerror_r. It's a simple C/C++ library call and I couldn't
figure out why it has an rua error. I temporarily commented out the strerror_r
call and I still get the hang as shown in the stack trace in my
I used dbx as suggested and I was getting (rua) and (rui) messages. I
corrected those and the program still hangs in the same place. This is the
stack trace from dbx:
(dbx) where
current thread: [EMAIL PROTECTED]
[1] __lwp_park(0x0, 0x0), at 0xb3da3df9
[2] mutex_lock_queue(0xd13b2a00, 0x0,
It appears that you have a heap corruption problem.
Run your app under the dbx run-time memory checker:
dbx app
check -all -frames 16
run
If that doesn't isolate your issue, you can try using the watchmalloc library
and/or the race-condition thread capability in analyzer. See the man pages for
OK, I have isolated exactly which pthread function is causing the core dump.
It is pthread_attr_destroy. When I changed the code to use default thread
attributes, the core dump went away but I now get a hang when I send output to
a stream after using a thread.
This message posted from open
The only pthread library functions that I am using are as follows:
- pthread_self
- pthread_attr_destroy
- pthread_attr_init
- pthread_attr_setstacksize
- pthread_create
- pthread_attr_destroy
- pthread_join
- pthread_mutexattr_init
- pthread_mutexattr_setpshared
- pthread_mutexattr_settype
- pthre
Leo Carreon wrote:
> Hi,
>
> I am using Solaris 10 u5 x86 and wrote a threaded test program using Sun
> Studio 12. When I run my test program I get the error message:
>
> libc thread failure: lfree() called with a misaligned pointer
>
> and the test program crashes. Would anyone know wha
Hi,
I am using Solaris 10 u5 x86 and wrote a threaded test program using Sun Studio
12. When I run my test program I get the error message:
libc thread failure: lfree() called with a misaligned pointer
and the test program crashes. Would anyone know what the above message means
or what