Illegal Instruction in Tcl_Eval() 
Author Message
 Illegal Instruction in Tcl_Eval()

Hi,

I am getting an "Illegal instruction" core dump in the Tcl_Eval() procedure.
Can someone point to me what might be the source of the problem from the
following gdb log?

I am using Tcl-7.3.

(gdb) run
...
Program received signal SIGILL, Illegal instruction.
0x12c9e0 in end ()
(gdb) bt
#0  0x12c9e0 in end ()
#1  0xa82e4 in Tcl_Eval ()
#2  0xb1cc in TclInterp_cl::doTclCommand (this=0xf12a0,
    format=0x4718 "%s create line %d %d %d %d") at tcl++.C:161
#3  0x53a8 in DrawMgr::drawSide (this=0xd307e, node=0x10d1e0, current_x=343,
    current_y=50, step=20, depth=1 '\001') at DrawMgr.C:241
#4  0x4e38 in DrawMgr::display (this=0xd307e, ptrId=562878, depth=2)
    at DrawMgr.C:169
#5  0xa29c in GPK_drawTreeCmd (clientData=0x0, interp=0xf1320, argc=3,
    argv=0xefffded0) at Commands.C:148
#6  0xa86bc in Tcl_Eval ()
#7  0x8463c in Tcl_IfCmd ()
#8  0xa86bc in Tcl_Eval ()
#9  0xb5c84 in InterpProc ()
#10 0xa86bc in Tcl_Eval ()
#11 0x8463c in Tcl_IfCmd ()
#12 0xa86bc in Tcl_Eval ()
#13 0xb5c84 in InterpProc ()
#14 0xa86bc in Tcl_Eval ()
#15 0xa8b1c in Tcl_GlobalEval ()
#16 0x3da9c in TkCopyAndGlobalEval ()
#17 0x506b0 in MenuWidgetCmd ()
#18 0xa86bc in Tcl_Eval ()
#19 0x844d4 in Tcl_IfCmd ()
#20 0xa86bc in Tcl_Eval ()
#21 0xb5c84 in InterpProc ()
#22 0xa86bc in Tcl_Eval ()
#23 0xa8b1c in Tcl_GlobalEval ()
#24 0x3c194 in Tk_BindEvent ()
#25 0x48f38 in TkBindEventProc ()
#26 0x351b8 in Tk_HandleEvent ()
#27 0x35b70 in Tk_DoOneEvent ()
#28 0x35fa4 in Tk_MainLoop ()
#29 0x335b8 in TkX_Wish ()
#30 0x302dc in main ()
(gdb) frame 2
#2  0xb1cc in TclInterp_cl::doTclCommand (this=0xf12a0,
    format=0x4718 "%s create line %d %d %d %d") at tcl++.C:161
161         return Tcl_Eval(interp, command);
(gdb) p command
$1 = ".middle.hold.c create line 270 64 350 80\000........."
                                                 (stuff deleted)

Here's the text for doTclCommand procedure:

int
TclInterp_cl::doTclCommand(char* format, ...)
{
    char command[4096];
    va_list args;

    va_start(args, format);
    vsprintf(command, format, args);
    va_end(args);
    return Tcl_Eval(interp, command);

Quote:
}

I would really appreciate any information.  Please respond by
mail.  Thanks.

Francis



Tue, 30 Sep 1997 03:00:00 GMT  
 Illegal Instruction in Tcl_Eval()


Quote:
>Hi,

>I am getting an "Illegal instruction" core dump in the Tcl_Eval() procedure.
>Can someone point to me what might be the source of the problem from the
>following gdb log?

>I am using Tcl-7.3.

...

I have recompiled the library with -g option and traced the problem to
the tclBasic.c file, and the progrm is dying on the line:

Tcl_FreeResult((Tcl_Interp *) iPtr);

Again, I would appreciate any information.

Francis



Tue, 30 Sep 1997 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Tcl_DeleteInterp produce an illegal Tcl_Eval during window close

2. Illegal Instruction Workaround

3. clipper & nt illegal instruction

4. Windows NT 3.5 Illegal Instruction

5. Any illegal instruction processing interrupts?

6. Illegal instructions

7. Why does this give illegal instruction?

8. Illegal instruction (core dumped)

9. drand : illegal instruction ???

10. Illegal Instruction on Mac OS X Intel

11. 'after' causes illegal instruction errors

12. Instruction Speed and instruction availability

 

 
Powered by phpBB® Forum Software