force coredump from child created by subprocess

Discussion in 'Python' started by David Sveningsson, Oct 5, 2010.

  1. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi, I am running a process using subprocess and detect if the process
    crashes using .returncode. I would like to force coredumps being created
    regardless of the system settings, eg run "ulimit -c unlimited" in the
    childprocess.

    I've had no luck using preexec_fn and os.system, it just made no
    difference. I could probably add a thin wrapper script but I'm not very
    fond of that idea.

    Is there some easy way to force the childprocess to create a coredump if
    it crashes?
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.16 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iEYEARECAAYFAkyrFvEACgkQ6pa1H/H5pqVwDwCfRKDV+zCrnZUZSVN8eEYsMkFU
    /UQAoNpjlM2l5jKViiqzSbRX6wZPDy6H
    =7GDQ
    -----END PGP SIGNATURE-----
     
    David Sveningsson, Oct 5, 2010
    #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. Ali

    Re: coredump on true64

    Ali, Jun 26, 2003, in forum: C++
    Replies:
    1
    Views:
    1,835
  2. Jeff Rodriguez
    Replies:
    23
    Views:
    1,134
    David Schwartz
    Dec 9, 2003
  3. bryan
    Replies:
    7
    Views:
    398
    Eric Sosman
    May 10, 2004
  4. Rafal 'Raf256' Maj

    Coredump/backtrace

    Rafal 'Raf256' Maj, Apr 11, 2005, in forum: C Programming
    Replies:
    2
    Views:
    605
    Thomas Maier-Komor
    Apr 12, 2005
  5. tomy

    A quit strange coredump

    tomy, Jun 11, 2006, in forum: C Programming
    Replies:
    13
    Views:
    484
    Keith Thompson
    Jun 12, 2006
Loading...

Share This Page