php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60828 crash with specific php.ini
Submitted: 2012-01-20 21:39 UTC Modified: 2015-07-19 04:22 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: bugzilla33 at gmail dot com Assigned: mattficken (profile)
Status: No Feedback Package: Reproducible crash
PHP Version: 5.4.0RC6 OS: Win 7 32/64 bit
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-01-20 21:39 UTC] bugzilla33 at gmail dot com
Description:
------------
1. use Apache 2.2.21 VC9
2. download http://windows.php.net/downloads/qa/php-5.4.0RC6-Win32-VC9-x86.zip
3. unpack to c:\php5\
4. use php.ini-production -> php.ini
5. change php.ini:
   extension_dir = "c:\php5\ext"
   extension=php_gd2.dll
   extension=php_mbstring.dll
   extension=php_openssl.dll
   extension=php_sockets.dll
6. or download php.ini from http://host0001.webd.pl/bugs/php/crash.zip
7. restart apache
8. run test script

Test script:
---------------
<?php
 header('Location: http://php.net/');
?>

or

<?php
 phpinfo();
?>

Expected result:
----------------
no crush like 5.4 RC4 - bug introduced in PHP 5.4 RC5

Actual result:
--------------
crush on first (second) script run after apache restart

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-21 01:29 UTC] anon at anon dot anon
A possibly related issue: it also crashes with php_exif.dll listed before php_mbstring.dll. It has done for years.
 [2012-01-21 09:28 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2012-01-21 09:28 UTC] pajoye@php.net
It is not a crash but a configuration. mbstring has to be loaded before exif. 
That means you have to put

extension=php_mbstring.dll

before

extension=php_exif.dll

Also cannot reproduce any crash using header. Double check your error log for 
the actual error message.
 [2012-01-21 10:35 UTC] bugzilla33 at gmail dot com
I do not understand - in my case php_exif.dll is not loaded.

I will test this bug on Monday on another machine.
 [2012-01-21 19:21 UTC] anon at anon dot anon
@pajoye
Fix it then so that the internal loading order is not strictly tied to the order in php.ini. By the way, they're listed in the ini file in the broken order by default.
 [2012-01-21 19:39 UTC] pajoye@php.net
You are welcome to contribute a patch.

However there is no crash but a warning, as I told you already, check your logs.
 [2012-01-22 16:08 UTC] bugzilla33 at gmail dot com
only Apache log after crash:

[Sun Jan 22 17:03:51 2012] [notice] Parent: child process exited with status 255 -- Restarting.

php_errors.log does not appear anything new
 [2012-01-22 16:15 UTC] pajoye@php.net
"Fix it then so that the internal loading order is not strictly tied to the order 
in php.ini"

they are loaded as listed in php.ini
 [2012-01-22 16:27 UTC] bugzilla33 at gmail dot com
it's strange, but if you are loading additional php_soap.dll

   extension_dir = "c:\php5\ext"
   extension=php_gd2.dll
   extension=php_mbstring.dll
   extension=php_openssl.dll
   extension=php_soap.dll
   extension=php_sockets.dll

(Please compare with the first comment.)

Apache do not crash!

What is this strange behavior is caused by? (introduced in RC5)
 [2012-01-23 07:13 UTC] bugzilla33 at gmail dot com
It's interesting, but this error only occurs on my machine.
It is independent of the operating system (Win 7 32/64 bit).
I can not reproduce it on another machine.
 [2012-02-03 18:25 UTC] bugzilla33 at gmail dot com
0. download http://host0001.webd.pl/bugs/php/bug.7z


1. This is http://www.apachelounge.com/download/binaries/httpd-2.2.21-win32.zip


2. And http://windows.php.net/downloads/qa/php-5.4.0RC7-Win32-VC9-x86.zip


3. httpd.conf modifications

   PHPINIDir c:/php54
   LoadModule php5_module c:/php54/php5apache2_2.dll
   AddType application/x-httpd-php .php


4. php.ini (from php.ini-development) modifications

   extension_dir = "c:\php54\ext"

   extension=php_gd2.dll
   extension=php_intl.dll
   extension=php_mbstring.dll


5. Steps to reproduce

   - use Windows 7 (64-bit ?)
   - upack this to c:\ root
   - run install.bat (install Apache service)
   - run start.bat (start Apache service)
   - type in browser http://127.0.0.1/phpinfo.php

6. Expected result

   - gd loaded
   - intl loaded
   - mbstring loaded

7. Actual result
   - only mbstring loaded


8. Tested on two other machines
 [2012-02-03 18:28 UTC] pajoye@php.net
-Status: Not a bug +Status: Assigned -Assigned To: +Assigned To: mattficken
 [2012-02-03 18:28 UTC] pajoye@php.net
Matt, can you try to reproduce these steps please? I can't.
 [2012-02-03 19:39 UTC] mattficken@php.net
Using both the INI files from http://host0001.webd.pl/bugs/php/crash.zip and http://host0001.webd.pl/bugs/php/bug.7z
 (and apache2.21.2 and php 5.4.0rc7 from bug.7z) I can NOT reproduce this problem on either Win7sp0x64 or Win7sp1x64.

I have enabled the extensions from step 5 (gd2, mbstring, openssl, sockets).

On both OS/Versions PHP and apache don't crash, and the extensions that are enabled show up in phpinfo().


Thank you for providing a detailed repro setup (bug.7z) with all dependencies, etc... It makes it fast and accurate to try to repro.

If you want us to proceed further, would you provide the output of the 'systeminfo' command (from command prompt, run 'systeminfo'). That will provide patch information, etc... about the affected machine.
 [2012-02-03 19:49 UTC] bugzilla33 at gmail dot com
I have installed Windows 7 64-bit SP1 Polish and all updates from microsoft.




Nazwa hosta:                         GOOROL
Nazwa systemu operacyjnego:          Microsoft Windows 7 Professional 
Wersja systemu operacyjnego:         6.1.7601 Service Pack 1 Kompilacja 7601
Producent systemu operacyjnego:      Microsoft Corporation
Konfiguracja systemu operacyjnego:   Samodzielna stacja robocza
Typ kompilacji systemu operacyjnego: Multiprocessor Free
Zarejestrowany wˆa˜ciciel:           Admin
Zarejestrowana organizacja:          
Identyfikator produktu:              00371-OEM-8992671-00004
Data oryginalnej instalacji:         2012-01-13, 21:58:57
Czas rozruchu systemu:               2012-02-03, 16:16:41
Producent systemu:                   MICRO-STAR INTERNATIONAL CO., LTD
Model systemu:                       MS-7125
Typ systemu:                         x64-based PC
Procesory:                           Zainstalowanych procesor˘w: 1.
                                     [01]: AMD64 Family 15 Model 47 Stepping 2 AuthenticAMD ~1809 Mhz
Wersja systemu BIOS:                 Phoenix Technologies, LTD 6.00 PG, 2006-05-22
Katalog Windows:                     C:\Windows
Katalog systemowy:                   C:\Windows\system32
UrzĄdzenie rozruchowe:               \Device\HarddiskVolume1
Ustawienia regionalne systemu:       pl;Polski
Ustawienia regionalne:               pl;Polski
Strefa czasowa:                      (UTC+01:00) Sarajewo, Skopie, Warszawa, Zagrzeb
Caˆkowity rozmiar pami©ci fizycznej: 2˙048 MB
Dost©pna pami©† fizyczna:            806 MB
Pami©† wirtualna: rozmiar maks.:     4˙095 MB
Pami©† wirtualna: dost©pna:          1˙845 MB
Pami©† wirtualna: w uľyciu:          2˙250 MB
Lokalizacje plik˘w stronicowania:    C:\pagefile.sys
Domena:                              WORKGROUP
Serwer logowania:                    BRAK
Poprawki:                            Zainstalowane poprawki: 61
                                     [01]: KB982861
                                     [02]: 982861
                                     [03]: KB971033
                                     [04]: KB2425227
                                     [05]: KB2479943
                                     [06]: KB2484033
                                     [07]: KB2488113
                                     [08]: KB2491683
                                     [09]: KB2492386
                                     [10]: KB2503665
                                     [11]: KB2505438
                                     [12]: KB2506014
                                     [13]: KB2506212
                                     [14]: KB2506928
                                     [15]: KB2507618
                                     [16]: KB2509553
                                     [17]: KB2510531
                                     [18]: KB2511250
                                     [19]: KB2511455
                                     [20]: KB2515325
                                     [21]: KB2518869
                                     [22]: KB2522422
                                     [23]: KB2529073
                                     [24]: KB2532531
                                     [25]: KB2533552
                                     [26]: KB2536275
                                     [27]: KB2536276
                                     [28]: KB2539635
                                     [29]: KB2541014
                                     [30]: KB2544893
                                     [31]: KB2545698
                                     [32]: KB2547666
                                     [33]: KB2552343
                                     [34]: KB2556532
                                     [35]: KB2560656
                                     [36]: KB2563227
                                     [37]: KB2564958
                                     [38]: KB2567680
                                     [39]: KB2570947
                                     [40]: KB2572077
                                     [41]: KB2579686
                                     [42]: KB2584146
                                     [43]: KB2585542
                                     [44]: KB2588516
                                     [45]: KB2603229
                                     [46]: KB2607576
                                     [47]: KB2618444
                                     [48]: KB2618451
                                     [49]: KB2619339
                                     [50]: KB2620704
                                     [51]: KB2620712
                                     [52]: KB2631813
                                     [53]: KB2633952
                                     [54]: KB2639417
                                     [55]: KB2641690
                                     [56]: KB2644615
                                     [57]: KB2656356
                                     [58]: KB958488
                                     [59]: KB976902
                                     [60]: KB976932
                                     [61]: KB982018
Karty sieciowe:                      Zainstalowane karty NIC: 2.
                                     [01]: Kontroler sieci NVIDIA nForce
                                           Nazwa poˆĄczenia: PoˆĄczenie lokalne
                                           Stan:          No˜nik odˆĄczony
                                     [02]: Karta Realtek RTL8139/810x Family Fast Ethernet NIC
                                           Nazwa poˆĄczenia: PoˆĄczenie lokalne 2
                                           DHCP wˆĄczone:    Nie
                                           Adresy IP
                                           [01]: 192.168.1.3
                                           [02]: fe80::71d5:42a9:afa2:2cba
1
 [2012-02-03 20:03 UTC] bugzilla33 at gmail dot com
I just checked on the third machine. This time, Windows 7 32-bit Home Premium SP1 with all updates.
 The problem also occurs.
 [2012-02-03 20:04 UTC] bugzilla33 at gmail dot com
Also the Polish language version.
 [2012-02-03 20:36 UTC] bugzilla33 at gmail dot com
The third machine is completely different. On Intel. 4GB of RAM: Samsung R580 Notebook.
 [2012-02-03 21:49 UTC] mattficken@php.net
I have installed the polish language copy of Win7sp1x86 home premium and can't reproduce this bug using bug.7z.
 [2012-02-03 22:14 UTC] bugzilla33 at gmail dot com
Tomorrow I will install a clean system using virtualbox.
 If the problem does not occur may indicate that the impact on the programs I have installed on my system (OpenOffice.org, SQL etc).

 Otherwise, I'll somehow I have to send to you virtualbox system image, but I do not know how because it is 20GB.
 [2012-02-03 22:54 UTC] mattficken@php.net
Sounds like its something wrong with your setup which we (PHP Project) can't fix.

I agree trying it on a fresh install is a good thing for you to try. All the testing I've done on this bug was on freshly installed Windows virtual machines.


(BTW I use VirtualBox myself for testing, and you can Export an Appliance, which will compress your system image into an OVA file about 1/2 to 2/3 of the original size)
 [2012-02-04 09:58 UTC] bugzilla33 at gmail dot com
I have reproduces bug.7z using virtualbox, win 7 32-bit PL SP0

http://host0001.webd.pl/bugs/php/1.png
http://host0001.webd.pl/bugs/php/2.png

What do we do with it?
 [2012-02-04 10:12 UTC] bugzilla33 at gmail dot com
I have bug.ova 2.8GB.
I can put it on server to download on monday.
 [2012-02-04 10:17 UTC] pajoye@php.net
hi

To do not see gd2 is actually expected, see #55056.

However intl and other work just fine. And it is not a crash, extension not loaded 
are not segfaults.
 [2012-02-04 10:28 UTC] bugzilla33 at gmail dot com
intl in bug.ova is also not loaded
 [2012-02-04 10:34 UTC] bugzilla33 at gmail dot com
Indeed, lack gd2.dll
 [2012-02-04 10:44 UTC] pajoye@php.net
That's not what I asked.

Do you actually see a crash? Or only missing gd2 (expected) or intl (works fine in 
all our tests)?
 [2012-02-04 10:44 UTC] bugzilla33 at gmail dot com
How is it possible that you have seen loaded gd in phpinfo from bug.7z if dll is missing?
 [2012-02-04 11:01 UTC] bugzilla33 at gmail dot com
The problem described in the first comment (crash) does not exist in RC7 on both my computer and virtualbox.
 At this point I tested.

 The problem is not loaded php_intl.dll occurs.
 [2012-02-04 11:11 UTC] bugzilla33 at gmail dot com
pajoye, mattficken
please read private message on your email
 [2015-07-07 17:46 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2015-07-07 17:46 UTC] cmb@php.net
Any news here? Is there still an issue with recent PHP versions?
 [2015-07-19 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC