[redland-dev] Rasqal segfault

Danny Ayers danny.ayers at gmail.com
Thu Jun 9 20:15:16 BST 2005


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:

#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")

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."


-- 

http://dannyayers.com


More information about the redland-dev mailing list