Edit report at http://bugs.php.net/bug.php?id=53333&edit=1

 ID:                 53333
 Updated by:         and...@php.net
 Reported by:        paj...@php.net
 Summary:            Random crash
 Status:             Feedback
 Type:               Bug
 Package:            MySQLi related
 Operating System:   *
 PHP Version:        5.3.3
 Assigned To:        mysql
 Block user comment: N
 Private report:     N

 New Comment:

Pierre, I'm a fan of this, but it can, and will probably, hit the
run-time performance. But I can't tell without a benchmark.
Unfortunately Ulf has some other things to do at the moment. It is easy
to change that, just edit mysqlnd.h and find MYSQLND_DBG_ENABLED and set
it to 1 in all cases.


Previous Comments:
------------------------------------------------------------------------
[2010-12-01 14:06:17] paj...@php.net

Wondering if it could be useful to have the logs in non debug builds as
well, what do you think?

------------------------------------------------------------------------
[2010-12-01 11:18:30] and...@php.net

Hi,

I recently fixed the argument parser for the debug log for Windows,
because ":" is a separator in the string. Also only since few weeks the
trace log is available on Windows. You need a pretty fresh build
sources. Also you need a _debug_ build, because the trace functionality
is not compiled in in release builds. And please try using / instead of
\, if that helps.

------------------------------------------------------------------------
[2010-12-01 10:49:22] kriscr...@php.net

Oh and also, could you tell me when this debug is supposed to output the
file?  I.e. does it output debug info whenever MySQL is invoked, or only
when there's a crash?

------------------------------------------------------------------------
[2010-12-01 10:39:51] kriscr...@php.net

Hi Ulf,



I've been running the tests for Pierre and am also the one who first
discovered this bug.  He asked me to connect with you here because I've
been unable to get the debug directive you mentioned to output.



Specifically, I'm running the PHP 5.3.4RC1 ZTS Pierre released, VC9
compile, on Apache 2.2 under one of our Windows 2008 R2 hosts with
Windbg attached to the process.  In php.ini, I added the following line
to the MYSQLND section:



mysqlnd.debug="d:t:O,C:\temp\mysqlnd_debug.log"





The setting does show up in PHPInfo().  Specifically:



mysqlnd

mysqlnd enabled

Version         mysqlnd 5.0.7-dev - 091210 - $Revision: 304625 $

Compression     supported

SSL     not supported

Command buffer size     4096

Read buffer size        32768

Read timeout    31536000

Collecting statistics   Yes

Collecting memory statistics    Yes

Tracing         d:t:O,C:\temp\mysqlnd_debug.log





However, the mysqlnd_debug.log file is never created.  I'm not sure
under what conditions it's supposed to output, but in this test I was
hitting both MediaWiki and WordPress until the crash occured, and at no
point was the file created.  The directory has full perms (including
write) granted to all users.  I could theoretically use procmon to see
if it's attempting to write the file, but since we're dealing with a bug
that takes about an hour to repro, that wouldn't be my first choice.



Have you had a chance yet to test this new debug feature?  Do you know
if there are any other settings/etc that need to be enabled in order for
this to work?  Please let me know and I'll give it another go.





Thanks!



--Kris

------------------------------------------------------------------------
[2010-11-30 12:26:20] paj...@php.net

I will ask to enable it and run again the tests. Thanks :)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=53333


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53333&edit=1

Reply via email to