#64 segfault on stopping

capture (20)

After recording a rather big portion of the screen xvidcap crashes on stopping the recording.


  • Karl H. Beckers

    Karl H. Beckers - 2007-02-10

    Logged In: YES
    Originator: YES

    should be fixed in SVN.
    The reason being a race condition where I was signalling the audio recording thread to stop and setting the thread ID to 0 in the signal handler, then doing pthread_join outside the audio capture thread on the thread id (which was 0 if the audio thread was cleaning up faster than the parent thread). The fix is easy: Remove the redundant assignment of 0 to the thread id from the cleanup thread.

    khb@hosaka:~/Quellen/xvidcap/trunk$ svn diff src/xtoffmpeg.c
    Index: src/xtoffmpeg.c
    --- src/xtoffmpeg.c (Revision 104)
    +++ src/xtoffmpeg.c (Arbeitskopie)
    @@ -622,7 +622,6 @@
    printf ("%s %s: Leaving\n", DEBUGFILE, DEBUGFUNCTION);
    #endif // DEBUG

    - tid = 0;
    pthread_exit (&retval);

    File Added: xtoffmpeg.c

  • Karl H. Beckers

    Karl H. Beckers - 2007-02-10
    • status: open --> pending-fixed
  • Karl H. Beckers

    Karl H. Beckers - 2007-02-10

    1.1.5rc1 xtoffmpeg.c with the above fix

  • SourceForge Robot

    Logged In: YES
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks