Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae9057143b5b078cec25b724fec3e5ee7831f782
Ticket: 2981154fffffffffffffffffffffffffffffffff
async.test segfault
User & Date: dgp on 2010-04-02 15:11:17
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Using the 8.5.8 sources (so I rule out more recent commits)
    and with a --enable-threads --enable-symbols build, I
    sometimes see a segfault at the end of async.test.
    
    I managed to catch it in gdb:
    
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x40646b90 (LWP 825)]
    0x0814bcfb in Tcl_MutexLock (mutexPtr=0x10)
        at /home/dgp/cvs/tcl8.5/unix/../unix/tclUnixThrd.c:519
    519         if (*mutexPtr == NULL) {
    
    
    (gdb) bt
    #0  0x0814bcfb in Tcl_MutexLock (mutexPtr=0x10)
        at /home/dgp/cvs/tcl8.5/unix/../unix/tclUnixThrd.c:519
    #1  0x08067c88 in Tcl_AsyncMark (async=0x8e0b274)
        at /home/dgp/cvs/tcl8.5/unix/../generic/tclAsync.c:167
    #2  0x08054baf in AsyncThreadProc (clientData=0x8e16c18)
        at /home/dgp/cvs/tcl8.5/unix/../generic/tclTest.c:936
    #3  0x080c1fbd in NewThreadProc (clientData=0xbbe12f0)
        at /home/dgp/cvs/tcl8.5/unix/../generic/tclEvent.c:1487
    #4  0x0088773b in start_thread () from /lib/libpthread.so.0
    #5  0x007dccfe in clone () from /lib/libc.so.6
    
    
    Don't know whether this is another symptom of 
    Tcl Bug 2869384.
    
    I believe that when the segfault happens, it is
    always after test async-4.3 has failed
    (Tcl Bug 1774689).  However, async-4.3
    can also fail without a segfault following.
    
    
    
  4. foundin changed to: "obsolete: 8.5.8"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "async.test segfault"
  12. type changed to: "Bug"