Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a9160d1d35f51229bb6a634fba4c58541387a11
Ticket: 82521bfb6734f891ddecc26b4b4b3388fdc3eb1c
Segfault from commit af06c0fbf8 onwards
User & Date: anonymous on 2014-09-26 19:21:06
Changes

  1. icomment:
    Built commit [af06c0fbf8] with -DPURIFY and ran it under valgrind, the only thing it complains about was the same read that was causing the segfault in the core dumps I looked at:
    
    ==19808== Thread 8:
    ==19808== Invalid read of size 4
    ==19808==    at 0x5C034D1: TEBCresume (tclExecute.c:3415)
    ==19808==    by 0x5B2B8AE: TclNRRunCallbacks (tclBasic.c:4392)
    ==19808==    by 0x5B2B036: Tcl_EvalObjv (tclBasic.c:4123)
    ==19808==    by 0x5B2D7B0: TclEvalEx (tclBasic.c:5261)
    ==19808==    by 0x5B2CB64: Tcl_EvalEx (tclBasic.c:4926)
    ==19808==    by 0x4E84D8A: Ns_TclEvalCallback (tclcallbacks.c:169)
    ==19808==    by 0x4E92DDA: NsTclRequestProc (tclrequest.c:435)
    ==19808==    by 0x4E75708: Ns_ConnRunRequest (op.c:291)
    ==19808==    by 0x4E788C3: NsConnThread (queue.c:1469)
    ==19808==    by 0x58DFDCB: NsThreadMain (thread.c:219)
    ==19808==    by 0x58E0328: ThreadMain (pthread.c:782)
    ==19808==    by 0x6124E99: start_thread (pthread_create.c:308)
    ==19808==  Address 0x600000002 is not stack'd, malloc'd or (recently) free'd
    ==19808== 
    [26/Sep/2014:12:02:31][19808.11a2f700][-conn:rl:0] Fatal: received fatal signal 11
    ==19808== 
    ==19808== HEAP SUMMARY:
    ==19808==     in use at exit: 129,354,243 bytes in 5,503 blocks
    ==19808==   total heap usage: 9,889 allocs, 4,386 frees, 223,181,036 bytes allocated
    ==19808== 
    ==19808== LEAK SUMMARY:
    ==19808==    definitely lost: 60 bytes in 1 blocks
    ==19808==    indirectly lost: 240 bytes in 10 blocks
    ==19808==      possibly lost: 127,203,735 bytes in 5,201 blocks
    ==19808==    still reachable: 2,150,208 bytes in 291 blocks
    ==19808==         suppressed: 0 bytes in 0 blocks
    ==19808== Rerun with --leak-check=full to see details of leaked memory
    ==19808== 
    ==19808== For counts of detected and suppressed errors, rerun with: -v
    ==19808== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
    
    
    For comparison, I did the same with the parent commit, which previously wasn't segfaulting (tried several runs, with three tests each).  Run under valgrind it now complains of the same invalid read.  I'll attempt the bisect again, but it will take some time - it is glacially slow under valgrind.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"