Pressing Ctrl-C while the Python interface is converting a long list of lists from C to Python segfaults

Bug #424242 reported by Tamás Nepusz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Fix Released
High
Tamás Nepusz

Bug Description

Steps to reproduce:

>>> g = Graph.Erdos_Renyi(100, 0.8)
>>> cl = g.maximal_cliques()
...and press Ctrl-C when the progress bar shows that the clique calculation is complete (this is the time when igraph is converting a long igraph_vector_ptr_t of igraph_vector_t objects back to C).

Tamás Nepusz (ntamas)
Changed in igraph:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Tamás Nepusz (ntamas) wrote :

Hey, I have just noticed what a perfect bug identifier number we have here :)

Revision history for this message
Tamás Nepusz (ntamas) wrote :

Maybe related, maybe not:

>>> g=Graph.Erdos_Renyi(100, 0.8)
>>> cl=g.cliques(min=3, max=3)

Now press Ctrl-C while the calculation is running to get this:

python(2297) malloc: *** error for object 0x100a83a00: pointer being freed was not allocated

Changed in igraph:
importance: Low → High
assignee: nobody → Tamás Nepusz (ntamas)
Tamás Nepusz (ntamas)
Changed in igraph:
status: Confirmed → Triaged
Tamás Nepusz (ntamas)
no longer affects: igraph/0.6-main
Changed in igraph:
milestone: none → 0.6
Tamás Nepusz (ntamas)
Changed in igraph:
milestone: 0.6 → 0.6.1
Tamás Nepusz (ntamas)
Changed in igraph:
status: Triaged → In Progress
Revision history for this message
Tamás Nepusz (ntamas) wrote :

Fixed in #3050 in 0.6-main and in #3099 in trunk. At least I hope so :)

Changed in igraph:
status: In Progress → Fix Committed
Changed in igraph:
status: Fix Committed → Fix Released
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/53

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.