1 Aug 2006 05:06
[PHP-DEV] PHP_5_2 segfaults
Sebastian Bergmann <sb <at> sebastian-bergmann.de>
2006-08-01 03:06:30 GMT
2006-08-01 03:06:30 GMT
sb <at> wopr-mobile php-5.2 % ./cvsclean && ./buildconf && ./configure &&
make -j3 && gdb ./sapi/cli/php
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
gdb> r
Program received signal SIGINT, Interrupt.
_______________________________________________________________________________
eax:FFFFFE00 ebx:00000000 ecx:B7FE3000 edx:00000400 eflags:00000246
esi:B7E27420 edi:B7D0CB70 esp:BFF6CA28 ebp:BFF6CA4C eip:FFFFE410
cs:0073 ds:007B es:007B fs:0000 gs:0033 ss:007B o d I t s Z a P c
[007B:BFF6CA28]---------------------------------------------------------[stack]
BFF6CA58 : 00 30 FE B7 00 04 00 00 - F4 6F E2 B7 20 74 E2 B7
.0.......o.. t..
BFF6CA48 : 00 04 00 00 6C CA F6 BF - 90 D0 D6 B7 20 74 E2 B7
....l....... t..
BFF6CA38 : F4 6F E2 B7 68 BE D6 B7 - 00 00 00 00 00 30 FE B7
.o..h........0..
BFF6CA28 : 4C CA F6 BF 00 04 00 00 - 00 30 FE B7 F3 A2 DB B7
L........0......
[007B:B7E27420]---------------------------------------------------------[
data]
(Continue reading)
) The function is now about *8 times*
> faster, and nearly 20 times faster on a non-numeric string! (I'm on
> Windows.)
>
> diff:
RSS Feed