php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10353 Intermittent segfault on failed connection
Submitted: 2001-04-16 19:09 UTC Modified: 2007-04-04 20:09 UTC
From: torben@php.net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0 Latest CVS (16/04/2001) OS: Linux 2.2.14/Mandrake 7.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: torben@php.net
New email:
PHP Version: OS:

 

 [2001-04-16 19:09 UTC] torben@php.net
I'm getting repeated and intermittent segfaults on failed connections to a 
Hyperwave server.

Offending PHP script:
--------------------------
<?php
error_reporting(E_ALL);

/* I obviously used valid values for these. :) */
$server = 'nnn.nnn.nnn.nnn';
$port = '8080';
$user = 'username';
$pass = '**********';

if (!hw_connect($server, $port, $user, $pass)) {
    echo "Could not connect to Hyperwave server.\n";
}
?>

Configure script:
--------------------
./configure \
  --with-apxs=/usr/local/apache/bin/apxs \
  --prefix=/usr/local/apache \
  --with-pspell \
  --with-mysql=/usr \
  --with-gd \
  --with-xml \
  --with-zlib \
  --with-curl \
  --with-sablot \
  --with-java \
  --with-iodbc=/usr/local \
  --with-hyperwave \
  --enable-wddx \
  --enable-versioning \
  --enable-sysvshm \
  --enable-sysvsem \
  --enable-sockets \
  --enable-shmop \
  --enable-debug


Apache error_log tail:
--------------------------
~/work/php4
shanna% tail -f /usr/local/apache/logs/error_log 
[Tue Apr 17 00:00:22 2001] [notice] child pid 29379 exit signal Segmentation fault (11)
/home/torben/public_html/phptest/__phplist.html(23) : Fatal error - Could not initalize hyperwave connection
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:00:25 2001] [notice] child pid 29383 exit signal Segmentation fault (11)
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:00:26 2001] [notice] child pid 29388 exit signal Segmentation fault (11)
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:00:28 2001] [notice] child pid 29382 exit signal Segmentation fault (11)
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:00:29 2001] [notice] child pid 29429 exit signal Segmentation fault (11)
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:00:41 2001] [notice] child pid 29381 exit signal Segmentation fault (11)
/home/torben/public_html/phptest/__phplist.html(23) : Fatal error - Could not initalize hyperwave connection
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:01:00 2001] [notice] child pid 29432 exit signal Segmentation fault (11)
/home/torben/public_html/phptest/__phplist.html(23) : Fatal error - Could not initalize hyperwave connection
FATAL:  emalloc():  Unable to allocate 1515870798 bytes
[Tue Apr 17 00:01:04 2001] [notice] child pid 29405 exit signal Segmentation fault (11)


Backtrace:
-------------
/usr/local/apache
shanna% gdb bin/httpd
GNU gdb 19991116
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 "i586-mandrake-linux"...
(gdb) httpd -X -f conf/httpd.conf
Undefined command: "httpd".  Try "help".
(gdb) run -X -f conf/httpd.conf      
Starting program: /usr/local/apache/bin/httpd -X -f conf/httpd.conf

Program received signal SIGSEGV, Segmentation fault.
0x400cad61 in __kill () from /lib/libc.so.6
(gdb) bt
#0  0x400cad61 in __kill () from /lib/libc.so.6
#1  0x402c4905 in last_use () at lstat.c:44
#2  0x4032af1f in last_use () at lstat.c:44
#3  0x4032b00b in last_use () at lstat.c:44
#4  0x4032a772 in last_use () at lstat.c:44
#5  0x4031a104 in last_use () at lstat.c:44
#6  0x4031a4c9 in last_use () at lstat.c:44
#7  0x402d2327 in last_use () at lstat.c:44
#8  0x402e3860 in last_use () at lstat.c:44
#9  0x402fbc43 in last_use () at lstat.c:44
#10 0x402f72de in last_use () at lstat.c:44
#11 0x402f7feb in last_use () at lstat.c:44
#12 0x402f8033 in last_use () at lstat.c:44
#13 0x8074439 in ap_invoke_handler () at lstat.c:44
#14 0x80888cf in process_request_internal () at lstat.c:44
#15 0x808893a in ap_process_request () at lstat.c:44
#16 0x807fad6 in child_main () at lstat.c:44
#17 0x807fc91 in make_child () at lstat.c:44
#18 0x807fe0c in startup_children () at lstat.c:44
#19 0x808046d in standalone_main () at lstat.c:44
#20 0x8080c9c in main () at lstat.c:44
#21 0x400c49ee in __libc_start_main (main=0x8080904 <main>, argc=4, argv=0xbffffa44, init=0x804ed70 <_init>, 
    fini=0x80b61b4 <_fini>, rtld_fini=0x4000a570 <_dl_fini>, stack_end=0xbffffa3c)
    at ../sysdeps/generic/libc-start.c:90
(gdb) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-25 09:07 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 05 09:01:29 2024 UTC