ID:               40641
 User updated by:  jfgingras at cegep-ste-foy dot qc dot ca
 Reported By:      jfgingras at cegep-ste-foy dot qc dot ca
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: FreeBSD 6.1-RELEASE
 PHP Version:      5.2.1
 New Comment:

I should I have read more before posting my last comment, seems like
the FreeBSD port only support i386 and the amd64 support is only for
Linux right now.

Guess I'll have to forget about open_basedir for now :(


Previous Comments:
------------------------------------------------------------------------

[2007-02-28 14:32:39] jfgingras at cegep-ste-foy dot qc dot ca

Well, the portage of Valgrind under FreeBSD 6.1 is only for i386 and it
complains because I'm on a amd64. So I can't get valgrind to compile.
I'll try the source directly from http://valgrind.org/, they saids it
support amd64. Stay tune!

------------------------------------------------------------------------

[2007-02-26 20:25:26] [EMAIL PROTECTED]

Please check if valgrind is able to find something there.

------------------------------------------------------------------------

[2007-02-26 20:14:31] jfgingras at cegep-ste-foy dot qc dot ca

Ok, I wasn't able to generate a backtrace even if I rebuild Apache and
PHP with debug option, I can't get a core file. Anyway, like I said
earlier, PHP without extionsion doesn't crash if open_basedir is
defined, but as soon as I build the following extentions, I receive a
Bus error from httpd:

php5-bcmath-5.2.1_2 The bcmath shared extension for php
php5-bz2-5.2.1_2    The bz2 shared extension for php
php5-calendar-5.2.1_2 The calendar shared extension for php
php5-ctype-5.2.1_2  The ctype shared extension for php
php5-dom-5.2.1_2    The dom shared extension for php
php5-extensions-1.1 A "meta-port" to install PHP extensions
php5-gd-5.2.1_2     The gd shared extension for php
php5-gettext-5.2.1_2 The gettext shared extension for php
php5-iconv-5.2.1_2  The iconv shared extension for php
php5-imap-5.2.1_2   The imap shared extension for php
php5-mbstring-5.2.1_2 The mbstring shared extension for php
php5-mcrypt-5.2.1_2 The mcrypt shared extension for php
php5-mhash-5.2.1_2  The mhash shared extension for php
php5-mysql-5.2.1_2  The mysql shared extension for php
php5-mysqli-5.2.1_2 The mysqli shared extension for php
php5-odbc-5.2.1_2   The odbc shared extension for php
php5-pcre-5.2.1_2   The pcre shared extension for php
php5-pdo-5.2.1_2    The pdo shared extension for php
php5-pdo_sqlite-5.2.1_2 The pdo_sqlite shared extension for php
php5-posix-5.2.1_3  The posix shared extension for php
php5-session-5.2.1_2 The session shared extension for php
php5-simplexml-5.2.1_2 The simplexml shared extension for php
php5-spl-5.2.1_2    The spl shared extension for php
php5-sqlite-5.2.1_2 The sqlite shared extension for php
php5-tidy-5.2.1_2   The tidy shared extension for php
php5-tokenizer-5.2.1_2 The tokenizer shared extension for php
php5-xml-5.2.1_2    The xml shared extension for php
php5-xmlreader-5.2.1_2 The xmlreader shared extension for php
php5-xmlwriter-5.2.1_2 The xmlwriter shared extension for php
php5-zlib-5.2.1_2   The zlib shared extension for php
phpMyAdmin-2.9.0.1  A set of PHP-scripts to manage MySQL over the web
pecl-filter-0.11.0  PHP extension for safely dealing with input
parameters
pecl-hash-1.3       HASH Message Digest Framework for PHP
pecl-json-1.2.1     PHP extension for JSON (JavaScript Object Notation)
seriali
pecl-pdflib-2.1.2   A PECL extension to create PDF on the fly

I did exactly what was written on this page,
http://bugs.php.net/bugs-generating-backtrace.php, but no core file and
gdb can't stand httpd so no backtrace. Any help will be most welcome.

Thx

------------------------------------------------------------------------

[2007-02-26 19:12:42] jfgingras at cegep-ste-foy dot qc dot ca

Well, if that can help.. PHP with --enable-debug and no extension
doesn't crash if open_basedir is defined. I'll have to test this with
--disable-debug.

I'm buidling the extensions we use for the debug version and see if I
can reproduce the crash.

------------------------------------------------------------------------

[2007-02-26 18:32:06] jfgingras at cegep-ste-foy dot qc dot ca

I'll keep trying generate a backtrace for httpd, but gdb doesn't like
that very much. Since I can't stop our production server, I have create
an exact duplicate of httpd.conf and name it httpd-debug.conf and simply
change the Listen directive and my VirtualHost.

I launch httpd directly from command line like this:

/usr/local/sbin/httpd -X -f /usr/local/etc/apache2/httpd-debug.conf

And the server start ok, and crash as expected when I enter a directory
with open_basedir defined.

But I can't manage to start it via gdb, here's what happen:

[EMAIL PROTECTED] apache2]# gdb /usr/local/sbin/httpd
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 "amd64-marcel-freebsd"...(no debugging
symbols found)...
(gdb) run -X -f /usr/local/etc/apache2/httpd-debug.conf
Starting program: /var/bd/pol/usr/local/sbin/httpd -X -f
/usr/local/etc/apache2/httpd-debug.conf
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...gdb in realloc(): error: junk
pointer, too high to make sense
Abort trap: 6 (core dumped)
[EMAIL PROTECTED] apache2]#

I'm kinda lost right now. I'll see if I can rebuild PHP with
--enable-debug

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40641

-- 
Edit this bug report at http://bugs.php.net/?id=40641&edit=1

Reply via email to