segfault in TclRegisterLiteral
Closed572534ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-06-22 17:05:34
os: FreeBSD 4.3 and 4.5
problem also occurs with tcl 8.2.3 and
8.4a4
When not compiling tcl with -DPURIFY I'm
experiencing reproducable segfaults in TclRegisterLiteral during
TclNewObj()
The problem occurs when a tcl-script calls
some of my code which runs a certain tcl-script. When I call that
peice of my code directly to run the second script, it all works
perfectly.
Below is the output of gdb's where
command.
If there is anything I can do to help determine the
exact problem, let me know.
-------------------------------------
#0 0x819a64c in
TclRegisterLiteral (envPtr=0xbfbfd27c,
bytes=0x94c32a4
"vegetarian? [color white]\n\r } elseif {[random]>85} {\n\r variable
song\n\r area echo Paul decides its time for a sing along:\n\r
getsong beatles\n\r area echo [color green] $song [color
white]\n\r "..., length=11, onHeap=0)
at
./../generic/tclLiteral.c:261
#1 0x817bfd7 in
TclCompileScript (interp=0x8568000,
script=0x94c321a
"\n\r ! smile\n\r ! say [color green] Have you considered the
advantages - not only for you, but for all of Fatal Dimensions - if you go
vegetarian? [color white]\n\r } elseif {[random]>85} {\n\r var"...,
numBytes=167, nested=0,
envPtr=0xbfbfd27c) at
./../generic/tclCompile.c:928
#2 0x817cea7 in
TclCompileCmdWord (interp=0x8568000,
tokenPtr=0xbfbfd134, count=1, envPtr=0xbfbfd27c)
at
./../generic/tclCompile.c:1317
#3 0x8178a05 in
TclCompileIfCmd (interp=0x8568000, parsePtr=0xbfbfd0ac,
envPtr=0xbfbfd27c) at ./../generic/tclCompCmds.c:1135
#4
0x817bf4e in TclCompileScript (interp=0x8568000,
script=0x94c3200 "\n\r if {[room count]>=1} {\n\r ! smile\n\r ! say
[color green] Have you considered the advantages - not only for you,
but for all of Fatal Dimensions - if you go vegetarian? [color white]\n\r
} elsei"..., numBytes=368, nested=0,
envPtr=0xbfbfd27c) at
./../generic/tclCompile.c:893
#5 0x817b802 in
TclSetByteCodeFromAny (interp=0x8568000,
objPtr=0x9461300, hookProc=0, clientData=0x0)
at
./../generic/tclCompile.c:316
#6 0x817b956 in
SetByteCodeFromAny (interp=0x8568000,
objPtr=0x9461300) at ./../generic/tclCompile.c:415
#7
0x81a8ae1 in TclProcCompileProc (interp=0x8568000,
procPtr=0x9410f80, bodyPtr=0x9461300, nsPtr=0x9411300,
description=0x8270731 "body of proc",
procName=0x95dd9c0 "paul1") at
./../generic/tclProc.c:1133
#8 0x81a85fc in
TclObjInterpProc (clientData=0x9410f80, interp=0x8568000,
objc=1, objv=0x856b000) at ./../generic/tclProc.c:868
#9
0x8184697 in TclExecuteByteCode (interp=0x8568000,
codePtr=0x95d3380) at ./../generic/tclExecute.c:877
#10
0x816a273 in Tcl_EvalObjEx (interp=0x8568000,
objPtr=0x95e2198, flags=0) at
./../generic/tclBasic.c:2733
#11 0x819e95a in
NamespaceEvalCmd (dummy=0x0, interp=0x8568000,
objc=4, objv=0xbfbfe24c) at
./../generic/tclNamesp.c:2927
#12 0x819e243 in
Tcl_NamespaceObjCmd (clientData=0x0, interp=0x8568000,
objc=4, objv=0xbfbfe24c) at
./../generic/tclNamesp.c:2489
#13 0x81a1abc in EvalObjv
(interp=0x8568000, objc=4, objv=0xbfbfe24c,
command=0x94d1b00 "namespace eval
::area101::mob4758::id4099 {\npaul1}\n", length=51, flags=0)
at ./../generic/tclParse.c:932
#14 0x81a21c6 in Tcl_EvalEx
(interp=0x8568000, script=0x94d1b00 "namespace eval
::area101::mob4758::id4099 {\npaul1}\n",
numBytes=51,
flags=262144) at ./../generic/tclParse.c:1393
#15 0x8169ffa
in Tcl_EvalObjEx (interp=0x8568000, objPtr=0x94616f0,
flags=262144) at ./../generic/tclBasic.c:2580
#16
0x80bfe75 in tcl_run_mp_code (ch=0x94a9c4c,
code=0x94a9ec4 "paul1") at fd_tcl_core.c:1499
#17
0x80a0131 in mp_general_trigger_all (mob=0x94a9c4c,
trig_type=11, ch=0x0, room=0x8ecdbd8, buf=0x0, obj=0x0,
obj2=0x0)
at fd_mobprog.c:144
#18 0x80a02d9 in
mp_general_trigger1 (trig_type=11, mob=0x94a9c4c) at
fd_mobprog.c:184
#19 0x80a061d in mp_random_trigger
(mob=0x94a9c4c) at fd_mobprog.c:269
#20 0x8141881 in
mprog_pulse_update () at update.c:1585
#21 0x814229c in
update_handler () at update.c:1949
#22 0x80a43a6 in
game_loop_unix () at fd_network.c:531
#23 0x80787b0 in
main (argc=5, argv=0xbfbffbf8) at comm.c:221
#24
0x8049dbb in _start ()
hobbsplain2002-07-25 03:18:39
Logged In: YES user_id=72656 please attach actual scripts that can be used to reproduce the problem.
hobbsplain2002-11-18 06:26:10
Logged In: YES user_id=72656 we need more data on this to reproduce it, otherwise it will be closed as pilot error.
jodocusplain2002-11-18 16:14:20
Logged In: YES user_id=292363 ack. it turned out to be just that: pilot error. ObjResult is not a constant!
Log in (anonymous is fine) to add a comment.