nickg / nvc

VHDL compiler and simulator
https://www.nickg.me.uk/nvc/
GNU General Public License v3.0
636 stars 80 forks source link

nvc segfaults while generating the coverage report #909

Closed yikkrubz closed 4 months ago

yikkrubz commented 4 months ago

After elaborating UVVM-based testbenches with coverage enabled works (Thank you for fixing this issue), nvc asks me to file a bug report while creating the coverage report .

For example, generating the coverage report for the testbench uart_vvc_demo_tb, included with the UVVM distribution in the directory bitvis_uart, triggers the message. I installed uvvm running nvc --install uvvm.

nvc -c --report=report work/_WORK.UART_VVC_DEMO_TB.elab.covdb Note: Code coverage report folder: report. Note: Code coverage report contains: covered, uncovered, excluded coverage details. Warning: failed to open ../src/ti_uvvm_engine.vhd for coverage report Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S1. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S2. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S3. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S3._B0. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S3._B0. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S3._B0. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S3._B0._S0. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S4. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S5. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S6. Dropping coverage for this hierarchy/item from coverage report. Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S7. Dropping coverage for this hierarchy/item from coverage report. ** Warning: Could not locate source file: ../src/ti_uvvm_engine.vhd that NVC used to collect coverage for: WORK.UART_VVC_DEMO_TB.I_TEST_HARNESS.I_TI_UVVM_ENGINE.P_INITIALIZE_UVVM._S8. Dropping coverage for this hierarchy/item from coverage report.

Caught signal 11 (SIGSEGV) [address=0x0, ip=0x7ff81171eb32]

[0x10c6911f4] signal_handler+0x3d4 [0x7ff811720fdc] (/usr/lib/system/libsystem_platform.dylib) _sigtramp+0x1c

Please report this bug at https://github.com/nickg/nvc/issues

nvc 1.13-devel (1.12.0.r136.g95ad5561) (Using LLVM 18.1.8) macos 14.5 intel

nickg commented 4 months ago

I fixed the crash and also reduced the number of warnings to one per file.