[redland-dev] Rasqal segfault

Dave Beckett Dave.Beckett at bristol.ac.uk
Thu Jun 9 21:25:50 BST 2005


On Thu, 2005-06-09 at 21:15 +0200, Danny Ayers wrote:
> I spoke too soon - I had applied the last patch.
> 
> I'd got Redland (R&R internal) plus bindings latest versions, so did
> make uninstall on those before configure, make, make install latest
> Raptor, Rasqal, Redland, bindings. I don't /think/ the version wires
> have got crossed.
> 
> Here's what I got:

you didn't copy the crash description before the backtrace

> #1  0x40523463 in rasqal_new_triples_match (query=0x8240248,
> user_data=0x823a178,
>     m=0x8201f80, t=0x8201f80) at rasqal_engine.c:463
> #2  0x4052399a in rasqal_graph_pattern_get_next_match
> (query=0x8240248, gp=0x823a1e8)
>     at rasqal_engine.c:666
> #3  0x40523d2d in rasqal_engine_do_step (query=0x8240248,
> outergp=0x81e99b8, gp=0x823a1e8)
>     at rasqal_engine.c:943
> #4  0x4052410d in rasqal_engine_get_next_result (query=0x8240248) at
> rasqal_engine.c:1209
> #5  0x405209d8 in rasqal_query_results_next (query_results=0x8240248)
> at rasqal_query.c:1451
> #6  0x405203cf in rasqal_query_execute (query=0x8240248) at rasqal_query.c:1200
> #7  0x40298944 in librdf_query_rasqal_execute (query=0x823b5a0, model=0x822d560)
>     at rdf_query_rasqal.c:537
> #8  0x4029699b in librdf_query_execute (query=0x823b5a0,
> model=0x822d560) at rdf_query.c:430
> #9  0x40266a7d in _wrap_librdf_query_execute (self=0x0, args=0x408e760c)
>     at Redland_wrap.c:5759
> #10 0x080fde6a in PyCFunction_Call ()
> 
> 
> import RDF
> from store import Store
> 
> m = Store().get_model("sparqlsphere")

Cannot duplicate module 'Store' isn't part of redland.

> for i in m.find_statements(RDF.Statement(None, None, RDF.Node("Asemantics"))):
>    print i
> 
> print "Find statements done."
> 
> query_string="""PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> 
> 
> PREFIX rss: <http://purl.org/rss/1.0/>
> 
> 
> SELECT ?title, ?content  WHERE
> 
> { ?item rdf:type rss:item .
>   ?item rss:title ?title .
>  }
> """
> 
> query = RDF.Query(query_string, None,"sparql", None)
> print query.execute(m)
> 
> print "SPARQL query done."

Maybe you could try some packaged versions instead so it's easy to see
when we are on the same page. raptor 1.4.7 and rasqal 0.9.10 are
packaged for rpm and deb.

Actually you don't say what versions you installed...

Dave




More information about the redland-dev mailing list