pkg_mkIndex causes seg fault
Closed / Invalid218122ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:24
OriginalBugID: 1955 Bug
Version: 8.0.5
SubmitDate: '1999-04-28'
LastModified: '1999-04-29'
Severity: SER
Status: Closed
Submitter: pat
ChangedBy: pat
OS: SunOS
OSVersion: Solaris 2.6
Machine: Sparc
FixedDate: '2000-10-25'
ClosedDate: '1999-04-29'
Name:
Ted Dunning
Extensions:
None
CustomShell:
None
ReproducibleScript:
If you have the following line in the Init function for a shared
library, TCL
will seg fault when doing pkg_mkIndex even though a load on the same
library
succeeds and even though 8.0.2 could handle this just fine.
Tcl_Eval(interp, "namespace eval tvp {namespace export dot axpy mtm
max getv putv random_vector initialize}");
ObservedBehavior:
bash-2.02$ gdb /usr/local/bin/tclsh
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.6"...
(gdb) run
Starting program: /usr/local/bin/tclsh
% pkg_mkIndex . tvp.so
Program received signal SIGBUS, Bus error.
0xef4b580c in TclExecuteByteCode ()
(gdb) where
#0 0xef4b580c in TclExecuteByteCode ()
#1 0xef495fc8 in Tcl_EvalObj ()
#2 0xef495d84 in Tcl_Eval ()
#3 0xef646d24 in Tvp_Init (interp=0xd6580) at tvp.c:1162
#4 0x816f8 in Tcl_LoadCmd (dummy=0x0, interp=0xd6580, argc=2,
argv=0xefffdef8)
at ./../generic/tclLoad.c:361
#5 0x29cd4 in TclInvokeStringCommand (clientData=0xd5ad8,
interp=0xd6580,
objc=2, objv=0xc4520) at ./../generic/tclBasic.c:1743
#6 0x59adc in TclExecuteByteCode (interp=0xd6580, codePtr=0xf0700)
at ./../generic/tclExecute.c:955
#7 0x2adb4 in Tcl_EvalObj (interp=0xd6580, objPtr=0xc0b80)
at ./../generic/tclBasic.c:2640
#8 0x6f114 in SlaveEvalHelper (interp=0xb7028, slaveInterp=0xd6580,
slavePtr=0xc6ae0, objc=3, objv=0xb7c7c) at
./../generic/tclInterp.c:2420
#9 0x6fe0c in SlaveObjectCmd (clientData=0xd6580, interp=0xb7028,
objc=3,
objv=0xb7c7c) at ./../generic/tclInterp.c:2887
#10 0x59adc in TclExecuteByteCode (interp=0xb7028, codePtr=0xc3b40)
at ./../generic/tclExecute.c:955
#11 0x2adb4 in Tcl_EvalObj (interp=0xb7028, objPtr=0xddf50)
at ./../generic/tclBasic.c:2640
#12 0x17090 in TclObjInterpProc (clientData=0xcd740, interp=0xb7028,
objc=3,
objv=0xb7c70) at ./../generic/tclProc.c:992
#13 0x59adc in TclExecuteByteCode (interp=0xb7028, codePtr=0xbeff8)
at ./../generic/tclExecute.c:955
#14 0x2adb4 in Tcl_EvalObj (interp=0xb7028, objPtr=0xb7650)
at ./../generic/tclBasic.c:2640
#15 0x6ab90 in Tcl_RecordAndEvalObj (interp=0xb7028, cmdPtr=0xb7650,
flags=0)
at ./../generic/tclHistory.c:151
#16 0x124a4 in Tcl_Main (argc=1, argv=0xeffff7b4,
appInitProc=0x11df4 <Tcl_AppInit>) at ./../generic/tclMain.c:253
#17 0x11de0 in main (argc=1, argv=0xeffff7b4) at ./tclAppInit.c:66
(gdb) The program is running. Exit anyway? (y or n) y
bash-2.02$
04/29/1999 12:02 - pat -This is not a bug. Customer made a mistake when installing Tcl 8.0.5. Customer's comment:
I need to apologize for that last bug posting. It was in error.
The full scenario was that I installed 8.0.5 on top of 8.0.2 and the
second installation was done with --enable-symbols and without
--enable-shared. This resulted in an old libtcl.so surviving and
wreaking havoc. Thus, the bug was mine, not yours.
welch Closed ticket [218122ffff].
[History diff]2000-10-26 08:14:48
dgp Ticket [218122ffff]: 4 changes
[History diff]2001-04-21 01:28:21
Log in (anonymous is fine) to add a comment.