freeMagic called with NULL argument message when processing gds
magic sometimes produces freeMagic called with NULL argument message when processing cells after reading gds.
Version 8.3.328
Sample output
Reading "output_buffer".
Reading "sky130_fd_pr__pfet_01v8_lvt_75KH85".
Reading "BGR_lvs".
Reading "VCO".
Reading "sloci_top3".
Reading "user_analog_project_wrapper".
Processing sky130_fd_pr__res_xhigh_po_5p73_UZMRKM
freeMagic called with NULL argument.
Processing XM_Rref
freeMagic called with NULL argument.
Processing sky130_fd_pr__rf_pnp_05v5_W3p40L3p40
freeMagic called with NULL argument.
Processing XM_bjt
freeMagic called with NULL argument.
Processing XM_bjt_out
freeMagic called with NULL argument.
To reproduce, download tarball and extract.
cd test_freeMagic
./run_ext
This will perform 2 extractions. One extracts without freeMagic called with NULL argument messages and one with.
user_analog_project_wrapper.nowell.ext.log has error messages while
user_analog_project_wrapper.ext.log does not.
user_analog_project_wrapper.nowell.ext.log was created using a rule file modified to ignore well connections.
test_freeMagic.tar.gz
Looks like an innocuous error where a variable should have been checked to see if it is NULL before calling freeMagic(). I have fixed the root cause of the problem (magic version 8.3.329).