-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mostly for Dmitry
After some work, I can reduce the failed tests number from 111 to 5 :)
(configure --disable-all)
Those seems related to new mm.
=> munmap() failed: [22] Invalid argument
Any idea on how to debug / fix them ?
Thanks,
Remi
P.S. I have a temporary ppc64 machine, but ono a very slow connection,
very hard to debug on it :(
=====================================================================
FAILED TEST SUMMARY
Bug #40770 (Apache child exits when PHP memory limit reached)
[Zend/tests/bug40770.phpt]
Bug #43128 (Very long class name causes segfault)
[Zend/tests/bug43128.phpt]
Bug #44069 (Huge memory usage with concatenation using . instead of .=)
[Zend/tests/bug44069.phpt]
Bug #55509 (segfault on x86_64 using more than 2G memory)
[Zend/tests/bug55509.phpt]
Stress test $x .= $x [Zend/tests/concat_002.phpt]
$ cat Zend/tests/bug40770.out
munmap() failed: [22] Invalid argument
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 3145760 bytes) in /home/remi/php-src/Zend/tests/bug40770.php on
line 6
$ cat Zend/tests/bug43128.out
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
ok
$ cat Zend/tests/bug44069.out
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
ok
$ cat Zend/tests/bug55509.out
1
munmap() failed: [22] Invalid argument
2
munmap() failed: [22] Invalid argument
3
munmap() failed: [22] Invalid argument
4
Fatal error: Allowed memory size of 2202009600 bytes exhausted (tried to
allocate 536870944 bytes) in /home/remi/php-src/Zend/tests/bug55509.php
on line 10
$ cat Zend/tests/concat_002.out
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
munmap() failed: [22] Invalid argument
int(33554432)
Done
rcollet@redhat.com | Senior Software Engineer / BaseOS / WebStack team
GPG Key: 0x29F16A18
Fingerprint: 5A0E 6F54 D94D 5732 69EE E3FF 614A 6905 29F1 6A18
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlR9cUIACgkQYUppBSnxahg/JgCgpBOKBPklJhjbgL+fSO2/9Fv4
DDoAoL5Mwy7/vdvoS/T9BDKMYFgNESQG
=QgZg
-----END PGP SIGNATURE
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 02/12/2014 08:58, Remi Collet a écrit :
Mostly for Dmitry
After some work, I can reduce the failed tests number from 111 to 5
:) (configure --disable-all)Those seems related to new mm. => munmap() failed: [22] Invalid
argument
$ gdb sapi/cli/php
...
(gdb) break Zend/zend_alloc.c:426
(gdb) break Zend/zend_alloc.c:471
(gdb) run Zend/tests/concat_002.php
Breakpoint 2, zend_mm_munmap (addr=<optimized out>, size=<optimized out>) at /home/remi/php-src/Zend/zend_alloc.c:471
(gdb) bt
#0 zend_mm_munmap (addr=<optimized out>, size=<optimized out>) at
/home/remi/php-src/Zend/zend_alloc.c:471
#1 0x00000000101d1260 in zend_mm_chunk_alloc_int
(size=size@entry=4198400, alignment=2097152) at
/home/remi/php-src/Zend/zend_alloc.c:760
#2 0x00000000101d12f0 in zend_mm_chunk_alloc (size=size@entry=4198400,
heap=0x3fffb7800040, alignment=2097152) at
/home/remi/php-src/Zend/zend_alloc.c:779
#3 0x00000000101d17d8 in zend_mm_alloc_huge
(heap=heap@entry=0x3fffb7800040, size=size@entry=4194336) at
/home/remi/php-src/Zend/zend_alloc.c:1660
#4 0x00000000101d1e2c in zend_mm_alloc_heap (size=4194336,
heap=0x3fffb7800040) at /home/remi/php-src/Zend/zend_alloc.c:1315
#5 zend_mm_realloc_heap (heap=0x3fffb7800040, ptr=0x3fffb0c00000,
size=4194336) at /home/remi/php-src/Zend/zend_alloc.c:1553
#6 0x00000000101f8188 in zend_string_realloc (persistent=0,
len=4194304, s=0x3fffb0c00000) at
/home/remi/php-src/Zend/zend_string.h:165
#7 concat_function (result=0x3fffb7813080, op1=0x3fffb7813080,
op2=0x3fffb7813080) at /home/remi/php-src/Zend/zend_operators.c:1567
#8 0x0000000010260178 in zend_binary_assign_op_helper_SPEC_CV_CV
(binary_op=@0x10412368: 0x101f7fa0 <concat_function>,
execute_data=0x3fffb7813030)
at /home/remi/php-src/Zend/zend_vm_execute.h:43137
#9 0x0000000010247734 in execute_ex (execute_data=0x3fffb7813030) at
/home/remi/php-src/Zend/zend_vm_execute.h:352
#10 0x00000000102da0a4 in zend_execute (op_array=0x3fffb787a000,
return_value=<optimized out>) at
/home/remi/php-src/Zend/zend_vm_execute.h:381
#11 0x00000000102038b4 in zend_execute_scripts (type=<optimized out>,
retval=0x0, file_count=<optimized out>) at
/home/remi/php-src/Zend/zend.c:1266
#12 0x000000001018b084 in php_execute_script
(primary_file=0x3fffffffe6d0) at /home/remi/php-src/main/main.c:2563
#13 0x00000000102dbf1c in do_cli (argc=<optimized out>, argv=0x104411d0)
at /home/remi/php-src/sapi/cli/php_cli.c:978
#14 0x00000000100221cc in main (argc=<optimized out>, argv=0x104411d0)
at /home/remi/php-src/sapi/cli/php_cli.c:1356
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlR9dEcACgkQYUppBSnxahiYlgCePpu/+i2uO0uesW7Fs/ifWDts
b+oAnR0fMlE3qBkXnJg4w4dpeiAdyPMd
=Gzle
-----END PGP SIGNATURE
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
With latest commit (Thanks dmitry) test suite in ppc64 is now OK.
Remi.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlR9vY8ACgkQYUppBSnxahixCwCfbnQmf9/z6W17icpOErgJTObM
XVMAoN/fadFeU97ZCHqsmIoaa0MQe3n4
=AQob
-----END PGP SIGNATURE