#28605 [Fbk->Opn]: bug21523.phpt test never end

From: Date: Mon, 21 Mar 2005 12:42:18 +0000
Subject: #28605 [Fbk->Opn]: bug21523.phpt test never end
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75661@lists.php.net to get a copy of this message
ID: 28605 User updated by: tbp at poly dot polytechnique dot fr Reported By: tbp at poly dot polytechnique dot fr -Status: Feedback +Status: Open Bug Type: Math related Operating System: Compaq Tru64 UNIX v5.1 PHP Version: 4CVS-2005-02-10 New Comment: No hangup anymore, but coredump instead. [root@poly:/Admin/SRC/Apache/php4-STABLE-200503211130]# sapi/cli/php ext/standard/tests/math/bug21523.phpt --TEST-- Bug #21523 number_format tries to allocate negative amount of memory --FILE-- Floating point exception (core dumped) FAIL Bug #21523 number_format tries to allocate negative amount of memory [ext/standard/tests/math/bug21523.phpt] Previous Comments: ------------------------------------------------------------------------ [2005-03-20 17:49:13] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz The build is fixed now. ------------------------------------------------------------------------ [2005-03-16 14:08:22] tbp at poly dot polytechnique dot fr Sorry, but again build problem: [root@poly:/Admin/SRC/Apache/php4-STABLE-200503161130]# make gcc -Iext/ctype/ -I/Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ -DPHP_ATOM_INC -I/Admin/SRC/Apache/php4-STABLE-200503161130/include -I/Admin/SRC/Apache/php4-STABLE-200503161130/main -I/Admin/SRC/Apache/php4-STABLE-200503161130 -I/Admin/SRC/Apache/php4-STABLE-200503161130/Zend -I/Admin/SRC/Apache/php4-STABLE-200503161130/ext/xml/expat -g -O2 -c /Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c -o ext/ctype/ctype.o && echo > ext/ctype/ctype.lo In file included from /Admin/SRC/Apache/php4-STABLE-200503161130/Zend/zend_alloc.h:26, from /Admin/SRC/Apache/php4-STABLE-200503161130/Zend/zend.h:223, from /Admin/SRC/Apache/php4-STABLE-200503161130/main/php.h:34, from /Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c:23: /Admin/SRC/Apache/php4-STABLE-200503161130/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c:23: /Admin/SRC/Apache/php4-STABLE-200503161130/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory So, just for testing purpose I have done: CFLAGS=-I/Admin/SRC/Apache/php4-STABLE-200503161130/TSRM ./configure and: [root@poly:/Admin/SRC/Apache/php4-STABLE-200503161130]# sapi/cli/php ext/standard/tests/math/bug21523.phpt --TEST-- Bug #21523 number_format tries to allocate negative amount of memory --FILE-- Floating point exception (core dumped) make: *** [ext/ctype/ctype.lo] Error 1 ------------------------------------------------------------------------ [2005-03-16 07:44:16] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2005-02-11 01:34:24] tbp at poly dot polytechnique dot fr Compilation ok, but initial problem persists. New trace: [root@poly:/Admin/SRC/Apache/php4-STABLE-200502102330]# sapi/cli/php ext/standard/tests/math/bug21523.phpt --TEST-- Bug #21523 number_format tries to allocate negative amount of memory --FILE-- [root@poly:/Admin/SRC/Apache/php4-STABLE-200502102330]# gdb sapi/cli/php GNU gdb 6.1 Copyright 2004 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 "alphaev68-dec-osf5.1"... (gdb) run ext/standard/tests/math/bug21523.phpt Starting program: /Admin/SRC/Apache/php4-STABLE-200502102330/sapi/cli/php ext/standard/tests/math/bug21523.phpt --TEST-- Bug #21523 number_format tries to allocate negative amount of memory --FILE-- warning: (Internal error: pc 0x12010e784 in read in psymtab, but not in symtab.) Program received signal SIGINT, Interrupt. 0x000000012010e784 in ap_php_cvt (arg=0, ndigits=78, decpt=0x11fff9ac8, sign=0x0, eflag=0, buf=0x11fff9ad0 '0' <repeats 80 times>) at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:317 317 fj = modf(fi / 10, &fi); (gdb) bt #0 0x000000012010e784 in ap_php_cvt (arg=0, ndigits=78, decpt=0x11fff9ac8, sign=0x0, eflag=0, buf=0x11fff9ad0 '0' <repeats 80 times>) at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:317 warning: (Internal error: pc 0x12010e628 in read in psymtab, but not in symtab.) #1 0x000000012010e628 in ap_php_conv_fp (format=102 'f', num=0, add_dp=NO, precision=2768, is_negative=0x11fff9dc0, buf=0x11fff9bb1 "", len=0x11fff9ba8) at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:176 warning: (Internal error: pc 0x1201104fc in read in psymtab, but not in symtab.) #2 0x00000001201104fc in xbuf_format_converter (xbuf=0x11fff9e38, fmt=0x14002f7d9 "f", ap={__base = 0x11fff9eb8, __offset = 40}) at /Admin/SRC/Apache/php4-STABLE-200502102330/main/spprintf.c:461 warning: (Internal error: pc 0x120110cb8 in read in psymtab, but not in symtab.) #3 0x0000000120110cb8 in vspprintf (pbuf=0x11fff9f48, max_len=4831812304, format=0x14002f7d6 "%.*f", ap={__base = 0x11fff9eb8, __offset = 24}) at /Admin/SRC/Apache/php4-STABLE-200502102330/main/spprintf.c:638 warning: (Internal error: pc 0x120110d80 in read in psymtab, but not in symtab.) #4 0x0000000120110d80 in spprintf (pbuf=0x11fff9ad2, max_len=4831812304, format=0x4d "") at /Admin/SRC/Apache/php4-STABLE-200502102330/main/spprintf.c:658 warning: (Internal error: pc 0x1200afe18 in read in psymtab, but not in symtab.) #5 0x00000001200afe18 in _php_math_number_format (d=0, dec=536845880, dec_point=46 '.', thousand_sep=44 ',') at /Admin/SRC/Apache/php4-STABLE-200502102330/ext/standard/math.c:1027 warning: (Internal error: pc 0x1200b0248 in read in psymtab, but not in symtab.) #6 0x00000001200b0248 in zif_number_format (ht=1074705624, return_value=0x1400eb498, this_ptr=0x4d, return_value_used=0) at /Admin/SRC/Apache/php4-STABLE-200502102330/ext/standard/math.c:1123 warning: (Internal error: pc 0x12015aaf8 in read in psymtab, but not in symtab.) #7 0x000000012015aaf8 in execute (op_array=0x2c) at /Admin/SRC/Apache/php4-STABLE-200502102330/Zend/zend_execute.c:1651 Previous frame inner to this frame (corrupt stack?) ------------------------------------------------------------------------ [2004-07-11 21:43:33] sniper@php.net run the single test like this: # gdb sapi/cli/php (gdb) run ext/standard/tests/math/bug21523.phpt And if/when it hangs, press ctrl+c and then type: (gdb) bt And paste output here. ------------------------------------------------------------------------ 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/28605 -- Edit this bug report at http://bugs.php.net/?id=28605&edit=1

« previous php.bugs (#75661) next »