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

Fix segfault on attribute changes after layout. #128

Merged
merged 2 commits into from
Aug 4, 2018
Merged

Fix segfault on attribute changes after layout. #128

merged 2 commits into from
Aug 4, 2018

Conversation

ngnpope
Copy link
Contributor

@ngnpope ngnpope commented Jun 14, 2017

Simple reproducible crash fixed by this commit:

>>> import pygraphviz
>>> G = pygraphviz.agraph.AGraph()
>>> G.layout(prog='dot')
>>> G.graph_attr['label'] = 'ABC'
Segmentation fault (core dumped)

This is similar to another segmentation fault related to handle changes that was fixed by 3bfd923.

Simple reproducible crash fixed by this commit:

>>> import pygraphviz
>>> G = pygraphviz.agraph.AGraph()
>>> G.layout(prog='dot')
>>> G.graph_attr['label'] = 'ABC'
Segmentation fault (core dumped)
@coveralls
Copy link

coveralls commented Jun 14, 2017

Coverage Status

Coverage increased (+0.1%) to 81.977% when pulling abfd7a5 on pope1ni:fix-segfault into 0e20f3e on pygraphviz:master.

@hagberg
Copy link
Contributor

hagberg commented Nov 25, 2017

Yes, definitely a bug. If you can see where the problem is please update this.

@ngnpope
Copy link
Contributor Author

ngnpope commented Nov 27, 2017

@hagberg: I'm not sure what you mean... This PR does fix the bug...

@dschult dschult merged commit 8f0b73e into pygraphviz:master Aug 4, 2018
@ngnpope ngnpope deleted the fix-segfault branch August 4, 2018 05:47
@ngnpope
Copy link
Contributor Author

ngnpope commented Aug 4, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants