php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47692 Segmentation fault: using Calendar Application http://www.k5n.us/webcalendar.php
Submitted: 2009-03-17 15:15 UTC Modified: 2009-03-31 08:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: wolf at isp dot uni-luebeck dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.9 OS: opensuse 11.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wolf at isp dot uni-luebeck dot de
New email:
PHP Version: OS:

 

 [2009-03-17 15:15 UTC] wolf at isp dot uni-luebeck dot de
Description:
------------
Webserver Segmentation fault using Calendar Application form http://www.k5n.us/webcalendar.php

User with large calendar data is not able to log in anymore. Calendars with less data works fine

This error occurs with PHP version 5.2.9 PHP version 5.2.6 works fine

Both version are compiled on the same machine with following compile options
/configure --with-mysql=/usr/local/mysql --with-openssl  --enable-discard-path --prefix=/usr/local/php5_modul --with-config-file-path=/usr/local/php5_modul/lib --with-apxs2=/usr/local/apache2/bin/apxs --enable-exif --with-iconv --enable-mbstring=all --enable-mbregex --with-zlib --enable-soap --with-gd --with-gettext
 

Actual result:
--------------
gdb ./httpd
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
(gdb)  run -X -d /usr/local/apache2
Starting program: /usr/local/apache2/bin/httpd -X -d /usr/local/apache2
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0xb77f3354 in _zend_hash_quick_add_or_update (ht=0x970958c, arKey=0x8351360 "item", nKeyLength=5, h=262956212, pData=0xbf6520b0, nDataSize=4, pDest=0xbf6520f0, flag=1)
    at /usr/local/src/php-5.2.9/Zend/zend_hash.c:312
312             p = (Bucket *) pemalloc(sizeof(Bucket) - 1 + nKeyLength, ht->persistent);
(gdb) bt
#0  0xb77f3354 in _zend_hash_quick_add_or_update (ht=0x970958c, arKey=0x8351360 "item", nKeyLength=5, h=262956212, pData=0xbf6520b0, nDataSize=4, pDest=0xbf6520f0, flag=1)
    at /usr/local/src/php-5.2.9/Zend/zend_hash.c:312
#1  0xb784cd1e in ZEND_RECV_SPEC_HANDLER (execute_data=0xbf652720) at /usr/local/src/php-5.2.9/Zend/zend_execute.c:160
#2  0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#3  0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf652e60) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#4  0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#5  0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf6535a0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#6  0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#7  0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf653ce0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#8  0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#9  0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf654420) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#10 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#11 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf654b60) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#12 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#13 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf6552a0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#14 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#15 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf6559e0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#16 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#17 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf656120) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#18 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#19 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf656860) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#20 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#21 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf656fa0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#22 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#23 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf6576e0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#24 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#25 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf657e20) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#26 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#27 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf658560) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#28 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#29 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf658ca0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#30 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#31 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf6593e0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#32 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#33 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf659b20) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#34 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92

#35 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65a260) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#36 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#37 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65a9a0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#38 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#39 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65b0e0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#40 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#41 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65b820) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#42 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#43 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65bf60) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#44 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#45 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65c6a0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#46 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#47 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65cde0) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#48 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#49 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65d520) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#50 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92
#51 0xb781a856 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf65dc60) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:234
#52 0xb7808ad0 in execute (op_array=0x8539100) at /usr/local/src/php-5.2.9/Zend/zend_vm_execute.h:92


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-22 08:04 UTC] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2009-03-23 12:28 UTC] wolf at isp dot uni-luebeck dot de
Unfortunately php is crashing using a calendar application. it can be found at http://www.k5n.us/webcalendar.php .
This application is more or less used as black box.

I can provide access to our system or do some basic debugging if you have an idea what I can do to track down the problem.
 [2009-03-31 08:00 UTC] jani@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 04:01:31 2024 UTC