ID:               40855
 User updated by:  donauinsel at hotmail dot com
 Reported By:      donauinsel at hotmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: W2K
 PHP Version:      5.2.1
 New Comment:

It's reproduceable on windows (ISAPI) - that's all. 

If you run it as CGI it may never happen ?! I have no linux at all here
to test neither than other OS'es. I reported to mysql because may the
result given back to php is wrong. Sorry for crossposting.

If you're sure that it's not bug but a feature then close this please
but i'm pretty sure that other people on the WWW have similar crashes
and if UNIQUE index is corrupting the heap under these circumstances may
i can help with this simple tip to check.


Previous Comments:
------------------------------------------------------------------------

[2007-03-20 16:02:57] [EMAIL PROTECTED]

Not reproducible on Linux.
Also, I don't undrestand - why did you report it BOTH to MySQL people
and here?
Are you able to replicate it on another machine? Another OS? 
Linux and valgrind would most likely give some more information, not
just a random backtrace.

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

[2007-03-20 07:48:08] donauinsel at hotmail dot com

Btw. The stacktrace does not help in this case because it always
happens on other adresses so the heap corruption is the error not the
error itself.

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

[2007-03-19 19:07:27] donauinsel at hotmail dot com

I tried to debug but heap always crahes on other circumstances. The old
windbg reported eg.

Wed Nov 29 17:00:59.046 2006 (GMT+1): HEAP[ntserver.exe]: 
Wed Nov 29 17:00:59.046 2006 (GMT+1): Invalid Address specified to
RtlFreeHeap( 930000, 9301b0 )
Wed Nov 29 17:00:59.046 2006 (GMT+1): (300.968): Break instruction
exception - code 80000003 (first chance)
eax=009301a8 ebx=009301a8 ecx=031ce2ec edx=031ce086 esi=00930000
edi=009301a8
eip=7789193c esp=031ce26c ebp=031ce270 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202
ntdll!RtlpProcessWaitCompletion+0x11a:
7789193c cc int 3
 
031ce270 778b1cff 009301a8 00930000 009301b0
ntdll!RtlpProcessWaitCompletion+0x11a
031ce284 778b0e88 00930000 009301a8 778b0d6c
ntdll!RtlTraceDatabaseEnumerate+0x1e
031ce3bc 778b0fd5 02190000 0219f448 0219f448
ntdll!RtlVerifyVersionInfo+0xab
031ce518 016ad786 00000000 1101bd23 00000001
ntdll!RtlVerifyVersionInfo+0x28b
WARNING: Stack unwind information not available. Following frames may
be wrong.
031ce538 015bdbef 11027e88 10bf88e0 11025ed8 php5ts!php_mail+0x926
031ce568 0151a541 05db6108 11020ed0 00000000
php5ts!compare_function+0x4df
031ce57c 015c20f7 11020ed0 1101feb0 01584514 php5ts!efree+0x21
00000000 00000000 00000000 00000000 00000000 php5ts!zval_dtor_func+0x27

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

[2007-03-19 16:08:18] [EMAIL PROTECTED]

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.



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

[2007-03-19 16:03:01] donauinsel at hotmail dot com

Description:
------------
I repoted this bug to mysql but affect PHP system so may the ISAPI or
zend engine cannot handle -> result is a heap crash.



Reproduce code:
---------------
Set UNIQUE index on any mysql database INT(15) field and insert same
time stamps multiple times. After doing this for few hours the heap will
crash as rersult.

http://bugs.mysql.com/bug.php?id=27237



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


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

Reply via email to