ID: 15169
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Solaris 2.6
PHP Version: 4.1.1
New Comment:

libpng-1.2.1 is used.

# ls -lai /usr/local/lib/libpng*
     79753 -rw-r--r--   1 root     other     205456 Jan 22 18:50
/usr/local/lib/libpng.a
     79886 lrwxrwxrwx   1 root     other         11 Jan 22 18:50
/usr/local/lib/libpng.so -> libpng.so.3
     79776 lrwxrwxrwx   1 root     other         17 Jan 22 18:50
/usr/local/lib/libpng.so.3 -> libpng.so.3.1.2.1
     79775 -rwxr-xr-x   1 root     other     177504 Jan 22 18:50
/usr/local/lib/libpng.so.3.1.2.1



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

[2002-01-22 13:19:20] [EMAIL PROTECTED]

What libpng version are you using?
Try with latest version. (1.2.1

http://www.libpng.org/pub/png/libpng.html

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

[2002-01-22 13:04:15] [EMAIL PROTECTED]

I built httpd daemon with php-4.1.1 with the following shared
libraries

# ldd /usr/local/apache/bin/httpd
        libpam.so.1 =>   /usr/lib/libpam.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libpdf.so.1 =>   /usr/local/lib/libpdf.so.1
        libtiff.so.3 =>  /usr/local/lib/libtiff.so.3
        libpng.so.3 =>   /usr/local/lib/libpng.so.3
        libz.so =>       /usr/local/lib/libz.so
        libmysqlclient.so.6 =>  
/usr/local/mysql/lib/libmysqlclient.so.6
        libmcrypt.so.4 =>        /usr/local/lib/libmcrypt.so.4
        libltdl.so.3 =>  /usr/local/lib/libltdl.so.3
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libt1.so.1 =>    /usr/local/lib/libt1.so.1
        libX11.so.4 =>   /usr/lib/libX11.so.4
        libXpm.so.4.10 =>        /usr/lib/libXpm.so.4.10
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libexpat.so.0 =>         /usr/local/lib/libexpat.so.0
        libucb.so.1 =>   /usr/ucblib/libucb.so.1
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

If I execute the following php script

<?php
     $im = ImageCreateFromPng("testbild.png");
     ImagePng($im);
?>

the httpd daemon died with segmentation fault:
[Tue Jan 22 18:51:36 2002] [notice] child pid 26589 exit signal
Segmentation Fault (11)

#gdb /usr/local/apache/bin/httpd
GNU gdb 4.17
Copyright 1998 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 "sparc-sun-solaris2.6"...(no debugging
symbols found)...
(gdb) run -X -f /usr/local/apache/conf/httpd.conf
Starting program: /usr/local/apache/bin/httpd -X -f
/usr/local/apache/conf/httpd.conf
(no debugging symbols found)...(no debugging symbols found)...warning:
Lowest section in /usr/lib/libintl.so.1 is .dynamic at 0x74

Program received signal SIGSEGV, Segmentation fault.
0x59d3fec4 in ?? ()
(gdb) bt
#0  0x59d3fec4 in ?? ()
#1  0xef5f721c in png_create_write_struct_2 ()
#2  0xef5f7e28 in png_create_write_struct ()
#3  0x1ed6b0 in jpeg_std_error ()
#4  0x667c0 in _init ()
#5  0x68660 in _init ()
#6  0x13821c in flock ()
#7  0x116d98 in flock ()
#8  0x59f6c in _init ()
#9  0x121214 in flock ()
#10 0x564cc in _init ()
#11 0x56538 in _init ()
#12 0x19596c in flock ()
#13 0x1b3df8 in flock ()
#14 0x1b3e7c in flock ()
#15 0x1a72d0 in flock ()
#16 0x1a758c in flock ()
#17 0x1a77a8 in flock ()
#18 0x1a81dc in flock ()
#19 0x1a8e3c in flock ()
(gdb) q


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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to