clang-3.8 crashes dsymutil with -gdwarf-4 on 10.9

Mihai Moldovan ionic at macports.org
Sun Feb 26 10:51:17 UTC 2017


Actually, this is enough to trigger an assertion failure (albeit a different one):

<-----snip----->
#include <cstdlib>
#include <iostream>

int main (int argc, char **argv) {
  std::cerr << std::endl;

  return (EXIT_SUCCESS);
}
<-----snip----->

Assertion failed: (linked_addr_pos != line_table_map.end()), function FixReferences, file /SourceCache/dwarf_utilities/dwarf_utilities-119/source/DWARFdSYM.cpp, line 3749.

Tested and reproduced with both clang 3.7 and 3.8.

Unreproducible with Xcode clang.

When compiled with clang 3.9, dsymutil spews out warnings, but *doesn't* trip on an assertion:

warning: {0x00004026} TAG_formal_parameter:  AT_location( 0x001fdc11 ) didn't have valid function low pc, the location list will be incorrect.
warning: {0x00004054} TAG_formal_parameter:  AT_location( 0x00002f91 ) didn't have valid function low pc, the location list will be incorrect.



Mihai

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20170226/4bf43a4e/attachment.sig>


More information about the macports-dev mailing list