 |
 |
PHP - PEAR Class (DB_DataObject) suddenly causing Apache to crash?
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
Hi,
I've just noticed that a page I wrote in the autumn has suddenly stopped working.
Not only that - but accessing the page causes Apache to crash.
The page in question uses PEAR's DB_DataObjects class, which according to PEAR is up to date.
I haven't changed the source of the page at all since the autumn, and the only thing I can think of that changed since then was that I updated PHP (PHP Version 4.3.10 www.entropy.ch Release 1) to avoid the recent PHPBB vuln.
Below is the crash log:
I'm a bit lost here - does anyone have any advice for tracking down the problem?
Thanks.
Code:
Host Name: MonkeyServer.local
Date/Time: 2005-01-10 14:38:57 +0000
OS Version: 10.3.7 (Build 7S215)
Report Version: 2
Command: httpd
Path: /usr/sbin/httpd
Version: ??? (???)
PID: 17366
Thread: 0
Exception: EXC_BAD_INSTRUCTION (0x0002)
Code[0]: 0x00000002
Code[1]: 0x00120000
Thread 0 Crashed:
0 <<00000000>> 0x00120000 0 + 0x120000
1 libphp4.so 0x022c0cc4 execute + 0x3750
2 libphp4.so 0x022a6e18 zend_execute_scripts + 0x140
3 libphp4.so 0x0225d6ac php_execute_script + 0x350
4 libphp4.so 0x022c62c0 apache_php_module_main + 0xfc
5 libphp4.so 0x022c7628 send_php + 0x3a8
6 libphp4.so 0x022c76a8 send_parsed_php + 0x28
7 httpd 0x0000dbbc ap_invoke_handler + 0xe8
8 httpd 0x00017c6c process_request_internal + 0x280
9 mod_dir.so 0x00082d40 handle_dir + 0x1f4
10 httpd 0x0000dbbc ap_invoke_handler + 0xe8
11 httpd 0x00017c6c process_request_internal + 0x280
12 httpd 0x00017cec ap_process_request + 0x48
13 httpd 0x00006a10 child_main + 0x69c
14 httpd 0x00006c74 make_child + 0x138
15 httpd 0x00006fa4 perform_idle_server_maintenance + 0x23c
16 httpd 0x00007580 standalone_main + 0x3c4
17 httpd 0x00007c24 main + 0x41c
18 httpd 0x000027a8 _start + 0x188
19 httpd 0x0000261c start + 0x30
PPC Thread State:
srr0: 0x00120000 srr1: 0x0008f030 vrsave: 0x00000000
cr: 0x24000224 xer: 0x20000004 lr: 0x022bd520 ctr: 0x00120000
r0: 0x0085a020 r1: 0xbfffe040 r2: 0x00120000 r3: 0x00000001
r4: 0x0019c9d0 r5: 0x0019ca20 r6: 0x00000001 r7: 0x0085a020
r8: 0x00000000 r9: 0x01100b80 r10: 0x00000001 r11: 0x0085a010
r12: 0x00120000 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0xffffffff r23: 0x00056d70
r24: 0x00000003 r25: 0x00000002 r26: 0x00853b98 r27: 0x000001f4
r28: 0x00000017 r29: 0x0085a0b0 r30: 0xbfffe040 r31: 0x022bd4bc
Binary Images Description:
0x1000 - 0x4ffff httpd /usr/sbin/httpd
0x6b000 - 0x6dfff mod_log_config.so /usr/libexec/httpd/mod_log_config.so
0x70000 - 0x71fff mod_mime.so /usr/libexec/httpd/mod_mime.so
0x74000 - 0x76fff mod_status.so /usr/libexec/httpd/mod_status.so
0x7b000 - 0x7ffff mod_negotiation.so /usr/libexec/httpd/mod_negotiation.so
0x82000 - 0x82fff mod_dir.so /usr/libexec/httpd/mod_dir.so
0x85000 - 0x86fff mod_cgi.so /usr/libexec/httpd/mod_cgi.so
0x8b000 - 0x90fff mod_include.so /usr/libexec/httpd/mod_include.so
0x94000 - 0x98fff mod_autoindex.so /usr/libexec/httpd/mod_autoindex.so
0x9c000 - 0x9cfff mod_asis.so /usr/libexec/httpd/mod_asis.so
0x9f000 - 0xa1fff mod_imap.so /usr/libexec/httpd/mod_imap.so
0xa4000 - 0xa4fff mod_actions.so /usr/libexec/httpd/mod_actions.so
0xa7000 - 0xa7fff mod_userdir.so /usr/libexec/httpd/mod_userdir.so
0xaa000 - 0xabfff mod_alias.so /usr/libexec/httpd/mod_alias.so
0xae000 - 0xaffff mod_access.so /usr/libexec/httpd/mod_access.so
0xb2000 - 0xb3fff mod_auth.so /usr/libexec/httpd/mod_auth.so
0xb6000 - 0xb7fff mod_digest.so /usr/libexec/httpd/mod_digest.so
0xbb000 - 0xc4fff mod_rewrite.so /usr/libexec/httpd/mod_rewrite.so
0xc8000 - 0xc9fff mod_setenvif.so /usr/libexec/httpd/mod_setenvif.so
0xcc000 - 0xccfff mod_hfs_apple.so /usr/libexec/httpd/mod_hfs_apple.so
0xd7000 - 0xdbfff mod_rendezvous_apple.so /usr/libexec/httpd/mod_rendezvous_apple.so
0x205000 - 0x20afff libungif.4.dylib /usr/local/php/lib/libungif.4.dylib
0x219000 - 0x21ffff libintl.2.dylib /usr/local/php/lib/libintl.2.dylib
0x26a000 - 0x286fff libexpat.0.dylib /usr/local/php/lib/libexpat.0.dylib
0x2bb000 - 0x2d1fff libmhash.2.dylib /usr/local/php/lib/libmhash.2.dylib
0x405000 - 0x420fff libpng12.0.1.2.5.dylib /usr/local/php/lib/libpng12.0.1.2.5.dylib
0x428000 - 0x434fff libexslt.0.dylib /usr/local/php/lib/libexslt.0.dylib
0x468000 - 0x488fff libmcrypt.4.dylib /usr/local/php/lib/libmcrypt.4.dylib
0x5de000 - 0x6a9fff libiconv.2.dylib /usr/local/php/lib/libiconv.2.dylib
0x6ec000 - 0x715fff libxslt.1.dylib /usr/local/php/lib/libxslt.1.dylib
0x2008000 - 0x25dbfff libphp4.so /usr/local/php/libphp4.so
0x27cc000 - 0x2896fff libpdf.5.dylib /usr/local/php/lib/libpdf.5.dylib
0x2c78000 - 0x2c95fff libcurl.2.dylib /usr/local/php/lib/libcurl.2.dylib
0x2e3c000 - 0x2ebdfff libsablot.0.dylib /usr/local/php/lib/libsablot.0.dylib
0x34ad000 - 0x3500fff libfreetype.6.3.7.dylib /usr/local/php/lib/libfreetype.6.3.7.dylib
0x82920000 - 0x82936fff libiodbc.2.1.6.dylib /usr/lib/libiodbc.2.1.6.dylib
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x90000000 - 0x90122fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90190000 - 0x9023dfff com.apple.CoreFoundation 6.3.6 (299.33) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90280000 - 0x904f9fff com.apple.CoreServices.CarbonCore 10.3.6 (10.3.5) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90570000 - 0x905dffff com.apple.framework.IOKit 1.3.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90610000 - 0x9069afff com.apple.CoreServices.OSServices 3.0.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90700000 - 0x90700fff com.apple.CoreServices 10.3 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90720000 - 0x90787fff com.apple.audio.CoreAudio 2.1.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.4 /System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90910000 - 0x90983fff com.apple.DesktopServices 1.2.2 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1 (???) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x90da0000 - 0x90dc0fff com.apple.DirectoryService.Framework 1.7 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x910b0000 - 0x91101fff com.apple.bom 1.2.5 (63.2) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x912a0000 - 0x912bdfff com.apple.audio.SoundManager 3.8 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91320000 - 0x913defff ColorSync /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91460000 - 0x91473fff com.apple.speech.synthesis.framework 3.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x914a0000 - 0x91509fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x91560000 - 0x91619fff com.apple.QD 3.4.65 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91670000 - 0x916a8fff com.apple.AE 1.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917e0000 - 0x917f0fff com.apple.speech.recognition.framework 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x91810000 - 0x9182afff com.apple.openscripting 1.2.1 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x91850000 - 0x91860fff com.apple.ImageCapture 2.1.5 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91890000 - 0x9189cfff com.apple.help 1.0.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x918c0000 - 0x918cdfff com.apple.CommonPanels 1.2.1 (1.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x918f0000 - 0x9193efff com.apple.print.framework.Print 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x91990000 - 0x9199bfff com.apple.securityhi 1.2 (90) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x919c0000 - 0x91a33fff com.apple.NavigationServices 3.3.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x91ab0000 - 0x91ac4fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91ae0000 - 0x91aebfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91b10000 - 0x91b2afff libPDFRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x91b50000 - 0x91b5ffff libPSRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x91b80000 - 0x91b93fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x92070000 - 0x92096fff com.apple.FindByContent 1.4 (1.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x920c0000 - 0x922a7fff com.apple.security 2.3 (176) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5 (98.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x92740000 - 0x92777fff com.apple.CFNetwork 1.2.1 (7) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x927d0000 - 0x92b54fff com.apple.HIToolbox 1.3.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92d30000 - 0x92d80fff com.apple.HIServices 1.4.1 (0.0.1d1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x935d0000 - 0x938a8fff com.apple.CoreGraphics 1.203.27 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x939a0000 - 0x939b4fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x94000000 - 0x9403cfff com.apple.LDAPFramework 1.3.3 (37.3.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x94060000 - 0x94078fff com.apple.WebServices 1.1.1 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x94500000 - 0x9450ffff libsasl2.2.0.1.dylib /usr/lib/libsasl2.2.0.1.dylib
0x945b0000 - 0x945b9fff libz.1.dylib /usr/lib/libz.1.dylib
0x94610000 - 0x9462afff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x94650000 - 0x946affff com.apple.SearchKit 1.0.2 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x94a30000 - 0x94af5fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x94b20000 - 0x94badfff com.apple.ink.framework 101.1.3 (55.10) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x968d0000 - 0x969b2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x96b40000 - 0x96b6efff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x96bf0000 - 0x96c7ffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x96cb0000 - 0x96d9efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x96dc0000 - 0x96dd3fff libpam.1.dylib /usr/lib/libpam.1.dylib
0x97510000 - 0x97518fff libbsm.dylib /usr/lib/libbsm.dylib
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
http://pear.php.net/manual/en/packag...ro-purpose.php
Zend Optimizer: due to a bug in the optimizer, you will have to either reduce the optimization level, or define the constant DB_DATAOBJECT_NO_OVERLOAD = 0 otherwise PHP may segfault
Pass by Reference, due to a unfixable bug in PHP4, you can not use overload with pass-by-reference arguments (It works OK in PHP5), If you need pass-by-reference, define the constant DB_DATAOBJECT_NO_OVERLOAD = 0
Does that help?
|
|
Computer thez nohhh...
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
Fantastic, thanks Simon - worked well. (and right at the front of the docs. d'oh!)
It seems odd that the bug was not exposed when I was using the older version of PHP.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Originally posted by Diggory Laycock:
Fantastic, thanks Simon - worked well. (and right at the front of the docs. d'oh!)
It seems odd that the bug was not exposed when I was using the older version of PHP.
Lucky find, really. Just happened to be browsing that class yesterday. Glad it's fixed now.
|
|
Computer thez nohhh...
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |