Debugging SocketServer.ThreadingTCPServer

Discussion in 'Python' started by Stuart D. Gathman, Jan 16, 2007.

  1. I have a ThreadingTCPServer application (pygossip, part of
    http://sourceforge.net/projects/pymilter). It mostly runs well, but
    occasionally goes into a loop. How can I get a stack trace of running
    threads to figure out where the loop is? Is there some equivalent of
    sending SIGQUIT to Java to get a thread dump? If needed, I can import pdb
    and set options at startup, but there needs to be some external way of
    triggering the dump since I can't reproduce it at will.

    --
    Stuart D. Gathman <>
    Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
    "Confutatis maledictis, flamis acribus addictis" - background song for
    a Microsoft sponsored "Where do you want to go from here?" commercial.
     
    Stuart D. Gathman, Jan 16, 2007
    #1
    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. UrgeOverkill
    Replies:
    2
    Views:
    481
    Peter Hansen
    Feb 19, 2004
  2. Dustin
    Replies:
    2
    Views:
    1,082
    G. S. Hayes
    Aug 9, 2004
  3. Jean-Paul Calderone

    Re: Debugging SocketServer.ThreadingTCPServer

    Jean-Paul Calderone, Jan 16, 2007, in forum: Python
    Replies:
    2
    Views:
    404
    R. Bernstein
    Feb 4, 2007
  4. Brad Brock
    Replies:
    0
    Views:
    355
    Brad Brock
    May 19, 2007
  5. Okko Willeboordse
    Replies:
    0
    Views:
    448
    Okko Willeboordse
    Nov 9, 2008
Loading...

Share This Page