php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5769 gzopen causes segmentation fault
Submitted: 2000-07-24 23:38 UTC Modified: 2000-08-01 05:47 UTC
From: danbeck at scott dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Redhat 6.1
Private report: No CVE-ID: None
 [2000-07-24 23:38 UTC] danbeck at scott dot net
Calling gzopen in a php4 shell script causes a segmentation fault.  Here is a backtrace that I generated:

GNU gdb 4.18
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 "i386-redhat-linux"...

warning: core file may not match specified executable file.
Core was generated by `php4 -q ./weblog_traffic.php -d 20000723 -n dealnews.com -l /www/logs/dealnews/'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
#0  0x80614c8 in php_fopen_url_wrapper (path=0x819715c "/www/logs/dealnews/weblogs//20000723_access.log.gz", mode=0x8161b7c "r", 
    options=4, issock=0x0, socketd=0x0, opened_path=0x0) at fopen-wrappers.c:1014
1014                    *issock = 0;
(gdb) bt
#0  0x80614c8 in php_fopen_url_wrapper (path=0x819715c "/www/logs/dealnews/weblogs//20000723_access.log.gz", mode=0x8161b7c "r", 
    options=4, issock=0x0, socketd=0x0, opened_path=0x0) at fopen-wrappers.c:1014
#1  0x8060190 in php_fopen_wrapper (path=0x819715c "/www/logs/dealnews/weblogs//20000723_access.log.gz", mode=0x8161b7c "r", 
    options=4, issock=0x0, socketd=0x0, opened_path=0x0) at fopen-wrappers.c:259
#2  0x80af941 in php_gzopen_wrapper (path=0x819715c "/www/logs/dealnews/weblogs//20000723_access.log.gz", mode=0x8161b7c "r", 
    options=4) at zlib.c:157
#3  0x80afeae in php_if_gzopen (ht=2, return_value=0x8188664, this_ptr=0x0, return_value_used=1) at zlib.c:254
#4  0x80dfbdc in execute (op_array=0x812f534) at ./zend_execute.c:1558
#5  0x805e05b in php_execute_script (primary_file=0xbffffa94) at main.c:1168
#6  0x805caa9 in main (argc=9, argv=0xbffffaf4) at cgi_main.c:664

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-01 05:47 UTC] andi@php.net
Can you please check the latest CVS version or snapshot at snaps.php.net? This problem should be fixed. Please reopen this bug report if you're still having the same problems.
Thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 06 20:00:01 2025 UTC