[redland-dev] [Rasqal RDF Query Library 0000350]: Redland Tree Storage crashes when loading two specific, valid, RDFMXL files

Mantis Bug Tracker mantis-bug-sender at librdf.org
Wed Feb 17 14:09:49 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=350 
====================================================================== 
Reported By:                stephindol
Assigned To:                
====================================================================== 
Project:                    Rasqal RDF Query Library
Issue ID:                   350
Category:                   api
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Query Language:             C 
====================================================================== 
Date Submitted:             2010-02-17 13:09
Last Modified:              2010-02-17 13:09
====================================================================== 
Summary:                    Redland Tree Storage crashes when loading two
specific, valid, RDFMXL files
Description: 
See attached source code and rdfxml "miniaml" files. Redland crashes in
line 555 of rdf_avltree.c, when freeing data:

  tree->free_fn(p_data);

Reproduced with several versions of redland, including the current one
(1.0.10 used with raptor 1.4.21 and 0.9.19)

Full stack trace:

#0  0x0000000000000000 in ?? ()
#1  0x00007fccf230b5ac in librdf_avltree_sprout (tree=0x1108740,
parent=0x0, node_pp=0x1108740, p_data=0x1111f50,
rebalancing_p=0x7fff8a9745b8)
    at rdf_avltree.c:555
#2  0x00007fccf230ad77 in librdf_avltree_add (tree=0x1108740,
p_data=0x1111f50) at rdf_avltree.c:205
#3  0x00007fccf231fd36 in librdf_storage_trees_add_statement_internal
(storage=0x11080e0, graph=0x11086b0, statement=0x1111f50)
    at rdf_storage_trees.c:244
#4  0x00007fccf231fd8d in librdf_storage_trees_add_statement
(storage=0x11080e0, statement=0x1111230) at rdf_storage_trees.c:269
#5  0x00007fccf230e4e3 in librdf_storage_add_statement (storage=0x11080e0,
statement=0x1111230) at rdf_storage.c:871
#6  0x00007fccf2309682 in librdf_model_storage_add_statement
(model=0x11087a0, statement=0x1111230) at rdf_model_storage.c:177
#7  0x00007fccf2306df3 in librdf_model_add_statement (model=0x11087a0,
statement=0x1111230) at rdf_model.c:485
#8  0x00007fccf2312cf5 in librdf_parser_raptor_new_statement_handler
(context=0x1108830, rstatement=0x1107af0) at rdf_parser_raptor.c:299
#9  0x00007fccf27ceed8 in raptor_rdfxml_generate_statement
(rdf_parser=0x1107ab0, subject_uri=0x1110710, subject_id=0x0, 
    subject_type=RAPTOR_IDENTIFIER_TYPE_RESOURCE,
subject_uri_source=RAPTOR_URI_SOURCE_ELEMENT, predicate_uri=0x1102100,
predicate_id=0x0, 
    predicate_type=RAPTOR_IDENTIFIER_TYPE_RESOURCE,
predicate_uri_source=RAPTOR_URI_SOURCE_NOT_URI, predicate_ordinal=0,
object_uri=0x1111a60, 
    object_id=0x0, object_type=RAPTOR_IDENTIFIER_TYPE_LITERAL,
object_uri_source=RAPTOR_URI_SOURCE_UNKNOWN, literal_datatype=0x0, 
    reified=0x1111be8, bag_element=0x110e2d0) at raptor_rdfxml.c:1354
#10 0x00007fccf27d2814 in raptor_rdfxml_end_element_grammar
(rdf_parser=0x1107ab0, element=0x1111ae0) at raptor_rdfxml.c:2809
#11 0x00007fccf27ce186 in raptor_rdfxml_end_element_handler
(user_data=0x1107ab0, xml_element=0x1111a80) at raptor_rdfxml.c:952
#12 0x00007fccf27d45ca in raptor_sax2_end_element (user_data=0x1107dd0,
name=0x1110b3d "rdfs:label") at raptor_sax2.c:1052
#13 0x00007fccf19fb475 in ?? () from /usr/lib/libxml2.so.2
#14 0x00007fccf1a08946 in xmlParseChunk () from /usr/lib/libxml2.so.2
#15 0x00007fccf27d3af5 in raptor_sax2_parse_chunk (sax2=0x1107dd0, 
    buffer=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., len=0, is_end=1) at
raptor_sax2.c:591
#16 0x00007fccf27ced31 in raptor_rdfxml_parse_chunk (rdf_parser=0x1107ab0,

    buffer=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., len=750, is_end=1) at
raptor_rdfxml.c:1272
#17 0x00007fccf27b3e58 in raptor_parse_chunk (rdf_parser=0x1107ab0, 
    buffer=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., len=750, is_end=1) at
raptor_parse.c:718
#18 0x00007fccf2313cfc in librdf_parser_raptor_parse_into_model_common
(context=0x11079b0, uri=0x0, 
    string=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., fh=0x0, length=750,
base_uri=0x11078a0, 
    model=0x11087a0) at rdf_parser_raptor.c:910
#19 0x00007fccf2313e01 in librdf_parser_raptor_parse_string_into_model
(context=0x11079b0, 
    string=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., base_uri=0x11078a0,
model=0x11087a0)
    at rdf_parser_raptor.c:973
#20 0x00007fccf2311e66 in librdf_parser_parse_string_into_model
(parser=0x11078c0, 
    string=0x110edb0 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rdf:RDF
xmlns:dcterms=\"http://purl.org/dc/terms/\"\n        
xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n        
xmlns:rdfs=\"http://www.w3.org/2000/0"..., base_uri=0x11078a0,
model=0x11087a0)
    at rdf_parser.c:526

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-17 13:09 stephindol     New Issue                                    
2010-02-17 13:09 stephindol     File Added: br.c                             
2010-02-17 13:09 stephindol     Query Language            => C               
======================================================================



More information about the redland-dev mailing list