[redland] Segfault w/ example.pl using repat parser
Chad House
chadh at pobox.com
Tue Nov 6 15:22:59 GMT 2001
I get segfaults when attempting to run the example.pl test file
included with redland 0.9.10. "make build-perl" works, and "make
test-perl" passes all tests, however.
Also, if I change the parser (example.pl line 49) from 'repat' to
'raptor', then example.pl runs fine.
Here's the backtrace from the core file, FWIW:
#0 0x400f5b9a in memcpy () from /lib/i686/libc.so.6
#1 0x40377c3e in XML_Parse () from /usr/lib/libxmlparse.so.0
#2 0x4020bf4c in RDF_Parse (parser=0x819bdb0,
s=0xbffff250 "<?xml version=\"1.0\"?>\n<RDF xmlns=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n <Description about=\"http://purl.org/net/dajobe/\">\n <dc:title>Dave "...,
len=374, is_final=0) at rdfparse.c:2187
#3 0x40203a02 in librdf_parser_repat_get_next_statement (context=0x819bc08)
at rdf_parser_repat.c:595
#4 0x40203b47 in librdf_parser_repat_serialise_end_of_stream (
context=0x819bc08) at rdf_parser_repat.c:643
#5 0x40200f59 in librdf_stream_end (stream=0x819cf20) at rdf_stream.c:187
#6 0x401f73cc in _wrap_librdf_stream_end ()
from blib/arch/auto/Redland/Redland.so
#7 0x0809dd2c in Perl_pp_entersub () at eval.c:41
#8 0x08098658 in Perl_runops_standard () at eval.c:41
#9 0x0805bfba in perl_run () at eval.c:41
#10 0x0805bd2b in perl_run () at eval.c:41
#11 0x08059a21 in main () at eval.c:41
#12 0x4008a177 in __libc_start_main (main=0x80599b0 <main>, argc=4,
ubp_av=0xbffff8dc, init=0x8058b80 <_init>, fini=0x80df83c <_fini>,
rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff8cc)
at ../sysdeps/generic/libc-start.c:129
'rpm -qf /usr/lib/libxmlparse.so.0' tells me the library belongs to the
w3c-libwww package. I had version 5.2.8 installed (stock Red Hat 7.1),
but upgrading to 5.3.2 fixed the problem.
I'm using perl 5.6.0, configuration below.
Regards,
Chad
------------------------------------------------------------------------
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.2.17-8smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.17-8smp #1 smp fri nov 17 16:12:17 est 2000 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O2 -march=i386 -mcpu=i686', gccversion=2.96 20000731 (Red Hat Linux 7.1 2.96-79)
cppflags='-fno-strict-aliasing'
ccflags ='-fno-strict-aliasing'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt
libc=/lib/libc-2.2.2.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options:
Built under linux
Compiled at Mar 23 2001 12:49:50
@INC:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
------------------------------------------------------------------------
More information about the redland-dev
mailing list