[redland-dev] 0.9.19: Segmentation fault (mysql parse in)

Dave Beckett dave.beckett at bristol.ac.uk
Mon Nov 8 17:11:27 GMT 2004


On Sat, 6 Nov 2004 16:30:49 +0100 (MET), Sebastian Dietzold <sebastian at dietzold.de> wrote:

> 
> Hi there, i've downloaded and compiled the new 0.9.19 version and got a 
> Segmentation fault while trying to parse a foaf-file in a mysql-db with 
> rdfproc.
> 
> # rdfproc -s mysql -t "host='server',database='redland',user='seebi',password='xxx'" -n archive parse http://sebastian.dietzold.de/rdf/foaf.rdf
> Segmentation fault
> 
> here is a ldd out
> 
> # ldd /opt/redland-0.9.19/bin/rdfproc
>  	librdf.so.0 => /opt/redland-0.9.19/lib/librdf.so.0 (0x40014000)
>  	libdb-4.1.so => /opt/db-4.1.25/lib/libdb-4.1.so (0x4003e000)
>  	libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x400e2000)
>  	libmysqlclient.so.10 => /opt/mysql-3.23.58/lib/mysql/libmysqlclient.so.10 (0x401a2000)
>  	libcrypt.so.1 => /lib/libcrypt.so.1 (0x401be000)
>  	libnsl.so.1 => /lib/libnsl.so.1 (0x401eb000)
>  	librasqal.so.0 => /opt/redland-0.9.19/lib/librasqal.so.0 (0x401ff000)
>  	libraptor.so.1 => /opt/redland-0.9.19/lib/libraptor.so.1 (0x40216000)
>  	libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40243000)
>  	libdl.so.2 => /lib/libdl.so.2 (0x40260000)
>  	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x40263000)
>  	libz.so.1 => /usr/lib/libz.so.1 (0x40302000)
>  	libm.so.6 => /lib/libm.so.6 (0x40310000)
>  	libc.so.6 => /lib/libc.so.6 (0x40331000)
>  	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> and i compiled with
> 
> ./configure --prefix=/opt/redland-0.9.19 --with-mysql=/opt/mysql-3.23.58/bin/mysql_config --with-bdb=/opt/db-4.1.25
> 
> On my solaris box the same procedure works fine but i need it on a linux 
> server (this is 2.4.23 debian stable)
> 
> Has somebody an idea?
> How can i solve this problem?

I had a go trying to duplicate this but sadly failed.  Can you maybe
re-compile with debugging symbols and try to get a stack dump of the
crash? i.e. do:

make clean
CFLAGS=-g  ./configure --prefix=/opt/redland-0.9.19 --with-mysql=/opt/mysql-3.23.58/bin/mysql_config --with-bdb=/opt/db-4.1.25
make
sudo make install
cd utils
gdb --args /opt/redland-0.9.19/bin/rdfproc -s mysql -t "host='server',database='redland',user='seebi',password='xxx'" -n archive parse http://sebastian.dietzold.de/rdf/foaf.rdf
...

gdb> run

and then when/if it crashes, do 'bt'

(you might need to set some source directory paths for gdb:
 gdb> dir /absolute/path/to/redland-0.9.19/librdf
)

Thanks

Dave



More information about the redland-dev mailing list