Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault in pybfd_get_sections_list #5

Open
ilya-palachev opened this issue Feb 2, 2015 · 0 comments
Open

Segmentation fault in pybfd_get_sections_list #5

ilya-palachev opened this issue Feb 2, 2015 · 0 comments

Comments

@ilya-palachev
Copy link

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

@ilya-palachev ilya-palachev changed the title Segmentation fault in constructor Segmentation fault in pybfd_get_sections_list Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant