RE: Re: CLI Crash Bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seems to be the same problem with this method, no debugging symbols found. I've added the debug pack to my c:\PHP directory (with the extension .pdb files in \ext.)

C:\temp>gdb32.exe php.exe
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 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 "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\php\php.exe...(no debugging symbols found)...done.
(gdb) run -r exit();
Starting program: c:\php\php.exe -r exit();
[New Thread 1936.0x3104]
[New Thread 1936.0x2a68]
warning: Critical error detected c0000374


Program received signal SIGTRAP, Trace/breakpoint trap.
0x7756e696 in ntdll!KiRaiseUserExceptionDispatcher ()
   from C:\Windows\system32\ntdll.dll
(gdb) bt
#0  0x7756e696 in ntdll!KiRaiseUserExceptionDispatcher ()
   from C:\Windows\system32\ntdll.dll
#1  0x74c62bf7 in ?? ()
#2  0x07400050 in ?? ()
#3  0x7756f5c9 in ntdll!LdrAddRefDll () from C:\Windows\system32\ntdll.dll
#4  0xc0000374 in ?? ()
#5  0x775a4268 in ntdll!_itow () from C:\Windows\system32\ntdll.dll
#6  0x00abfbd0 in ?? ()
#7  0x7756f6a9 in ntdll!LdrAddRefDll () from C:\Windows\system32\ntdll.dll
#8  0x00000002 in ?? ()
#9  0x74c62bab in ?? ()

Keith Davis - (214) 906-5183


-----Original Message-----
From: Jan Ehrhardt [mailto:phpdev@xxxxxxxxxxx]
Sent: Sunday, July 21, 2013 4:56 PM
To: php-windows@xxxxxxxxxxxxx
Subject: Re: CLI Crash Bug

Keith Davis in php.windows (Sat, 20 Jul 2013 07:14:39 -0500):
>We are trying to move to 5.5, but are stopped by this bug which we reported:
>
>https://bugs.php.net/bug.php?id=65247

A tip: there is yet another way to get backtraces. I once used it to track segfaults in httpd.exe, but there is a chance it will also work with php.exe.

Description here: https://bugs.php.net/bugs-generating-backtrace.php
Versions for debugging 32-bits and 64-bits programs can be found here:
http://x32.elijst.nl/gdb.zip

Usage something like:
gdb php.exe
(gdb) run anyscript.php

Or you can run php interactively. Simple example is php -r exit():

D:\phpdev\php54nts.x32>gdb32.exe php.exe GNU gdb (GDB) 7.5.1 Copyright (C) 2012 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 "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from D:\phpdev\php54nts.x32\php.exe...(no debugging symbols found)...done.

(gdb) run -r exit();
Starting program: D:\phpdev\php54nts.x32\php.exe -r exit(); [New Thread 3024.0x1314] [New Thread 3024.0x904] [Inferior 1 (process 3024) exited normally]
(gdb)

After a crash 'bt' at the (gdb) prompt should give you a backtrace.

Jan

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender.

www.pridedallas.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux