On the other side, I’m still getting this sort of ...
# openlane
u
On the other side, I’m still getting this sort of crash during save on run_magic_drc.
Copy code
Loading DRC CIF style.
No errors found.
[INFO]: COUNT: 0
[INFO]: Should be divided by 3 or 4
[INFO]: DRC Checking DONE (/Users/ronaldv/Projects/repositories/openlane/copperv.drc)
[INFO]: Saving mag view with DRC errors(/Users/ronaldv/Projects/repositories/openlane/designs/copperv/runs/ver5//results/magic/copperv.drc.mag)
child killed: SIGABRT
    while executing
"exec magic  -noconsole  -dnull  -rcfile $magicrc  $::env(SCRIPTS_DIR)/magic_drc.tcl  </dev/null  |& tee $::env(TERMINAL_OUTPUT) $::env(magic_log_file_..."
    (procedure "run_magic_drc" line 9)
    invoked from within
"run_magic_drc"
    (procedure "run_non_interactive_mode" line 26)
    invoked from within
"run_non_interactive_mode {*}$argv_copy"
    invoked from within
"if { [info exists flags_map(-interactive)] ||\
    [info exists flags_map(-it)] } {
	if { [info exists arg_values(-file)] } {
		run_file [file normali..."
    (file "./flow.tcl" line 136)
Stack, @Tim Edwards
Copy code
frame #3: 0x00007fff6c2bad7b libsystem_c.dylib`__stack_chk_fail + 100
    frame #4: 0x0000000112808b8d tclmagic.dylib`cmdWindSet(window=0x00007f95fd8e4e10) at CmdSubrs.c:0
    frame #5: 0x00000001128f6b39 tclmagic.dylib`WindSearch(client=140282147144976, surfaceID=0, surfaceArea=error: summary string parsing error, func=(tclmagic.dylib`cmdWindSet at CmdSubrs.c:896), clientData=0) at windSearch.c:191:9
    frame #6: 0x0000000112808a7e tclmagic.dylib`CmdSetWindCaption(newEditUse=0x00007f960175ab10, rootDef=0x00007f95fb893e10) at CmdSubrs.c:863:12
    frame #7: 0x00000001128085ac tclmagic.dylib`cmdSaveCell(cellDef=0x00007f95fb893e10, newName="/Users/ronaldv/Projects/repositories/openlane/designs/copperv/runs/ver4//results/magic/copperv.drc", noninteractive='\0', tryRename='\x01') at CmdSubrs.c:654:2
    frame #8: 0x000000011281d578 tclmagic.dylib`CmdSave(w=0x00007f95fd8e4e10, cmd=0x00007f9603df2210) at CmdRS.c:161:2
    frame #9: 0x00000001128f4ce2 tclmagic.dylib`WindExecute(w=0x00007f95fd8e4e10, rc=140282147144976, cmd=0x00007f9603df2210) at windMain.c:414:6
    frame #10: 0x0000000112869b07 tclmagic.dylib`DBWcommands(w=0x00007f95fd8e4e10, cmd=0x00007f9603df2210) at DBWprocs.c:598:2
    frame #11: 0x00000001128f12ff tclmagic.dylib`WindSendCommand(w=0x00007f95fd8e4e10, cmd=0x00007f9603df2210, quiet='\x01') at windSend.c:263:6
Frame #5 looks kind of suspicious, I think most of those arguments were expected to be 0. Running stand alone seems to go through without hitting the issue:
Copy code
Reading DEF data from file /Users/ronaldv/Projects/repositories/openlane/designs/copperv/runs/ver5//results/routing/copperv.def.
This action cannot be undone.
  Processed 6 vias total.
  Processed 106880 subcell instances total.
  Processed 211 pins total.
  Processed 2 special nets total.
  Processed 12007 nets total.
DEF read: Processed 489992 lines.
[INFO]: Loading copperv

Loading DRC CIF style.
No errors found.
[INFO]: COUNT: 0
[INFO]: Should be divided by 3 or 4
[INFO]: DRC Checking DONE (/Users/ronaldv/Projects/repositories/openlane/copperv.drc)
[INFO]: Saving mag view with DRC errors(crash.drc.mag)
[INFO]: Saved
t
Ah, I have the exact same issue.
t
Can one or both of you run that with valgrind to see whether it shows the root cause of the problem? It looks like there is some problem with the interpretation of the size of arguments passed to WindSearch(), maybe the size of ClientData? But I've never heard of that happening before (from the .dylib, I see you're on a Mac. . . there have been problems reported with the Mac depending on what source of Tcl/Tk you use, so that might be the issue here). @tnt: Are you also using a Mac?
( and no, I'm on Linux Ubuntu 19.10 ATM )
a
@tnt aside from this "workaround" (-tag test -overwrite) this problem was not solved yet right ?
t
It is.
a
?
t
If you use the latest version from
magic
a
i am
or you mean
with the latest latest patch ?
the one you suggested ?
t
It's in the git repo now.
Are you running in Docker ?
a
yeah..... I saw it ... here we go again ...rebuilding magic
the third time
nope
native
t
ok.
a
rebuilt...lets see
yep
looks good, thanks
👍 1