Closed l0calh05t closed 8 years ago
Thanks for the report.
It's probably better to allow adding these "anonymous" UDT. IIRC the types referred to don't work properly in the debugger if there are no corresponding UDT entries.
I have pushed an appropriate patch to master.
Ok. I didn't actually try debugging anything with my workaround.
I am using cv2pdb to convert DLLs generated with MinGW-w64 from DWARF to PDB. I recently started using OpenMP in that project. This causes cv2pdb to crash because now
addUdtSymbol
is being called with anull
name fromCV2PDB::createTypes
, more specifically in these lines:For now I just added
if(!name) return false;
to the beginning ofCV2PDB::addUdtSymbol
.Minimal example:
Add the following to a new file, e.g.,
cv2pdb_crash.cpp
:Build a DLL:
g++ -fopenmp -O0 -g -shared cv2pdb_crash.cpp -o cv2pdb_crash.dll
Run
cv2pdb
:cv2pdb -C cv2pdb_crash.dll
Observe crash.