Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Segmentation fault on sqlite tests

Closed / Out of Datef9a45e58af22e444346e54b991dcd596a3a20883Created 7 years agoUpdated 7 years ago
Descriptionplain2019-08-20 16:36:45
SQLite 3.29.0 test in 64-bit on OpenIndiana 2019.04 crash with segfault in Tcl code:

$ mdb build/amd64/testdir/core 
Loading modules: [ libc.so.1 ld.so.1 ]
> ::status
debugging core file of testfixture (64-bit) from build-userland
initial argv: ./testfixture /export/home/newman/ws/oi-userland/components/database/sqlite/sql
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=c
> $C
fffffd7fffdff310 libtcl8.6.so`TEBCresume+0x76c5()
fffffd7fffdff340 libtcl8.6.so`TclNRRunCallbacks+0x47()
fffffd7fffdff380 libtcl8.6.so`SlaveEval+0xd4()
fffffd7fffdff470 libtcl8.6.so`NRInterpCmd+0x477()
fffffd7fffdff4a0 libtcl8.6.so`TclNRRunCallbacks+0x47()
fffffd7fffdff520 libtcl8.6.so`Tcl_TimeObjCmd+0x6d()
fffffd7fffdff550 libtcl8.6.so`TclNRRunCallbacks+0x47()
fffffd7fffdff680 libtcl8.6.so`TclEvalEx+0x10c4()
fffffd7fffdff6a0 libtcl8.6.so`Tcl_EvalEx+0x17()
fffffd7fffdff6c0 libtcl8.6.so`Tcl_Eval+0x16()
fffffd7fffdff6e0 libtcl8.6.so`Tcl_GlobalEval+0x24()
fffffd7fffdff730 main+0x120()
fffffd7fffdff760 _start_crt+0x83()
fffffd7fffdff770 _start+0x18()

I build Tcl 8.6.9 with a fix from https://core.tcl-lang.org/tcl/info/e364d7f9ffcd2827.
sebreswiki2019-08-20 17:47:06

Just to be sure: do you mean tclsqlite-module and if yes, was sqlite module compiled for this tcl-version (so for 8.6, not for 8.7 or 9.0)?
I'm asking because of possible binary-compat issues.

> I build Tcl 8.6.9 with a fix from [e364d7f9ffcd2827]

As you can see issue [cc1e91552c] got continuation, so you should rather apply it up-to [1671ba2d5c] or even later.
Better try to reproduce it with current core-8-6-branch (will be 8.6.10).

sebres Ticket [f9a45e58af]: 3 changes [History diff]2019-08-20 18:54:15
jan.nijtmansplain2019-08-22 11:18:28
Well, "testfixture" is SQLite's  own test executable. Also "Tcl_GlobalEval" is the high-level function which runs a script. Without knowning exactly what script was run causing the trouble, it's impossible to investigate this further. The Tcl_TimeObjCmd() on stack suggests that "time" was the command
which crashed, but ... which command line arguments ???

Because OpenIndiana is a fork of OpenSolaris, I don't think Tcl's configure script takes that into account, it might be that Tcl is simply built wrong. Does the Tcl test-suite actually run? Does the "time" command work at all in this build?
sebresplain2020-04-02 18:43:09
closed for no activity
Log in (anonymous is fine) to add a comment.