By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

one thread hanging in RWTPtrSlist<POSIXThread>::append

P: n/a
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_FP11POSIXThre ad+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+0x8 0 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x7 0 ()
#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.

Apr 12 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
os*********@yahoo.com wrote:
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_FP11POSIXThre ad+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+0x8 0 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x7 0 ()
#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.

--
Ian Collins.
Apr 12 '06 #2

P: n/a
could u suggest me some hint, where can the problem be?

Apr 12 '06 #3

P: n/a
os*********@yahoo.com wrote:
could u suggest me some hint, where can the problem be?

Well three hints, I'm not called u, read up on correct quoting
(<http://cfaj.freeshell.org/google/>) and search for a more appropriate
group, you problem appears very platform or tool specific.

Also post some code.

--
Ian Collins.
Apr 12 '06 #4

P: n/a
os*********@yahoo.com wrote:
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_FP11POSIXThre ad+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+0x8 0 ()
#9 0x2e6798 in startThread__15POSIXThreadCoreSFP11POSIXThread+0x7 0 ()
#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.

Apr 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.