Hi all,
Appologies if this is the wrong list - please direct me in the right
direction should this be the case.
I am running PHP 5.2.8 on freebsd 7.0 and am getting a Seg fault when
running one of my new programs. We run a couple of other sites of this
server (only one upgraded to 5.2.8) and they are running fine - its just
this script. This script uses:
Zend Framework
Sqlite DB
Simple Pie XML (simplepie.org)
Now this is the output from the core file (when loaded):
Reading symbols from /usr/local/lib/php/20060613-debug/soap.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/soap.so
Reading symbols from /usr/local/lib/php/20060613-debug/sockets.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/sockets.so
Reading symbols from /usr/local/lib/php/20060613-debug/sqlite.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/sqlite.so
Reading symbols from /usr/local/lib/php/20060613-debug/sysvmsg.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/sysvmsg.so
Reading symbols from /usr/local/lib/php/20060613-debug/sysvshm.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/sysvshm.so
Reading symbols from /usr/local/lib/php/20060613-debug/tokenizer.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/tokenizer.so
Reading symbols from /usr/local/lib/php/20060613-debug/xml.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/xml.so
Reading symbols from /usr/local/lib/php/20060613-debug/xmlreader.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/xmlreader.so
Reading symbols from /usr/local/lib/php/20060613-debug/xmlrpc.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/xmlrpc.so
Reading symbols from /usr/local/lib/php/20060613-debug/xmlwriter.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/xmlwriter.so
Reading symbols from /usr/local/lib/php/20060613-debug/zip.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/zip.so
Reading symbols from /usr/local/lib/php/20060613-debug/zlib.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/zlib.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x080721ab in match (
eptr=0x2986c3b9 "port with brain damage.</p><p>According to reports in
the Daily Dispatch, Fara was having a quarrel with his fiancee Luanne
Kirsten who was at the club with him, when the bouncers
intervened.</p><p>Ki"...,
ecode=0x296e53ae "_",
mstart=0x2986c0ff "'<p>A 35-year-old East London man died today after
being in a coma following an assault by a night club bouncer, Eastern Cape
police said.</p><p>\"Chad Fara, died from head injuries in the intensive
ca"...,
offset_top=4, md=0xbfbfb330, ims=0, eptrb=0x0, flags=0, rdepth=1395) at
/usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:714
714 /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c: No
such file or directory.
in /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c
[New Thread 0x28759300 (LWP 100067)]
And now from a bt full:
#0 0x080721ab in match (
eptr=0x2986c3b9 "port with brain damage.</p><p>According to reports in
the Daily Dispatch, Fara was having a quarrel with his fiancee Luanne
Kirsten who was at the club with him, when the bouncers
intervened.</p><p>Ki"...,
ecode=0x296e53ae "_",
mstart=0x2986c0ff "'<p>A 35-year-old East London man died today after
being in a coma following an assault by a night club bouncer, Eastern Cape
police said.</p><p>\"Chad Fara, died from head injuries in the intensive
ca"...,
offset_top=4, md=0xbfbfb330, ims=0, eptrb=0x0, flags=0, rdepth=1395) at
/usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:714
rrc = 0
i = 0
c = 0
utf8 = 0
minimize = 0
possessive = 0
charptr = (const uschar *) 0x0
callpat = (const uschar *) 0x0
data = (const uschar *) 0x0
next = (const uschar *) 0x0
pp = (const unsigned char *) 0x0
prev = (const uschar *) 0x0
saved_eptr = (const unsigned char *) 0x0
new_recursive = {prevrec = 0x0, group_num = 0, after_call = 0x0,
save_start = 0x0, offset_save = 0x0, saved_max = 0}
cur_is_word = 0
condition = 0
prev_is_word = 0
original_ims = 0
prop_type = 0
prop_value = 0
prop_fail_result = 0
prop_category = 0
prop_chartype = 0
prop_script = 0
oclength = 0
occhars = "\000\000\000\000\000\000\000"
ctype = 0
length = 0
max = 0
min = 0
number = 1
offset = 2
op = 95
save_capture_last = 1
save_offset1 = 796
save_offset2 = 797
save_offset3 = 796
stacksave = {0 <repeats 30 times>}
newptrb = {epb_prev = 0x0, epb_saved_eptr = 0x0}
Now I have looked in my extensions.ini and I dont have a pcre extension
although I remember compiling it in - here is my extensions.ini:
extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=simplexml.so
extension=spl.so
extension=dom.so
extension=exif.so
extension=fileinfo.so
extension=filter.so
extension=gd.so
extension=gettext.so
extension=hash.so
extension=iconv.so
extension=json.so
extension=mbstring.so
extension=mcrypt.so
extension=mhash.so
extension=mysql.so
extension=mysqli.so
extension=odbc.so
extension=openssl.so
extension=pdf.so
extension=pdo.so
extension=pdo_sqlite.so
extension=posix.so
extension=session.so
extension=pspell.so
extension=snmp.so
extension=soap.so
extension=sockets.so
extension=sqlite.so
extension=sysvmsg.so
extension=sysvshm.so
extension=tokenizer.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=zip.so
extension=zlib.so
Any ideas as to why this is happening?
Thanks in advance
Ian