Whenever I try to analyze a function that has arr_uint8_t type, I get the following error:
Actual behavior:
Internal Error: DWARF
Assertion failed in dwarf_val_constant - ../dwarf.h(1206):
form_val.kind == DW_VAL_constant
errno => 0: Success
SIGTRAP hit in PID: 475436. Attach a debugger, hit 'x' to exit or 'c' to continue...
Expected behavior:
It should work with a flexible array member.
The same code but with zero length array doesn't produce any error
What happened?
I have a struct with a flexible array member
Whenever I try to analyze a function that has arr_uint8_t type, I get the following error:
Actual behavior:
Expected behavior:
It should work with a flexible array member.
The same code but with zero length array doesn't produce any error
System/app details
WhiteBox version - 0.91.1 WhiteBox commit - a1735eaf840395556371fae40ad42c7c39b2d4a8 Assert level - 5 Debug info - false Kernel - Linux 5.15.0-46-generic OS - Ubuntu 22.04.1 LTS Architecture - x86-64 CPU name - Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz CPU count - 8 CPU MHz -
RAM - 16G
How to reproduce the error
Steps to reproduce:
If you change arr_uint8_t to use a zero-length array instead of a flexible array member and it will not assert.
Does the error happen consistently with the above steps? Always
Minimal reproducible code example: algo1.txt
Crash/log attachments & additional info
Any additional information/comments:
I noticed that the value of errno from a log is random