devel/pear-1.6.2

Doug Sampson dougs at dawnsign.com
Sun Oct 21 17:10:51 PDT 2007


> What about reinstalling the PHP port with the DEBUG option 
> enabled and then
> running gdb -c php.core `which php` if it still segfaults to 
> see where it
> does so?
> 

I recompiled lang/php5 with the debug option enabled and ran 'make install'
in devel/pear. This is what I got:

corvus-root@/usr/ports/devel/pear: make install
===>  Installing for pear-1.6.2
===>   pear-1.6.2 depends on file: /usr/local/include/php/main/php.h - found
===>   pear-1.6.2 depends on file: /usr/local/lib/php/20060613-debug/pcre.so
- found
===>   pear-1.6.2 depends on file: /usr/local/lib/php/20060613-debug/xml.so
- found
===>   Generating temporary packing list
===>  Checking if devel/pear already installed
Using local package: PEAR-stable......ok
Using local package: Archive_Tar-stable....ok
Using local package: Console_Getopt-stable....ok
Using local package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............(local) ok
Bootstrapping: Console_Getopt.........(local) ok
Extracting installer..................ok
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >=
0.5.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >=
0.4.0)
PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted at
/usr/ports/lang/php5/work/php-5.2.4/Zend/zend_opcode.c:48 (tried to allocate
77824 bytes) in /tmp/gopenVer7q/PEAR/PackageFile/Generator/v1.php on line
628

Fatal error: Allowed memory size of 8388608 bytes exhausted at
/usr/ports/lang/php5/work/php-5.2.4/Zend/zend_opcode.c:48 (tried to allocate
77824 bytes) in /tmp/gopenVer7q/PEAR/PackageFile/Generator/v1.php on line
628
*** Signal 11

Stop in /usr/ports/devel/pear.

corvus-root@/usr/ports/devel/pear: gdb -c php.core `which php`
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
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 /usr/local/lib/php/20060613-debug/ctype.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/ctype.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/tidy.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/tidy.so
Reading symbols from /usr/local/lib/libtidy-0.99.so.0...done.
Loaded symbols for /usr/local/lib/libtidy-0.99.so.0
Reading symbols from /usr/local/lib/php/20060613-debug/bcmath.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/bcmath.so
Reading symbols from /usr/local/lib/php/20060613-debug/mbstring.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/mbstring.so
Reading symbols from /usr/local/lib/php/20060613-debug/mailparse.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/mailparse.so
Reading symbols from /usr/local/lib/php/20060613-debug/session.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/session.so
Reading symbols from /usr/local/lib/php/20060613-debug/pcre.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/pcre.so
Reading symbols from /usr/local/lib/php/20060613-debug/filter.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/filter.so
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/local/lib/php/20060613-debug/exif.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/exif.so
Reading symbols from /usr/local/lib/php/20060613-debug/dba.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/dba.so
Reading symbols from /usr/local/lib/libdb-4.6.so.0...done.
Loaded symbols for /usr/local/lib/libdb-4.6.so.0
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
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/xmlwriter.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/xmlwriter.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/json.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/json.so
Reading symbols from /usr/local/lib/php/20060613-debug/readline.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/readline.so
Reading symbols from /usr/lib/libhistory.so.6...done.
Loaded symbols for /usr/lib/libhistory.so.6
Reading symbols from /lib/libreadline.so.6...done.
Loaded symbols for /lib/libreadline.so.6
Reading symbols from /lib/libncurses.so.6...done.
Loaded symbols for /lib/libncurses.so.6
Reading symbols from /usr/local/lib/php/20060613-debug/mhash.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/mhash.so
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Loaded symbols for /usr/local/lib/libmhash.so.2
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/ncurses.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/ncurses.so
Reading symbols from /usr/lib/libpanel.so.3...done.
Loaded symbols for /usr/lib/libpanel.so.3
Reading symbols from /usr/local/lib/php/20060613-debug/curl.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/curl.so
Reading symbols from /usr/local/lib/libcurl.so.4...done.
Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/lib/libssl.so.4...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
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/gd.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/gd.so
Reading symbols from /usr/local/lib/libt1.so.5...done.
Loaded symbols for /usr/local/lib/libt1.so.5
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/php/20060613-debug/pdf.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/pdf.so
Reading symbols from /usr/local/lib/libpdf.so.8...done.
Loaded symbols for /usr/local/lib/libpdf.so.8
Reading symbols from /usr/local/lib/php/20060613-debug/simplexml.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/simplexml.so
Reading symbols from /usr/local/lib/php/20060613-debug/spl.so...done.
Loaded symbols for /usr/local/lib/php/20060613-debug/spl.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000 in ?? ()
[New LWP 100113]
(gdb) quit

Not sure what to do at this point- it's all new to me.

~Doug


More information about the freebsd-ports mailing list