Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2019-04-03
14:36 • Ticket [2d34167e97] sporadic segfault in stack test-case (heisenbug) status ... artifact: 490a232525 user: sebres
2019-03-06
11:52 • New ticket [2d34167e97]. artifact: 25492cef9e user: sebres

sporadic segfault in stack test-case (heisenbug)

Open2d34167e97fecb82260e9beab4c975877b09b2d4Created 8 years agoUpdated 8 years ago
Descriptionwiki2019-03-06 11:52:31
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 travis:

==== 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
sebreswiki2019-04-03 14:36:30

Next one, same test and again clang (BTW, I think I don't saw it compiled with gcc, so possibly it'd be an UB compiled with clang C on some constellation).

Log in (anonymous is fine) to add a comment.