Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 25492cef9e82de92d4f94156508386d3444acf225e2d469d8bdf225cfa415e26
Ticket: 2d34167e97fecb82260e9beab4c975877b09b2d4
sporadic segfault in stack test-case (heisenbug)
User & Date: sebres on 2019-03-06 11:52:31
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Just for the record. 
    
    It looks really as a heisenbug (not reproducible at all). But I saw it also at some point on my systems (8.5/8.6).
    
    Here the last time in [https://travis-ci.org/tcltk/tcl/jobs/502442934#L681|travis]:
    <code><pre style="padding-left:10pt">
    ==== stack-3.1 enough room for regexp near recursion limit FAILED
    ==== Contents of test case:
        # do this in a sub process in case it segfaults
        exec [interpreter] << {
    	interp recursionlimit {} 10000
    	set depth 0
    	proc a { max } {
    	    if { [info level] < $max } {
    		set ::depth [info level]
    		a $max
    	    } else {
    		regexp {^ ?} x
    	    }
    	}
    	catch { a 10001 }
    	set depth2 $depth
    	puts [list [a $depth] [expr { $depth2 - $depth }]]
        }
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: child killed: segmentation violation
        while executing
    "exec [interpreter] << {
    	interp recursionlimit {} 10000
    	set depth 0
    	proc a { max } {
    	    if { [info level] < $max } {
    		set ::depth [info level]
    		..."
        ("uplevel" body line 3)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: CHILDKILLED 7162 SIGSEGV {segmentation violation}
    ==== stack-3.1 FAILED
    </pre></code>
    
  5. foundin changed to: ">= 8.5"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "sebres"
  13. subsystem changed to: "45. Parsing and Eval"
  14. title changed to: "sporadic segfault in stack test-case (heisenbug)"
  15. type changed to: "Bug"