Closed melven closed 1 year ago
Hello from Cologne ;)
problem is not urgent for me - as a workaround I just shorten my region names (they are generated automatically from C++ template function names -> thus sometimes long)...
Best, Melven
Hi Melven,
we have that issue also with others trying to integrate the MarkerAPI into some framework with auto-generated region names (e.g. OpenSYCL). The question is what is a reasonable maximal length for the region names. Or no string length limit at all? Your opinion?
The currently hardcoded limit is 100 characters.
Best, Thomas
Hi Thomas,
I suspect there is an additional bug: it should not segfault when the string is too long. Would be fine for me if it takes the first 100 chars (just truncating the name). If someone really has tag names that differ only in the 105th character, that regions would just appear as one...
Best, Melven
Please check the linked commit/branch. It follows your suggestion to truncate the region tag if larger than 100 characters.
Works fine in all my tests, thanks!
Describe the bug With region names longer than ~100 characters, I get
not a valid region description: ...
sometimes followed by a segfault.To Reproduce
gcc -I/path/to/likwid/include -L/path/to/likwid/lib -llikwid -DLIKWID_PERFMON -fopenmp example.c
likwid-perfctr -g MEM_DP -C 0 -m ./a.out
Please supply the output of the command with
-d
added to the command line:free(): double free detected in tcache 2 Aborted (core dumped)