one thread hanging in RWTPtrSlist<POSIXThread>::append

O

oshinonline

Hi,

In my application I have RWTPtrSlist<POSIXThread>, where POSIXThread is
my wrapper class. Whenever I create a new thread I call append on the
list. But it hangs after I created 11/12 threads.
Here is stack Trace:
Thread 5 (system thread 3513041):
#0 0x1342f0 in shi_allocSmall2+0xa4 ()
#1 0x133c58 in MemAllocPtr+0xb8 ()
#2 0x1391fc in shi_New+0x80 ()
#3 0x138f00 in operator new+0x30 ()
#4 0x2e5df4 in
append__11RWTPtrSlistXT11POSIXThread_FP11POSIXThread+0x1c ()
#5 0x2e5d7c in POSIXThreadCore::coreAddThread+0x178 ()
#6 0x2e7eb0 in addThread__10ThreadCoreSFPFPvT1_PvPFPvT1_vPvT3PUi+0x74
()
#7 0x1bb2c8 in CAPIServer::main+0x1bc ()
#8 0x2e8d64 in executeMain__12ActiveObjectSFP12ActiveObjectPv+0x80 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x70 ()
#10 0xc004b2e4 in __pthread_body+0x44 () from /lib/libpthread.1
#11 0xc0055574 in __pthread_start+0x14 () from /lib/libpthread.1
warning: reading `r3' register: No data

Kindly help

Regards
Mamta.
 
I

Ian Collins

Hi,

In my application I have RWTPtrSlist<POSIXThread>, where POSIXThread is
my wrapper class. Whenever I create a new thread I call append on the
list. But it hangs after I created 11/12 threads.
Here is stack Trace:
Thread 5 (system thread 3513041):
#0 0x1342f0 in shi_allocSmall2+0xa4 ()
#1 0x133c58 in MemAllocPtr+0xb8 ()
#2 0x1391fc in shi_New+0x80 ()
#3 0x138f00 in operator new+0x30 ()
#4 0x2e5df4 in
append__11RWTPtrSlistXT11POSIXThread_FP11POSIXThread+0x1c ()
#5 0x2e5d7c in POSIXThreadCore::coreAddThread+0x178 ()
#6 0x2e7eb0 in addThread__10ThreadCoreSFPFPvT1_PvPFPvT1_vPvT3PUi+0x74
()
#7 0x1bb2c8 in CAPIServer::main+0x1bc ()
#8 0x2e8d64 in executeMain__12ActiveObjectSFP12ActiveObjectPv+0x80 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x70 ()
#10 0xc004b2e4 in __pthread_body+0x44 () from /lib/libpthread.1
#11 0xc0055574 in __pthread_start+0x14 () from /lib/libpthread.1
warning: reading `r3' register: No data

Kindly help
You'll do better on a group dedicated to your platform.
 
P

Paul Dubuc

Hi,

In my application I have RWTPtrSlist<POSIXThread>, where POSIXThread is
my wrapper class. Whenever I create a new thread I call append on the
list. But it hangs after I created 11/12 threads.
Here is stack Trace:
Thread 5 (system thread 3513041):
#0 0x1342f0 in shi_allocSmall2+0xa4 ()
#1 0x133c58 in MemAllocPtr+0xb8 ()
#2 0x1391fc in shi_New+0x80 ()
#3 0x138f00 in operator new+0x30 ()
#4 0x2e5df4 in
append__11RWTPtrSlistXT11POSIXThread_FP11POSIXThread+0x1c ()
#5 0x2e5d7c in POSIXThreadCore::coreAddThread+0x178 ()
#6 0x2e7eb0 in addThread__10ThreadCoreSFPFPvT1_PvPFPvT1_vPvT3PUi+0x74
()
#7 0x1bb2c8 in CAPIServer::main+0x1bc ()
#8 0x2e8d64 in executeMain__12ActiveObjectSFP12ActiveObjectPv+0x80 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x70 ()
#10 0xc004b2e4 in __pthread_body+0x44 () from /lib/libpthread.1
#11 0xc0055574 in __pthread_start+0x14 () from /lib/libpthread.1
warning: reading `r3' register: No data

Kindly help

Regards
Mamta.

If your list is not protected by a mutex, you are going to run into trouble.
Make sure only one thread at a time can append to the list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top