Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 962e552a39a195ed4d5a86950883421901a7d769
Ticket: 3536840fffffffffffffffffffffffffffffffff
Crash on exit on Fedora 17
User & Date: julien9330 on 2012-06-21 10:21:48
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Our TCL-based application crashes from times to times on exit. The crash seems to occurs in the TCL thread. Here is the backtrace:
    
    #0  0x00000000019de02e in Tcl_MutexUnlock (mutexPtr=0x0)
        at /home/julien/Certitude/main_line/thirdparty/tcl8.5.11/unix/../unix/tclUnixThrd.c:556
    #1  0x00000000019bfa06 in UnlockBucket (cachePtr=0x7feecc00ae10, bucket=5)
        at /home/julien/Certitude/main_line/thirdparty/tcl8.5.11/unix/../generic/tclThreadAlloc.c:814
    #2  0x00000000019bfb94 in PutBlocks (cachePtr=0x7feecc00ae10, bucket=5, numMove=5)
        at /home/julien/Certitude/main_line/thirdparty/tcl8.5.11/unix/../generic/tclThreadAlloc.c:863
    #3  0x00000000019bec18 in TclFreeAllocCache (arg=0x7feecc00ae10)
        at /home/julien/Certitude/main_line/thirdparty/tcl8.5.11/unix/../generic/tclThreadAlloc.c:240
    #4  0x00000000019de3bb in TclpFreeAllocCache (ptr=0x7feecc00ae10)
        at /home/julien/Certitude/main_line/thirdparty/tcl8.5.11/unix/../unix/tclUnixThrd.c:818
    #5  0x000000372cc07b12 in __nptl_deallocate_tsd () from /lib64/libpthread.so.0
    #6  0x000000372cc07d22 in start_thread () from /lib64/libpthread.so.0
    #7  0x000000372c8f199d in clone () from /lib64/libc.so.6
    
    This problems only occurs on Fedora 17. Our application runs for years on many other Linux distributions without problem.
    
    Changing the Tcl_MutexUnlock and Tcl_MutexLock function to check for null pointers seems to solve the issue, but this is probably not the right solution, and something is certainly wrong elsewhere.
    
    So is there a bug is the TCL thread handling ? Or is something wrong in our application ? Any idea ?
    
    We use TCL 8.5.11, and it is compiled as follow:
    ./configure --enable-threads --enable-gcc --disable-langinfo --disable-shared 
    
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "julien9330"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "Crash on exit on Fedora 17"
  12. type changed to: "Bug"