read.graph crashes on gml files

Bug #1068895 reported by Solomon Messing
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Incomplete
Undecided
Unassigned

Bug Description

I've tried this on gml files from a variety of sources.

R version 2.15.1 MacOSX

gdir <- dir('graphs')
> g <- read.graph(paste("graphs/",gdir[2],sep=""),"gml")

 *** caught segfault ***
address 0x0, cause 'memory not mapped'

Traceback:
 1: .Call("R_igraph_read_graph_gml", file, PACKAGE = "igraph")
 2: read.graph.gml(file, ...)
 3: read.graph(paste("graphs/", gdir[2], sep = ""), "gml")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

=================================

Also crashes in centos:

> g <- read.graph(gdir[10],"gml")

 *** caught segfault ***
address (nil), cause 'memory not mapped'

Traceback:
 1: .Call("R_igraph_read_graph_gml", file, PACKAGE = "igraph")
 2: read.graph.gml(file, ...)
 3: read.graph(gdir[10], "gml")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Tags: crash
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

We will need a little more details, e.g. the exact igraph version, and also a file that reproduces this, because it works fine for me:

g <- graph.ring(10)
write.graph(g, "/tmp/g.gml", format="gml")
g2 <- read.graph("/tmp/g.gml", format="gml")

(Apart form some warnings about attributes.)

Changed in igraph:
status: New → Incomplete
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/466

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.