one thread hanging in RWTPtrSlist<POSIXThread>::append

Discussion in 'C++' started by oshinonline@yahoo.com, Apr 12, 2006.

  1. Guest

    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.
    , Apr 12, 2006
    #1
    1. Advertising

  2. Ian Collins Guest

    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_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.

    --
    Ian Collins.
    Ian Collins, Apr 12, 2006
    #2
    1. Advertising

  3. Guest

    Re: one thread hanging in RWTPtrSlist<POSIXThread>::append

    could u suggest me some hint, where can the problem be?
    , Apr 12, 2006
    #3
  4. Ian Collins Guest

    Re: one thread hanging in RWTPtrSlist<POSIXThread>::append

    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.
    Ian Collins, Apr 12, 2006
    #4
  5. Paul Dubuc Guest

    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_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.
    Paul Dubuc, Apr 12, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Russell E. Owen

    urllib hanging in thread

    Russell E. Owen, May 4, 2004, in forum: Python
    Replies:
    2
    Views:
    621
    Russell E. Owen
    May 19, 2004
  2. Replies:
    3
    Views:
    1,480
  3. Neha
    Replies:
    2
    Views:
    297
    Martin Ambuhl
    Jun 12, 2006
  4. Neha
    Replies:
    2
    Views:
    395
    Roland Pibinger
    Jun 13, 2006
  5. HYRY
    Replies:
    10
    Views:
    582
    Bruno Desthuilliers
    Sep 26, 2007
Loading...

Share This Page