[Magic-dev] netgen segfault

Chitlesh GOORAH chitlesh at fedoraproject.org
Fri Apr 13 11:41:08 EDT 2007


Hello there,

on comparing invert1.sim and inver.sim, netgen crashed with:
chitlesh(inverter)[0]$netgen
*** glibc detected *** /usr/bin/wish: free(): invalid next size
(fast): 0x0967ad88 ***
======= Backtrace: =========
/lib/libc.so.6[0x26e09d]
/lib/libc.so.6(cfree+0x90)[0x2716f0]
/usr/lib/netgen/tcl/tclnetgen.so[0x356290]
/usr/lib/netgen/tcl/tclnetgen.so[0x357339]
/usr/lib/netgen/tcl/tclnetgen.so[0x363fda]
/usr/lib/libtcl8.4.so[0x1b83a9]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so(Tcl_EvalEx+0x40f)[0x1694cf]
/usr/lib/libtcl8.4.so(Tcl_EvalObjEx+0x165)[0x16a185]
/usr/lib/libtcl8.4.so(Tcl_UplevelObjCmd+0x137)[0x1c74d7]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so[0x195dc5]
/usr/lib/libtcl8.4.so(TclCompEvalObj+0x9c)[0x199cac]
/usr/lib/libtcl8.4.so(Tcl_EvalObjEx+0x69)[0x16a089]
/usr/lib/libtcl8.4.so[0x1a24bb]
/usr/lib/libtcl8.4.so(Tcl_InterpObjCmd+0x753)[0x1a39f3]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so[0x195dc5]
/usr/lib/libtcl8.4.so(TclCompEvalObj+0x9c)[0x199cac]
/usr/lib/libtcl8.4.so(TclObjInterpProc+0x2dc)[0x1c6c4c]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so(Tcl_EvalObjv+0x11b)[0x169edb]
/usr/lib/libtcl8.4.so[0x1a4156]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so[0x195dc5]
/usr/lib/libtcl8.4.so(TclCompEvalObj+0x9c)[0x199cac]
/usr/lib/libtcl8.4.so(TclObjInterpProc+0x2dc)[0x1c6c4c]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so[0x195dc5]
/usr/lib/libtcl8.4.so(TclCompEvalObj+0x9c)[0x199cac]
/usr/lib/libtcl8.4.so(TclObjInterpProc+0x2dc)[0x1c6c4c]
/usr/lib/libtcl8.4.so(TclEvalObjvInternal+0x2fb)[0x168f3b]
/usr/lib/libtcl8.4.so(Tcl_EvalEx+0x40f)[0x1694cf]
/usr/lib/libtk8.4.so(Tk_BindEvent+0xa03)[0x8f9853]
/usr/lib/libtk8.4.so(TkBindEventProc+0xcd)[0x8ff21d]
/usr/lib/libtk8.4.so(Tk_HandleEvent+0x35d)[0x904b5d]
/usr/lib/libtk8.4.so[0x90517b]
/usr/lib/libtcl8.4.so(Tcl_ServiceEvent+0x86)[0x1bbea6]
/usr/lib/libtcl8.4.so(Tcl_DoOneEvent+0xa7)[0x1bc177]
/usr/lib/libtk8.4.so(Tk_MainLoop+0x2f)[0x90457f]
/usr/lib/libtk8.4.so(Tk_MainEx+0x490)[0x912680]
/usr/bin/wish(main+0x4b)[0x80487cb]
/lib/libc.so.6(__libc_start_main+0xdc)[0x21df2c]
/usr/bin/wish[0x8048651]
======= Memory map: ========
00101000-00105000 r-xp 00000000 03:01 9103925    /usr/lib/libXfixes.so.3.1.0
00105000-00106000 rwxp 00003000 03:01 9103925    /usr/lib/libXfixes.so.3.1.0
00110000-00112000 r-xp 00000000 03:01 9103914    /usr/lib/libXau.so.6.0.0
00112000-00113000 rwxp 00001000 03:01 9103914    /usr/lib/libXau.so.6.0.0
00113000-0011e000 r-xp 00000000 03:01 8963664
/lib/libgcc_s-4.1.1-20070105.so.1
0011e000-0011f000 rwxp 0000a000 03:01 8963664
/lib/libgcc_s-4.1.1-20070105.so.1
00148000-00202000 r-xp 00000000 03:01 9114487    /usr/lib/libtcl8.4.so
00202000-00208000 rwxp 000ba000 03:01 9114487    /usr/lib/libtcl8.4.so
00208000-0033f000 r-xp 00000000 03:01 8960920    /lib/libc-2.5.so
0033f000-00341000 r-xp 00137000 03:01 8960920    /lib/libc-2.5.so
00341000-00342000 rwxp 00139000 03:01 8960920    /lib/libc-2.5.so
00342000-00345000 rwxp 00342000 00:00 0
00345000-0036d000 r-xp 00000000 03:01 9130222
/usr/lib/netgen/tcl/tclnetgen.so
0036d000-0036e000 rwxp 00027000 03:01 9130222
/usr/lib/netgen/tcl/tclnetgen.so
0036e000-00524000 rwxp 0036e000 00:00 0
00630000-00643000 r-xp 00000000 03:01 8960944    /lib/libpthread-2.5.so
00643000-00644000 r-xp 00012000 03:01 8960944    /lib/libpthread-2.5.so
00644000-00645000 rwxp 00013000 03:01 8960944    /lib/libpthread-2.5.so
00645000-00647000 rwxp 00645000 00:00 0
007c0000-007d9000 r-xp 00000000 03:01 8960913    /lib/ld-2.5.so
007d9000-007da000 r-xp 00018000 03:01 8960913    /lib/ld-2.5.so
007da000-007db000 rwxp 00019000 03:01 8960913    /lib/ld-2.5.so
00845000-00847000 r-xp 00000000 03:01 8960926    /lib/libdl-2.5.so
00847000-00848000 r-xp 00001000 03:01 8960926    /lib/libdl-2.5.so
00848000-00849000 rwxp 00002000 03:01 8960926    /lib/libdl-2.5.so
008dd000-009bc000 r-xp 00000000 03:01 9095931    /usr/lib/libtk8.4.so
009bc000-009c8000 rwxp 000df000 03:01 9095931    /usr/lib/libtk8.4.so
00a74000-00a79000 r-xp 00000000 03:01 9103915    /usr/lib/libXdmcp.soAborted

my invert1.sim
| units: 100 tech: scmos format: MIT
p in1 out Vdd 2 6 3 29
n in1 GND out 2 3 3 5

my invert.sim
| sim circuit "invert" from XCircuit v3.40 rev 26
n in1 GND out
p in1 Vdd out

chitlesh(~)[0]$gdb wish
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 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 "i386-redhat-linux-gnu"...(no debugging
symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) attach 6053
Attaching to program: /usr/bin/wish, process 6053
Reading symbols from /usr/lib/libtk8.4.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtk8.4.so
Reading symbols from /usr/lib/libtcl8.4.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libtcl8.4.so
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208445248 (LWP 6053)]
[New Thread -1208448112 (LWP 6054)]
Loaded symbols for /lib/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/libdl.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/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/lib/netgen/tcl/tclnetgen.so...Reading
symbols from /usr/lib/debug/usr/lib/netgen/tcl/tclnetgen.so.debug...done.
done.
Loaded symbols for /usr/lib/netgen/tcl/tclnetgen.so
0x00d0a402 in __kernel_vsyscall ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208445248 (LWP 6053)]
0x003d76da in free () from /lib/libc.so.6

I have the following installed:
glibc-2.5-10.fc6
netgen-1.3.7

I'm also trying to add netgen into official fedora repositories:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=226725

I hope someone could point out what's failing so that it can be fixed.

regards,
Chitlesh
-- 
http://clunixchit.blogspot.com



More information about the magic-dev mailing list