--- libdwarf_frame.c (revision 351450) +++ libdwarf_frame.c (working copy) @@ -458,6 +458,13 @@ offset = 0; while (offset < ds->ds_size) { + /* + If the size of the section is greater than 0 and its type is + NOBITS, then ds_data is NULL and this function should + never have been called. + */ + assert(ds->ds_data != NULL); + entry_off = offset; length = dbg->read(ds->ds_data, &offset, 4); if (length == 0xffffffff) {