Bug #76392 [NEW]: Error relocating sapi/cli/php: unsupported relocation type 37
| From: | peterkokot at gmail dot com | Date: | Wed, 30 May 2018 08:29:09 +0000 |
| Subject: | Bug #76392 [NEW]: Error relocating sapi/cli/php: unsupported relocation type 37 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-215421@lists.php.net to get a copy of this message | ||
From: peterkokot at gmail dot com
Operating system: Alpine 3.7
PHP version: master-Git-2018-05-30 (Git)
Package: *Compile Issues
Bug Type: Bug
Bug description:Error relocating sapi/cli/php: unsupported relocation type 37
Description:
------------
When building PHP on Alpine Linux 3.7 the compilation goes through ok:
./buildconf
./configure --disable-all
make
but then the following appears when running CLI SAPI:
./sapi/cli/php -v
Error relocating sapi/cli/php: unsupported relocation type 37
and exits with 127 code.
When running valgrind --leak-check=full --show-leak-kinds=all
sapi/cli/php -v
/opt/php-src # valgrind --leak-check=full --show-leak-kinds=all
sapi/cli/php -v
==22== Memcheck, a memory error detector
==22== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==22== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright
info
==22== Command: sapi/cli/php -v
==22==
==22== Invalid free() / delete / delete[] / realloc()
==22== at 0x4C939EA: free (vg_replace_malloc.c:530)
==22== by 0x405807B: ??? (in /lib/ld-musl-x86_64.so.1)
==22== Address 0x4e9b180 is in a rw- mapped file
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so segment
==22==
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
==22==
==22== HEAP SUMMARY:
==22== in use at exit: 404 bytes in 1 blocks
==22== total heap usage: 1 allocs, 1 frees, 404 bytes allocated
==22==
==22== 404 bytes in 1 blocks are still reachable in loss record 1 of 1
==22== at 0x4C9461F: calloc (vg_replace_malloc.c:711)
==22== by 0x40591A7: ??? (in /lib/ld-musl-x86_64.so.1)
==22== by 0x4059E4F: __dls3 (in /lib/ld-musl-x86_64.so.1)
==22== by 0x40117DF: ??? (in /lib/ld-musl-x86_64.so.1)
==22==
==22== LEAK SUMMARY:
==22== definitely lost: 0 bytes in 0 blocks
==22== indirectly lost: 0 bytes in 0 blocks
==22== possibly lost: 0 bytes in 0 blocks
==22== still reachable: 404 bytes in 1 blocks
==22== suppressed: 0 bytes in 0 blocks
==22==
==22== For counts of detected and suppressed errors, rerun with: -v
==22== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
ldd shows the following:
ldd sapi/cli/php
/lib/ld-musl-x86_64.so.1 (0x7f82e4eff000)
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1
(0x7f82e4eff000)
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Error relocating sapi/cli/php: unsupported relocation type 37
Expected result:
----------------
exit with code 0
Actual result:
--------------
Error relocating sapi/cli/php: unsupported relocation type 37
--
Edit bug report at https://bugs.php.net/bug.php?id=76392&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76392&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76392&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76392&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76392&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76392&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76392&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76392&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76392&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76392&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76392&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76392&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76392&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76392&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76392&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76392&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76392&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76392&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76392&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76392&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76392&r=mysqlcfg