[redland-dev] rapper segfault

Christopher Schmidt crschmidt at crschmidt.net
Fri May 27 19:16:00 BST 2005


Hi,

It seems that the latest raptor (1.4.6) has problems with parsing 
the RSS 2.0 URI: 

http://flickr.com/services/feeds/photos_public.gne?id=90101639@N00&format=rss_200

An older version does not have problems.

A backtrace from GDB offers:

#1  0x4003d088 in raptor_rss_field_free (field=0x8062818) at raptor_rss.c:495
#2  0x4003d068 in raptor_rss_field_free (field=0x80629b8) at raptor_rss.c:499
#3  0x4003d0fd in raptor_clear_rss_item (item=0x404dc300) at raptor_rss.c:508
#4  0x4003d122 in raptor_free_rss_item (item=0x8062580) at raptor_rss.c:520
#5  0x4003d16e in raptor_clear_rss_items (rss_parser=0x8056508)    
      at raptor_rss.c:530
#6  0x4003d215 in raptor_rss_context_terminate (rss_parser=0x8056508)
      at raptor_rss.c:560
#7  0x4003d2a7 in raptor_rss_parse_terminate (rdf_parser=0x8000000)    
      at raptor_rss.c:584
#8  0x40025956 in raptor_free_parser (rdf_parser=0x8056458)    
      at raptor_parse.c:436

It appears to happen after parsing is complete: the output seems to
print all statements, but dies before printing the statement count, and
it dies on an errant "free".

This is also reproducible using the RSSTagSoupParser in the Python
bindings, and has been confirmed in #swig by another user of Redland.
Note that on OS X 10.3.9 it does not actually force a segfault, but
returns a number of memory allocation errors.

Other RSS files (I tried all the outputs from
http://crschmidt.net/blog/) seem to parse fine.

-- 
Christopher Schmidt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050527/5affa5da/attachment.pgp


More information about the redland-dev mailing list