Skip to content

Segmentation fault in pybfd_get_sections_list #5

@ilya-palachev

Description

@ilya-palachev

Hi,

I'm using Ubuntu 14.04 with the following binutils version: 2.24-5ubuntu3

The constructor of Bfd object calls function __populate_sections, which calls pybfd_get_sections_list defined in bfd.c

Using GDB I've found that program segfaults at the following place in pybfd_get_sections_list:

        for (section = abfd->sections; section; section = section->next) {
            PyList_SetItem(list, section->index, Py_BuildValue("n", section));
        }

The reason is that the memory address for abfd->sections is not accessible.

Am I doing something wrong with setup/build/install ?
I've dowloaded pybfd from GutHub, built & installed using setup.py

Thanks in advance,
Ilya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions