php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36807 CLI crashes unter win32
Submitted: 2006-03-20 23:25 UTC Modified: 2006-05-24 17:36 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:5 (100.0%)
From: spam2 at rhsoft dot net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.0-dev OS: Windows XP
Private report: No CVE-ID: None
 [2006-03-20 23:25 UTC] spam2 at rhsoft dot net
Description:
------------
The latest snapshots for win32 crashs (only the cli)
Not only one - all my scripts who will alter or backup databases for a batch-command on windows will crash down if running in command line interface - same skripts over apache2handler works normal.

Some snapshots before the problem went away but it exists also in an earlier build of 5.1.3dev

Reproduce code:
---------------
Sorry not possible


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-22 11:04 UTC] spam2 at rhsoft dot net
A example on my computers is a simple "pear upgrade-all", after few seconds php-cli crashs

The other scripts are also much bigger than 20 lines because uses a library with 5000 lines and some wrappers

one of them is a db-class for mysql/pgsql/mssql who makes it possible to connect to one mysqlserver, create a table dump and excute each insert directly on a second server or buffer the dump, create single files and generate a zip with them and save it to a backup-folder.

---

The last days the following script crashs after a longer time also

<?php
 $dns_host_list = Array
 (
  'apple.com',
  'www.apple.com',
  'time.apple.com',
  'ptbtime1.ptb.de',
  'ptbtime2.ptb.de',
  'ntp1.ptb.de',
  'ntp2.ptb.de',
  'ns1.chello.at',
  'ns2.chello.at',
  'ns3.chello.at',
  'www.google.com',
  'www.google.de',
  'www.google.at',
  'www.heise.de',
  'www.pc-magazin.de',
  'www.microsoft.com',
  'www.microsoft.de',
  'www.windowsupdate.com',
  'update.microsoft.com',
  'free.grisoft.com',
  'login.icq.com',
  'www.mozilla.org',
  'addons.mozilla.org',
  'www.merkurmarkt.com',
  'www.merkurmarkt.at',
  'www.nvidia.de',
  'www.nvidia.com',
  'appl.merkurmarkt.at',
  'www.orf.at',
  'digital.orf.at',
  'tvsales.orf.at',
  'www.news.at',
  'www.php.net',
  'snaps.php.net',
  'www.mysql.de',
  'www.mysql.com',
  'dev.mysql.com',
  'www.tinyurl.com',
  'tinyurl.com',
  'httpd.apache.org',
  'rhsoft.net',
  'www.rhsoft.net',
  'local.rhsoft.net',
  'dev.rhsoft.net',
  'private.rhsoft.net',
  'internal.rhsoft.net',
  'thelounge.rhsoft.net',
  'afi.rhsoft.net',
  'afi.test.rh',
  'test.rh',
  'rh.thelounge.net',
  'www.thelounge.net',
  'mail.thelounge.net',
  'webmail.thelounge.net',
  'ptc.thelounge.net',
  'ptc2.thelounge.net',
  'clients.thelounge.net',
  'access.thelounge.net',
  'arrakis.thelounge.net',
  'solaris.thelounge.net',
  'linux.thelounge.net',
  'thx1138.thelounge.net',
  'kronos.thelounge.net',
  'contentlounge.thelounge.net',
  'secure.thelounge.net',
  'revolver.thelounge.net',
  'www.adnersentag.at',
  'www.antiquare.at',
  'www.buchwoche.at',
  'www.buecherscheck.at',
  'www.fachkolleg.at',
  'www.hvb.at',
  'www.buecher.at',
  'www.isbn.co.at',
  'isbn.co.at',
  'www.jbh.at',
  'www.schoenstebuecher.at',
  'www.welttagdesbuches.at',
  'test.alufenster.at',
  'www.allarrabbiata.com',
  'www.alpines.at',
  'www.alufenster.at',
  'www.artenvielfalt.or.at',
  'www.aume.at',
  'www.berufsbilder.org',
  'www.blauensteiner.com',
  'www.cat-wien.at',
  'www.clausmitterbauer.at',
  'www.creative-industries.at',
  'www.dengscherz.at',
  'www.dieveranda.at',
  'www.do-mo.at',
  'www.enrico-panigl.at',
  'www.ernest-dichter.info',
  'www.granatapfel.com',
  'www.grueve.com',
  'www.gumpoldskirchnerspatzen.at',
  'www.hausingrid.com',
  'www.haustischler.com',
  'www.heimseite.at',
  'www.hofbauer-schmidt.at',
  'www.holzbauer.org',
  'www.hurnaus.com',
  'www.impalabullets.at',
  'www.interkulturlotsen.at',
  'www.jurtschitsch.com',
  'www.kaplenig.com',
  'www.koemau.com',
  'www.lifeball.org',
  'www.lifestyle-tv.at',
  'www.mak.at',
  'secure.mak.at',
  'www.makdesignshop.at',
  'www.markengoller.com',
  'www.minimalsoul.net',
  'www.montagmoebel.com',
  'www.musterkv.at',
  'www.optipharm.de',
  'www.optipharm.at',
  'www.ors.at',
  'www.ottomuehl.at',
  'www.palum.at',
  'www.peternoever.at',
  'www.presserk.at',
  'www.sauwohl.at',
  'www.sfm.at',
  'www.ske-fonds.at',
  'www.slpoes.at',
  'www.societyfordiversity.at',
  'www.soseurope.org',
  'www.stonespirits.at',
  'www.str-desgin.at',
  'www.studeny.at',
  'www.stylebible.at',
  'www.szeiertag.com',
  'www.textilart.at',
  'www.vmoe.at',
  'www.web-media.at',
  'www.weineck.at',
  'www.weinundkaese.at',
  'www.weinvierteldac.at',
  'www.x-tremegolf.at'
 );

 foreach ($dns_host_list as $akt_dns_host) gethostbyname($akt_dns_host);
?>
 [2006-04-10 02:50 UTC] spam2 at rhsoft dot net
Is there any solution fpr this problem?
I cant use 5.1.3dev because i need cli in many cases on my development machine :-(
 [2006-04-10 12:37 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2006-04-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-04-22 10:33 UTC] spam2 at rhsoft dot net
I have tried no many Configurations
The Problem seems only to exist if php_tidy.dll is loaded
Whe i uncomment it the following script is running, if tidy is loaded it will crash after a few seconds

<?php
 $dns_host_list = Array
 (
  'apple.com',
  'www.apple.com',
  'time.apple.com',
  'ptbtime1.ptb.de',
  'ptbtime2.ptb.de',
  'ntp1.ptb.de',
  'ntp2.ptb.de',
  'ns1.chello.at',
  'ns2.chello.at',
  'ns3.chello.at',
  'www.google.com',
  'www.google.de',
  'www.google.at',
  'www.heise.de',
  'www.pc-magazin.de',
  'www.microsoft.com',
  'www.microsoft.de',
  'www.windowsupdate.com',
  'update.microsoft.com',
  'free.grisoft.com',
  'login.icq.com',
  'www.mozilla.org',
  'addons.mozilla.org',
  'www.merkurmarkt.com',
  'www.merkurmarkt.at',
  'www.nvidia.de',
  'www.nvidia.com',
  'appl.merkurmarkt.at',
  'www.orf.at',
  'digital.orf.at',
  'tvsales.orf.at',
  'www.news.at',
  'www.php.net',
  'snaps.php.net',
  'www.mysql.de',
  'www.mysql.com',
  'dev.mysql.com',
  'www.tinyurl.com',
  'tinyurl.com',
  'httpd.apache.org',
  'rhsoft.net',
  'www.rhsoft.net',
  'local.rhsoft.net',
  'dev.rhsoft.net',
  'private.rhsoft.net',
  'internal.rhsoft.net',
  'thelounge.rhsoft.net',
  'afi.rhsoft.net',
  'afi.test.rh',
  'test.rh',
  'rh.thelounge.net',
  'www.thelounge.net',
  'mail.thelounge.net',
  'webmail.thelounge.net',
  'ptc.thelounge.net',
  'ptc2.thelounge.net',
  'clients.thelounge.net',
  'access.thelounge.net',
  'arrakis.thelounge.net',
  'solaris.thelounge.net',
  'linux.thelounge.net',
  'thx1138.thelounge.net',
  'kronos.thelounge.net',
  'contentlounge.thelounge.net',
  'secure.thelounge.net',
  'revolver.thelounge.net',
  'www.andersentag.at',
  'www.antiquare.at',
  'www.buchwoche.at',
  'www.buecherscheck.at',
  'www.fachkolleg.at',
  'www.buecher.at',
  'www.isbn.co.at',
  'isbn.co.at',
  'www.jbh.at',
  'www.schoenstebuecher.at',
  'www.welttagdesbuches.at',
  'test.alufenster.at',
  'www.allarrabbiata.com',
  'www.alpines.at',
  'www.alufenster.at',
  'www.artenvielfalt.or.at',
  'www.aume.at',
  'www.berufsbilder.org',
  'www.blauensteiner.com',
  'www.cat-wien.at',
  'www.clausmitterbauer.at',
  'www.creative-industries.at',
  'www.dengscherz.at',
  'www.dieveranda.at',
  'www.do-mo.at',
  'www.enrico-panigl.at',
  'www.ernest-dichter.info',
  'www.granatapfel.com',
  'www.grueve.com',
  'www.gumpoldskirchnerspatzen.at',
  'www.hausingrid.com',
  'www.haustischler.com',
  'www.heimseite.at',
  'www.hofbauer-schmidt.at',
  'www.holzbauer.org',
  'www.hurnaus.com',
  'www.impalabullets.at',
  'www.interkulturlotsen.at',
  'www.jurtschitsch.com',
  'www.kaplenig.com',
  'www.koemau.com',
  'www.lifeball.org',
  'www.lifestyle-tv.at',
  'www.mak.at',
  'secure.mak.at',
  'www.makdesignshop.at',
  'www.markengoller.com',
  'www.minimalsoul.net',
  'www.montagmoebel.com',
  'www.musterkv.at',
  'www.optipharm.de',
  'www.optipharm.at',
  'www.ors.at',
  'www.ottomuehl.at',
  'www.palum.at',
  'www.peternoever.at',
  'www.sauwohl.at',
  'www.sfm.at',
  'www.ske-fonds.at',
  'www.slpoes.at',
  'www.societyfordiversity.at',
  'www.soseurope.org',
  'www.stonespirits.at',
  'www.str-desgin.at',
  'www.studeny.at',
  'www.stylebible.at',
  'www.szeiertag.com',
  'www.textilart.at',
  'www.vmoe.at',
  'www.web-media.at',
  'www.weineck.at',
  'www.weinundkaese.at',
  'www.weinvierteldac.at',
  'www.x-tremegolf.at'
 );

 foreach ($dns_host_list as $akt_dns_host) gethostbyname($akt_dns_host);
?>
 [2006-04-30 11:43 UTC] spam2 at rhsoft dot net
The problem is in 5.2.0-dev (last nightly) also 
And now im sure that is only here when php_tidy.dll is loaded

A workaround is to place a "php.ini" with all modules in the apache/conf-Folder an a line like 
PHPIniDir "d:/server/apache/conf"
in the httpd.conf

Now under c:\windows\php.ini can removed the tidy-line and both works - make sure there is no php.ini in the php-folder himself!

that is not nice but helps now -> Please look where the problem it self lives, because its not a good sign when php crashs with a bundled extension!
 [2006-04-30 11:54 UTC] bjori@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2006-05-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-05-17 17:15 UTC] spambox at spambox dot md
PHP 5.1.4, Win XP
cli crashing on any php.exe run even "php -v" etc.

Error signature
AppName: php.exe	 AppVer: 5.1.4.4	 ModName: php5ts.dll
ModVer: 5.1.4.4	 Offset: 00098297
 [2006-05-24 12:24 UTC] esk at isg dot axmor dot com
This is a backtrace you was asking for.

00ec1c80()
tsrm_shutdown() line 180 + 4 bytes
main(int 3276800, char * * 0x00000000) line 1258
MSVCRT! 77c2c3c9()

CLI crashes when I'm turning the php_tidy.dll on an executing "php.exe -v"
 [2006-05-24 17:36 UTC] tony2001@php.net
See bug #37418.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 08:01:33 2024 UTC