I'm having troubles.

Today XCircuit seg faulted when I was saving a file. It lost _all_ the
original data and wrote a empty file in it's place.

I'm not sure which version I was using. It was built from CVS.

So today I checked out the source from CVS (it reports revison
3.6.83), built it with tcl-enable.

This time I made a backup copy of my file first, then I opened the
file, and finally saved it with a new file name.

seg fault.

empty file (the new one, not the one I opened)

This is on Debian Etch (stable) i386.

The console I ran it from has no output except reporting the
segmentation fault.


Below is the report from the debugger.

--                     Philip

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(gdb) attach 8363
Attaching to program: /usr/bin/wish, process 8363
Reading symbols from /usr/lib/libtk8.4.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libtk8.4.so.0
Reading symbols from /usr/lib/libtcl8.4.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libtcl8.4.so.0
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1212610880 (LWP 8363)]
[New Thread -1212613712 (LWP 8364)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging
symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXau.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXcursor.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXfixes.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/local/lib/xcircuit-3.6/xcircuit.so...done.
Loaded symbols for /usr/local/lib/xcircuit-3.6/xcircuit.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libXt.so.6...done.
Loaded symbols for /usr/lib/libXt.so.6
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Failed to read a valid object file image from memory.
0xb7f8c410 in ?? ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212610880 (LWP 8363)]
0xb719a9fd in savefile (mode=1) at files.c:4856
4856                stcount += strlen(fonts[i].psname) + 1;
(gdb) where
#0  0xb719a9fd in savefile (mode=1) at files.c:4856
#1  0xb7199852 in setfile (filename=0x86c4460 "more-test-drawings",
mode=1)
     at files.c:4314
#2  0xb71ec887 in xctcl_page (clientData=0x8275148, interp=0x82650c8,
objc=2,
     objv=0x826cc18) at tclxcircuit.c:6722
#3  0xb7e14931 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#4  0xb7e40729 in Tcl_ExprObj () from /usr/lib/libtcl8.4.so.0
#5  0xb7e44358 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#6  0xb7e159c8 in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
#7  0xb7ee667e in TkInvokeButton () from /usr/lib/libtk8.4.so.0
#8  0xb7ee7840 in Tk_ButtonObjCmd () from /usr/lib/libtk8.4.so.0
#9  0xb7e14931 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#10 0xb7e1586c in Tcl_EvalObjv () from /usr/lib/libtcl8.4.so.0
#11 0xb7e15b50 in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
#12 0xb7e70818 in Tcl_UplevelObjCmd () from /usr/lib/libtcl8.4.so.0
#13 0xb7e14931 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#14 0xb7e40729 in Tcl_ExprObj () from /usr/lib/libtcl8.4.so.0
#15 0xb7e44358 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#16 0xb7e70006 in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#17 0xb7e14931 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#18 0xb7e14edd in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#19 0xb7e151eb in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#20 0xb7e15286 in Tcl_GlobalEval () from /usr/lib/libtcl8.4.so.0
---Type <return> to continue, or q <return> to quit---
#21 0xb7ebf003 in Tk_BindEvent () from /usr/lib/libtk8.4.so.0
#22 0xb7ec1de8 in TkBindEventProc () from /usr/lib/libtk8.4.so.0
#23 0xb7ec944b in Tk_HandleEvent () from /usr/lib/libtk8.4.so.0
#24 0xb7ec9cec in TkQueueEventForAllChildren () from
/usr/lib/libtk8.4.so.0
#25 0xb7e65887 in Tcl_ServiceEvent () from /usr/lib/libtcl8.4.so.0
#26 0xb7e65b68 in Tcl_DoOneEvent () from /usr/lib/libtcl8.4.so.0
#27 0xb7ec9dad in Tk_MainLoop () from /usr/lib/libtk8.4.so.0
#28 0xb7ed6513 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#29 0x08048751 in main ()
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/bin/wish, process 8363


_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to