Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 84589a6879780d17b2323411f5ddf1f9698ab610
Ticket: 3002655fffffffffffffffffffffffffffffffff
Semi-repeatable SIGSEGV doing info level
User & Date: jaspertheperson on 2010-05-17 21:19:20
Changes

  1. icomment:
    OK, I am still using tclxml and Trf but apart from that all the c code is tcltk's. Here is what valgrind came up with:
    
    ==5303== Memcheck, a memory error detector
    ==5303== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
    ==5303== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
    ==5303== Command: /home/jaspert/Build/tk/unix/wish /home/jaspert/Build/Simile/Run/simile.tcl
    ==5303== 
    ==5303== Conditional jump or move depends on uninitialised value(s)
    ==5303==    at 0x815F1C5: TclArgumentBCEnter (tclBasic.c:5636)
    ==5303==    by 0x81D4B91: TclExecuteByteCode (tclExecute.c:2809)
    ==5303==    by 0x815D3F6: NRCallTEBC (tclBasic.c:4389)
    ==5303==    by 0x815D137: TclNRRunCallbacks (tclBasic.c:4313)
    ==5303==    by 0x815F5C4: TclEvalObjEx (tclBasic.c:5926)
    ==5303==    by 0x815F54B: Tcl_EvalObjEx (tclBasic.c:5907)
    ==5303==    by 0x8074461: TkInvokeMenu (tkMenu.c:1112)
    ==5303==    by 0x8073D64: MenuWidgetObjCmd (tkMenu.c:924)
    ==5303==    by 0x815D373: NRRunObjProc (tclBasic.c:4366)
    ==5303==    by 0x815D137: TclNRRunCallbacks (tclBasic.c:4313)
    ==5303==    by 0x81D4C1A: TclExecuteByteCode (tclExecute.c:2816)
    ==5303==    by 0x815D3F6: NRCallTEBC (tclBasic.c:4389)
    ==5303== 
    ==5303== Invalid read of size 4
    ==5303==    at 0x815D1F9: NRCommand (tclBasic.c:4332)
    ==5303==    by 0x6F8CD13: ???
    ==5303==  Address 0x58 is not stack'd, malloc'd or (recently) free'd
    ==5303== 
    ==5303== 
    ==5303== Process terminating with default action of signal 11 (SIGSEGV)
    ==5303==  Access not within mapped region at address 0x58
    ==5303==    at 0x815D1F9: NRCommand (tclBasic.c:4332)
    ==5303==    by 0x6F8CD13: ???
    ==5303==  If you believe this happened as a result of a stack
    ==5303==  overflow in your program's main thread (unlikely but
    ==5303==  possible), you can try to increase the size of the
    ==5303==  main thread stack using the --main-stacksize= flag.
    ==5303==  The main thread stack size used in this run was 8388608.
    ==5303== 
    ==5303== HEAP SUMMARY:
    ==5303==     in use at exit: 15,182,487 bytes in 6,827 blocks
    ==5303==   total heap usage: 52,073 allocs, 45,246 frees, 36,840,762 bytes allocated
    ==5303== 
    ==5303== LEAK SUMMARY:
    ==5303==    definitely lost: 5,256 bytes in 21 blocks
    ==5303==    indirectly lost: 29,888 bytes in 1,388 blocks
    ==5303==      possibly lost: 14,562,456 bytes in 3,138 blocks
    ==5303==    still reachable: 584,887 bytes in 2,280 blocks
    ==5303==         suppressed: 0 bytes in 0 blocks
    ==5303== Rerun with --leak-check=full to see details of leaked memory
    ==5303== 
    ==5303== For counts of detected and suppressed errors, rerun with: -v
    ==5303== Use --track-origins=yes to see where uninitialised values come from
    ==5303== ERROR SUMMARY: 63 errors from 2 contexts (suppressed: 75 from 13)
    Killed
    
    
    
  2. login: "jaspertheperson"
  3. mimetype: "text/plain"
  4. username: "jaspertheperson"