[Makefile:1256: tcltest] Segmentation fault (core dumped)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Makefile:1256: tcltest] Segmentation fault (core dumped)

Dennis Clarke


Still on Red Hat Enterprise Linux here and now using CFLAGS wherein
there is no "std" specified.

I feel as if I am going in circles here however the codebase seems to
compile fine however the testsuite blows up in marvelous ways :

.
.
.
Time: walshared.test 26 ms
# WARNING: This next test takes around 12 seconds
gmake: *** [Makefile:1256: tcltest] Segmentation fault (core dumped)
real 368.93
user 327.66
sys 27.30
boe13$ find . -type f | grep -i 'core'
./testdir/core.8032
boe13$ file ./testdir/core.8032
./testdir/core.8032: ELF 64-bit LSB core file x86-64, version 1 (SYSV),
SVR4-style, from './testfixture
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.00', real
uid: 16411, effective uid: 16411, real gid: 20002, effective gid: 20002,
execfn: './testfixture', platform: 'x86_64'
boe13$
boe13$ find . -type f -name testfixture -ls
342992 5300 -rwxr-xr-x   1 dclarke  devl      5426184 Nov 20 04:35
./testfixture
boe13$
boe13$ gdb ./testfixture ./testdir/core.8032
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/testfixture...done.
[New LWP 8032]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./testfixture
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.00'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000043c71b in tvfsFileControl (pFile=0x1509af0, op=20,
pArg=0x7ffde61bc9f8)
     at
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/test_vfs.c:549
549       if( p->pScript && (p->mask&TESTVFS_FCNTL_MASK) ){
Missing separate debuginfos, use: debuginfo-install
glibc-2.17-196.el7.x86_64 libgcc-4.8.5-16.el7.x86_64
(gdb) where
#0  0x000000000043c71b in tvfsFileControl (pFile=0x1509af0, op=20,
pArg=0x7ffde61bc9f8)
     at
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/test_vfs.c:549
#1  0x000000000046c4e9 in sqlite3OsFileControl (id=0x1509af0, op=20,
pArg=0x7ffde61bc9f8) at sqlite3.c:22475
#2  0x000000000048a47e in databaseIsUnmoved (pPager=0x1509970) at
sqlite3.c:54928
#3  0x000000000048a59c in sqlite3PagerClose (pPager=0x1509970,
db=0x14fbb70) at sqlite3.c:54969
#4  0x000000000049bf12 in sqlite3BtreeClose (p=0x159ea10) at sqlite3.c:66134
#5  0x000000000054ebac in sqlite3LeaveMutexAndCloseZombie (db=0x14fbb70)
at sqlite3.c:157429
#6  0x000000000054eacc in sqlite3Close (db=0x14fbb70, forceZombie=0) at
sqlite3.c:157372
#7  0x000000000054eaf0 in sqlite3_close (db=0x14fbb70) at sqlite3.c:157385
#8  0x00000000004611cf in DbDeleteCmd (db=0x15bbab8)
     at
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:528
#9  0x00007f9d19e18330 in Tcl_DeleteCommandFromToken (interp=0x1921c38,
cmd=0x1350f48)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:3184
#10 0x00007f9d19e18179 in Tcl_DeleteCommand (interp=0x1921c38,
cmdName=0x13acd98 "db")
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:3045
#11 0x0000000000464d45 in DbObjCmd (cd=0x15bbab8, interp=0x1921c38,
objc=2, objv=0x14ded88)
     at
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:2219
#12 0x00007f9d19e19e2a in Dispatch (data=0x107d5e0, interp=0x1921c38,
result=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
#13 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0x1921c38, result=0,
rootPtr=0x0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
#14 0x00007f9d19e1c815 in TclEvalObjEx (interp=0x1921c38,
objPtr=0x6161616161616161, flags=0, invoker=0xe87178, word=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6018
#15 0x00007f9d19f24152 in SlaveEval (interp=0xe832f8,
slaveInterp=0x1921c38, objc=1, objv=0xe871f0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclInterp.c:2826
#16 0x00007f9d19f20bac in NRInterpCmd (clientData=0x0, interp=0xe832f8,
objc=4, objv=0xe871d8)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclInterp.c:885
#17 0x00007f9d19e19e2a in Dispatch (data=0x17f8bb0, interp=0xe832f8,
result=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
#18 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0xe832f8, result=0,
rootPtr=0x186aa38)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
#19 0x00007f9d19e1c815 in TclEvalObjEx (interp=0xe832f8,
objPtr=0x6161616161616161, flags=0, invoker=0x0, word=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6018
#20 0x00007f9d19e1c7ae in Tcl_EvalObjEx (interp=0xe832f8,
objPtr=0x6161616161616161, flags=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:5999
#21 0x00007f9d19e40160 in Tcl_TimeObjCmd (dummy=0x0, interp=0xe832f8,
objc=2, objv=0xe87000)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclCmdMZ.c:4123
#22 0x00007f9d19e19e2a in Dispatch (data=0x144c260, interp=0xe832f8,
result=0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
#23 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0xe832f8, result=0,
rootPtr=0x0)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
#24 0x00007f9d19e19708 in Tcl_EvalObjv (interp=0xe832f8, objc=5,
objv=0xe86880, flags=2097168)
---Type <return> to continue, or q <return> to quit---
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4181
#25 0x00007f9d19e1bbf6 in TclEvalEx (interp=0xe832f8,
     script=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource $argv0\n}
else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"} {\nputs
-nonewline \"> \"\n} else {\nputs -nonewl"...,
     numBytes=430, flags=0, line=1, clNextOuter=0x0,
     outerScript=0x566360 <zMainloop.11226> "if {[llength $argv]>=1}
{\nset argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource
$argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"}
{\nputs -nonewline \"> \"\n} else {\nputs -nonewl"...)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:5320
#26 0x00007f9d19e1afc4 in Tcl_EvalEx (interp=0xe832f8,
     script=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource $argv0\n}
else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"} {\nputs
-nonewline \"> \"\n} else {\nputs -nonewl"...,
     numBytes=-1, flags=0) at
/opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4985
#27 0x00007f9d19e1dc68 in Tcl_GlobalEval (interp=0xe832f8,
     command=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource $argv0\n}
else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"} {\nputs
-nonewline \"> \"\n} else {\nputs -nonewl"...)
     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6983
#28 0x0000000000468e38 in main (argc=4, argv=0x7ffde61bd908)
     at
/opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:4008
(gdb) quit
boe13$

so that is a nightmare given that the tcl build was flawless and clean
and passes all its tests.

Suggestions welcome.




--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: [Makefile:1256: tcltest] Segmentation fault (core dumped)

Dan Kennedy-4

On 20/11/62 11:47, Dennis Clarke wrote:
>
>
> Still on Red Hat Enterprise Linux here and now using CFLAGS wherein
> there is no "std" specified.


The crash below is in test code - it is almost certainly a problem with
the test scripts. If you can you send me the "test-out.txt" created by
the [make tcltest] command, we should be able to figure out what is
going on.

Thanks,

Dan.



>
> I feel as if I am going in circles here however the codebase seems to
> compile fine however the testsuite blows up in marvelous ways :
>
> .
> .
> .
> Time: walshared.test 26 ms
> # WARNING: This next test takes around 12 seconds
> gmake: *** [Makefile:1256: tcltest] Segmentation fault (core dumped)
> real 368.93
> user 327.66
> sys 27.30
> boe13$ find . -type f | grep -i 'core'
> ./testdir/core.8032
> boe13$ file ./testdir/core.8032
> ./testdir/core.8032: ELF 64-bit LSB core file x86-64, version 1
> (SYSV), SVR4-style, from './testfixture
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.00',
> real uid: 16411, effective uid: 16411, real gid: 20002, effective gid:
> 20002, execfn: './testfixture', platform: 'x86_64'
> boe13$
> boe13$ find . -type f -name testfixture -ls
> 342992 5300 -rwxr-xr-x   1 dclarke  devl      5426184 Nov 20 04:35
> ./testfixture
> boe13$
> boe13$ gdb ./testfixture ./testdir/core.8032
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/testfixture...done.
> [New LWP 8032]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `./testfixture
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.00'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x000000000043c71b in tvfsFileControl (pFile=0x1509af0, op=20,
> pArg=0x7ffde61bc9f8)
>     at
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/test_vfs.c:549
> 549       if( p->pScript && (p->mask&TESTVFS_FCNTL_MASK) ){
> Missing separate debuginfos, use: debuginfo-install
> glibc-2.17-196.el7.x86_64 libgcc-4.8.5-16.el7.x86_64
> (gdb) where
> #0  0x000000000043c71b in tvfsFileControl (pFile=0x1509af0, op=20,
> pArg=0x7ffde61bc9f8)
>     at
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/test_vfs.c:549
> #1  0x000000000046c4e9 in sqlite3OsFileControl (id=0x1509af0, op=20,
> pArg=0x7ffde61bc9f8) at sqlite3.c:22475
> #2  0x000000000048a47e in databaseIsUnmoved (pPager=0x1509970) at
> sqlite3.c:54928
> #3  0x000000000048a59c in sqlite3PagerClose (pPager=0x1509970,
> db=0x14fbb70) at sqlite3.c:54969
> #4  0x000000000049bf12 in sqlite3BtreeClose (p=0x159ea10) at
> sqlite3.c:66134
> #5  0x000000000054ebac in sqlite3LeaveMutexAndCloseZombie
> (db=0x14fbb70) at sqlite3.c:157429
> #6  0x000000000054eacc in sqlite3Close (db=0x14fbb70, forceZombie=0)
> at sqlite3.c:157372
> #7  0x000000000054eaf0 in sqlite3_close (db=0x14fbb70) at
> sqlite3.c:157385
> #8  0x00000000004611cf in DbDeleteCmd (db=0x15bbab8)
>     at
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:528
> #9  0x00007f9d19e18330 in Tcl_DeleteCommandFromToken
> (interp=0x1921c38, cmd=0x1350f48)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:3184
> #10 0x00007f9d19e18179 in Tcl_DeleteCommand (interp=0x1921c38,
> cmdName=0x13acd98 "db")
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:3045
> #11 0x0000000000464d45 in DbObjCmd (cd=0x15bbab8, interp=0x1921c38,
> objc=2, objv=0x14ded88)
>     at
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:2219
> #12 0x00007f9d19e19e2a in Dispatch (data=0x107d5e0, interp=0x1921c38,
> result=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
> #13 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0x1921c38,
> result=0, rootPtr=0x0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
> #14 0x00007f9d19e1c815 in TclEvalObjEx (interp=0x1921c38,
> objPtr=0x6161616161616161, flags=0, invoker=0xe87178, word=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6018
> #15 0x00007f9d19f24152 in SlaveEval (interp=0xe832f8,
> slaveInterp=0x1921c38, objc=1, objv=0xe871f0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclInterp.c:2826
> #16 0x00007f9d19f20bac in NRInterpCmd (clientData=0x0,
> interp=0xe832f8, objc=4, objv=0xe871d8)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclInterp.c:885
> #17 0x00007f9d19e19e2a in Dispatch (data=0x17f8bb0, interp=0xe832f8,
> result=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
> #18 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0xe832f8,
> result=0, rootPtr=0x186aa38)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
> #19 0x00007f9d19e1c815 in TclEvalObjEx (interp=0xe832f8,
> objPtr=0x6161616161616161, flags=0, invoker=0x0, word=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6018
> #20 0x00007f9d19e1c7ae in Tcl_EvalObjEx (interp=0xe832f8,
> objPtr=0x6161616161616161, flags=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:5999
> #21 0x00007f9d19e40160 in Tcl_TimeObjCmd (dummy=0x0, interp=0xe832f8,
> objc=2, objv=0xe87000)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclCmdMZ.c:4123
> #22 0x00007f9d19e19e2a in Dispatch (data=0x144c260, interp=0xe832f8,
> result=0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4418
> #23 0x00007f9d19e19eb7 in TclNRRunCallbacks (interp=0xe832f8,
> result=0, rootPtr=0x0)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4451
> #24 0x00007f9d19e19708 in Tcl_EvalObjv (interp=0xe832f8, objc=5,
> objv=0xe86880, flags=2097168)
> ---Type <return> to continue, or q <return> to quit---
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4181
> #25 0x00007f9d19e1bbf6 in TclEvalEx (interp=0xe832f8,
>     script=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
> argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource
> $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif
> {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewl"...,
>     numBytes=430, flags=0, line=1, clNextOuter=0x0,
>     outerScript=0x566360 <zMainloop.11226> "if {[llength $argv]>=1}
> {\nset argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource
> $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif
> {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewl"...)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:5320
> #26 0x00007f9d19e1afc4 in Tcl_EvalEx (interp=0xe832f8,
>     script=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
> argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource
> $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif
> {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewl"...,
>     numBytes=-1, flags=0) at
> /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:4985
> #27 0x00007f9d19e1dc68 in Tcl_GlobalEval (interp=0xe832f8,
>     command=0x566360 <zMainloop.11226> "if {[llength $argv]>=1} {\nset
> argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource
> $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif
> {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewl"...)
>     at /opt/bw/build/nist/tcl8.7a1/generic/tclBasic.c:6983
> #28 0x0000000000468e38 in main (argc=4, argv=0x7ffde61bd908)
>     at
> /opt/bw/build/sqlite-src-3300100_rhel_74_3.10.0-693.el7.x86_64.006/src/tclsqlite.c:4008
> (gdb) quit
> boe13$
>
> so that is a nightmare given that the tcl build was flawless and clean
> and passes all its tests.
>
> Suggestions welcome.
>
>
>
>
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users