PHP 4.0 Bug #4197: PHP4 crashes immediately upon trying to display a .php4 page
| From: | thomas at biskup dot net | Date: | Thu, 20 Apr 2000 14:50:20 +0000 |
| Subject: | PHP 4.0 Bug #4197: PHP4 crashes immediately upon trying to display a .php4 page | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18054@lists.php.net to get a copy of this message | ||
From: thomas@biskup.net
Operating system: Windows NT 4.0 (Service Pack 4)
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Reproduceable crash
Bug description: PHP4 crashes immediately upon trying to display a .php4 page
For development purposes I have installed Apache Webserver 1.3.9 on my NT box. I'm already
running PHP3 successfully and now wnated to switch to PHP4. Thus I downloaded the RC1 and installed
it on my system in the same way (basically) as PHP3.
Then I wrote the following tiny test page (named test.php4):
<html>
<body>
<?PHP
phpinfo();
?>
</body>
</html>
I started my Apache Webserver, then called up Netscaope 4.0 and entered "http://localhost:/test.php4" as the URL.
Immediately afterwards I received a Doctor Watson crash. The error.log of Netscape contained the
following line:
[Thu Apr 20 16:39:00 2000] [error] [client 127.0.0.1] Premature end of script headers:
d:/programme/php4/php.exe
The Dr. Watson log contains the following text:
Anwendungsausnahme aufgetreten:
Anwendung: (pid=166)
Wann: 4/20/2000 @ 16:38:48.431
Ausnahmenummer: c0000005 (Zugriffsverletzung)
*----> Systeminformationen <----*
Computer-Name: SARANXIS
Benutzername: Administrator
Prozessoranzahl: 1
Prozessortyp: x86 Family 6 Model 3 Stepping 4
Windows NT-Version: 4.0
Aktuelles Build: 1381
Service Pack: 4
Aktueller Typ: Uniprocessor Free
Firma: ADOM Entertainment
Besitzer: Thomas Biskup
*----> Task-Liste <----*
0 Idle.exe
2 System.exe
20 smss.exe
30 CSRSS.exe
34 WINLOGON.exe
40 SERVICES.exe
43 LSASS.exe
70 SPOOLSS.exe
61 mgasc.exe
68 mgactrl.exe
79 mysqld.exe
85 RPCSS.exe
93 TAPISRV.exe
98 RASMAN.exe
106 PSTORES.exe
124 NDDEAGNT.exe
130 EXPLORER.exe
132 systray.exe
136 mgaqdesk.exe
102 mgahook.exe
134 fpdisp4.exe
138 aim.exe
147 FINDFAST.exe
149 OSA.exe
151 TASKMGR.exe
125 NotePro.exe
128 WORDPAD.exe
73 CMD.exe
161 Apache.exe
169 netscape.exe
157 Apache.exe
229 java.exe
166 php.exe
164 DRWTSN32.exe
0 _Total.exe
(00400000 - 00400000)
(77f70000 - 77fce000) dll\ntdll.dbg
(10000000 - 10000000)
(77f00000 - 77f62000) dll\kernel32.dbg
(776c0000 - 776c8000) dll\wsock32.dbg
(776a0000 - 776b4000) dll\ws2_32.dbg
(78000000 - 78048000) msvcrt.dbg
(77e70000 - 77ec4000) dll\user32.dbg
(77ed0000 - 77efc000) dll\gdi32.dbg
(77dc0000 - 77dff000) dll\advapi32.dbg
(77e10000 - 77e67000) dll\rpcrt4.dbg
(77690000 - 77697000) dll\ws2help.dbg
(77b80000 - 77c35000) dll\ole32.dbg
(77ae0000 - 77b72000) oleaut32.dbg
(04a50000 - 04a8c000) odbc32.DBG
(72f50000 - 72fc4000) COMCTL32.dbg
(77c40000 - 77d80000) dll\shell32.dbg
(77d80000 - 77db3000) dll\comdlg32.dbg
(52180000 - 5218b000) dll\version.dbg
(779b0000 - 779b8000) dll\lz32.dbg
(780a0000 - 780a0000)
(04a00000 - 04a00000)
Statusabbild für Thread-ID 0xe3
eax=48544150 ebx=00000028 ecx=00410b30 edx=4152545f esi=00410740 edi=00303300
eip=10073906 esp=0012fe70 ebp=0042ee70 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202
Funktion: <nosymbols>
100738ef eb17 jmp 10073908
100738f1 85c0 test eax,eax
100738f3 740c jz 10073901
100738f5 3b7704 cmp esi,[edi+0x4] ds:01361d06=????????
100738f8 7507 jnz 10073901
100738fa 8b0e mov ecx,[esi] ds:00410740=48544150
100738fc 894f04 mov [edi+0x4],ecx ds:01361d06=????????
100738ff eb07 jmp 10073908
10073901 8b5604 mov edx,[esi+0x4] ds:0146f146=????????
10073904 8b06 mov eax,[esi] ds:00410740=48544150
FEHLER ->10073906 8902 mov [edx],eax ds:4152545f=????????
10073908 8b06 mov eax,[esi] ds:00410740=48544150
1007390a 85c0 test eax,eax
1007390c 7406 jz 10073914
1007390e 8b4e04 mov ecx,[esi+0x4] ds:0146f146=????????
10073911 894804 mov [eax+0x4],ecx ds:495a2b56=????????
10073914 56 push esi
10073915 ff157cf10910 call dword ptr [1009f17c] ds:1009f17c=7800138a
1007391b a16cc60d10 mov eax,[100dc66c] ds:100dc66c=00000000
10073920 83c404 add esp,0x4
10073923 85c0 test eax,eax
10073925 7402 jz 10073929
*----> Stack Back Trace <----*
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0042ee70 72676f72 656d6d61 6170615c 20656863 756f7267 <nosymbols>
*----> Raw Stack Dump <----*
0012fe70 a3 ee 42 00 90 0d 41 00 - 79 33 00 10 50 07 41 00 ..B...A.y3..P.A.
0012fe80 01 00 00 00 90 0d 41 00 - 4c ff 12 00 f0 15 41 00 ......A.L.....A.
0012fe90 90 0d 41 00 2a 07 41 00 - 90 2b 41 00 40 07 41 00 ..A.*.A..+A.@.A.
0012fea0 40 ee 42 00 b4 30 40 00 - 0f 00 00 00 20 ee 42 00 @.B..0@..... .B.
0012feb0 52 2d 00 78 40 07 41 00 - b4 30 40 00 0f 00 00 00 R-.x@.A..0@.....
0012fec0 01 00 00 00 91 11 00 78 - 30 08 41 00 4c ff 12 00 .......x0.A.L...
0012fed0 b5 6a 00 78 0c 00 00 00 - 90 0d 41 00 7a 17 40 00 .j.x......A.z.@.
0012fee0 94 17 40 00 00 00 00 00 - 00 00 00 00 00 f0 fd 7f ..@.............
0012fef0 90 f1 03 78 03 00 00 00 - e5 11 00 78 a8 00 41 00 ...x.......x..A.
0012ff00 50 00 00 00 02 00 00 00 - c8 30 40 00 30 00 00 00 P........0@.0...
0012ff10 70 f5 03 78 d8 23 04 78 - c0 ff 12 00 00 00 00 00 p..x.#.x........
0012ff20 f0 15 41 00 90 0d 41 00 - 01 00 00 00 01 00 00 00 ..A...A.........
0012ff30 00 00 00 00 00 00 00 00 - 01 00 00 00 00 00 00 00 ................
0012ff40 50 22 30 00 90 2b 41 00 - 00 00 00 00 c0 ff 12 00 P"0..+A.........
0012ff50 2b 1e 40 00 01 00 00 00 - 00 0b 41 00 a0 01 41 00 +.@.......A...A.
0012ff60 00 30 40 00 04 30 40 00 - a4 ff 12 00 94 ff 12 00 .0@..0@.........
0012ff70 a0 ff 12 00 00 00 00 00 - 98 ff 12 00 08 30 40 00 .............0@.
0012ff80 0c 30 40 00 00 00 00 00 - 00 00 00 00 00 f0 fd 7f .0@.............
0012ff90 05 00 00 c0 00 0b 41 00 - 00 00 00 00 37 dd 11 80 ......A.....7...
0012ffa0 a0 01 41 00 01 00 00 00 - 84 ff 12 00 b8 fc 12 00 ..A.............
(sorry for the german texts).
That's it. Reproducable every time. I'd appreciate any hint on what I can do to get PHP4
to work as I'm very eager to start developing my new website project with this wonderful
scripting language.