xcircuit crash middle click dragging a selection

Bug #134617 reported by Peter Clifton
Affects Status Importance Assigned to Milestone
xcircuit (Ubuntu)
Aanjhan Ranganathan

Bug Description

Binary package hint: xcircuit


Start xcircuit, middle click drag a selection box. Crash.

Program received signal SIGSEGV, Segmentation fault.
0x4ad09593 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0x4ad09593 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0x4bb31766 in XtNameToWidget (root=0x8127018, name=0x4 <Address 0x4 out of bounds>) at ../../src/Intrinsic.c:625
#2 0x080b1d62 in togglefontmark (fontval=0) at xtfuncs.c:777
#3 0x080b350b in setfontmarks (fvalue=0, jvalue=16) at xtfuncs.c:1445
#4 0x0808ea25 in setdefaultfontmarks () at menucalls.c:1277
#5 0x080a4840 in setoptionmenu () at selection.c:222
#6 0x080a5dc0 in selectarea () at selection.c:713
#7 0x080615c1 in finish_op (op=102, x=473, y=466) at events.c:5381
#8 0x0805775f in keyhandler (w=0x8171788, clientdata=0x0, event=0xbfba9958) at events.c:2303
#9 0x080556c0 in buttonhandler (w=0x8171788, clientdata=0x0, event=0xbfba9958) at events.c:1390
#10 0x4bb1b887 in XtCallCallbacks (widget=0x8171788, name=0x80e7075 "release", call_data=0xbfba9958) at ../../src/Callback.c:560
#11 0x080d6787 in Release (hw=0x8171788, event=0xbfba9958) at WorkSpace.c:324
#12 0x4bb526a1 in HandleActions (w=0x8171788, event=0xbfba9958, stateTree=0x8168ba0, accelWidget=0x0, procs=0x8184474,
    actions=0x4bb5ef50) at ../../src/TMstate.c:636
#13 0x4bb52a7b in HandleSimpleState (w=0x8171788, tmRecPtr=0x81717b8, curEventPtr=0xbfba95f8) at ../../src/TMstate.c:875
#14 0x4bb53078 in _XtTranslateEvent (w=0x8171788, event=0xbfba9958) at ../../src/TMstate.c:1093
#15 0x4bb29852 in XtDispatchEventToWidget (widget=0x8171788, event=0xbfba9958) at ../../src/Event.c:898
#16 0x4bb2a06a in _XtDefaultDispatcher (event=0xbfba9958) at ../../src/Event.c:1359
#17 0x4bb28ed7 in XtDispatchEvent (event=0xbfba9958) at ../../src/Event.c:1415
#18 0x4bb2908c in XtAppMainLoop (app=0x80f4938) at ../../src/Event.c:1552
#19 0x080ba382 in local_xloop () at xtgui.c:1994
#20 0x080ba522 in main (argc=1, argv=0xbfba9ac4) at xtgui.c:2070
#21 0x4acaf050 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#22 0x0804b541 in _start ()

Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

thanks for reporting. As far as my knowledge is concerned the xcircuit package has been orphaned and no more supported. Am not sure though. May be someone else would pitch in and take further action. Thank you once again.

Revision history for this message
Peter Clifton (pcjc2) wrote :

I did notice it was dropped once before.

I'm busy for the next month or so, but if no-one else volunteers. I'll clean up / fix the xcircuit package as it would be a shame to loose such a great drawing tool from Ubuntu. I'm one of the developers for another open-source EDA package - so don't actually use it for drawing circuits (ours is better :-)), but it is a lovely postscript drawing program for illustrating academic work.

Revision history for this message
Doug Holton (edtechdev) wrote :

Yeah xcircuit is completely unusable.

One way to reproduce crash:

Start xcircuit (doesn't matter if you pass -2 parameter to it or not). Click once on empty area.
Go to menu Window -> Goto Library -> Library 1. Now click and drag a component and drop it
on the page. Crash.

Revision history for this message
Doug Holton (edtechdev) wrote :

I compiled XCircuit 3.6 rev 127 (3.6.127) myself using these instructions:

And it runs and doesn't crash at all. The interface looks much nicer too, and the menus work without having to continually hold down the mouse button.

Revision history for this message
Florian Hars (florian-hars) wrote :

The reason for this bug is that xcircuit in ubuntu is compiled without tcl support, as the upstream maintainer recently noticed:

Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

Still present on Hardy.

Changed in xcircuit:
status: New → Confirmed
Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

Interesting observation:
It crashes on Intrepid build release as well when one clicks the workspace and then pulls down the Library menu to choose a component. But if one does not click the workspace before pulling down the Library menu, it works fine. Might be helpful in resolving the issue.

Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

Just compiled upstream source 3.6.138 with tcl and tk support. Still crashes. So my guess is that it could be an upstream issue. Will follow it up with upstream.
Assigning to myself.

Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

(gdb) bt
#0 0xb7f6e410 in __kernel_vsyscall ()
#1 0xb7adb085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7adca01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7e35fbf in Tcl_PanicVA () from /usr/lib/libtcl8.4.so.0
#4 0xb7e35fe7 in Tcl_Panic () from /usr/lib/libtcl8.4.so.0
#5 0xb7de4ad6 in Tcl_Alloc () from /usr/lib/libtcl8.4.so.0
#6 0xb71efb2a in UDrawPolygon (thepoly=0x81f9268) at functions.c:2236
#7 0xb71b8819 in trackwire (w=0x0, clientdata=0x8255998 "\006", calldata=0x0) at elements.c:1484
#8 0xb7e99082 in Tk_HandleEvent () from /usr/lib/libtk8.4.so.0
#9 0xb7e9990e in ?? () from /usr/lib/libtk8.4.so.0
#10 0xb7e336a3 in Tcl_ServiceEvent () from /usr/lib/libtcl8.4.so.0
#11 0xb7e33976 in Tcl_DoOneEvent () from /usr/lib/libtcl8.4.so.0
#12 0xb7e999cf in Tk_MainLoop () from /usr/lib/libtk8.4.so.0
#13 0xb7ea6f20 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#14 0x0804879c in main (argc=1, argv=0xbfe07424) at xcircexec.c:76

Changed in xcircuit:
assignee: nobody → aanjhan
Revision history for this message
Aanjhan Ranganathan (aanjhan) wrote :

Upstream has released new version -139 but it still crashes on Gnome. Discussion with upstream in progress. Check http://www.opencircuitdesign.com/pipermail/xcircuit-dev/2008/000387.html

Changed in xcircuit:
status: Confirmed → In Progress
Revision history for this message
linuxpeppe (utms) wrote :

In Ubuntu 8.04:
I succesfull compiled xcircuit-3.4.30.tgz sources with "./configure --with-tcl=/usr/lib/tcl8.4/ " and tcl8.4-dev installed. No more crashes.
I don't know if developers fixed the bug and it will compile with tcl8.5

Revision history for this message
Patricio (patricio-stwing) wrote :

Install tcl8.4-dev
Download xcircuit-3.4.30.tgz from http://opencircuitdesign.com/xcircuit/
tar zxf xcircuit-3.4.30.tgz
cd xcircuit-3.4.30/
./configure --with-tcl=/usr/lib/tcl8.4/
but make gives me:
BBoard.c:27:28: error: X11/IntrinsicP.h: No such file or directory
BBoard.c:28:27: error: X11/Intrinsic.h: No such file or directory
BBoard.c:30:28: error: X11/StringDefs.h: No such file or directory

What am I missing?

Revision history for this message
Patricio (patricio-stwing) wrote :

I installed apt-file
apt-file update
installed libxt-dev and also (as noted in
    * tcl8.4
    * tcl8.4-dev
    * tk8.4
    * tk8.4-dev
    * libxp
    * gcc
    * g++
    * make
    * nasm
    * m4
./configure --with-tcl=/usr/lib/tcl8.4
make clean
sudo make install
it seems to work, but I only as sudo xcircuit

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers