Skip to content

Instantly share code, notes, and snippets.

@mszabo-wikia
Created November 18, 2022 00:17
Show Gist options
  • Select an option

  • Save mszabo-wikia/f91453e2ad9e59e018449301bdcc9397 to your computer and use it in GitHub Desktop.

Select an option

Save mszabo-wikia/f91453e2ad9e59e018449301bdcc9397 to your computer and use it in GitHub Desktop.
ASAN output
/usr/src/php/Zend/zend_alloc.c:1255:31: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_mm_free_slot', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 00 70 52 cd b9 49 7f 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:146:2: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 00 70 52 cd b9 49 7f 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_types.h:1155:14: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_refcounted_h', which requires 4 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 00 70 52 cd b9 49 7f 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_types.h:1156:10: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_refcounted_h', which requires 4 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 b9 49 7f 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:147:20: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 b9 49 7f 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:148:14: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 01 00 00 00 08 03 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:149:16: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00 2d 01 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:168:9: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 00 00 7e 02
^
/usr/src/php/Zend/zend_string.h:169:21: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:855:2: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:1948:24: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:1952:7: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:1953:7: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:1953:28: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:1969:3: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_alloc.c:1278:23: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_mm_free_slot', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:146:2: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 e0 51 cd b9 49 7f 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_types.h:1155:14: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_refcounted_h', which requires 4 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 e0 51 cd b9 49 7f 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_types.h:1156:10: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_refcounted_h', which requires 4 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 49 7f 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:147:20: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 49 7f 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:148:14: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:149:16: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 12 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:168:9: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:169:21: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:2209:3: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:109:9: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.c:49:23: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.c:49:38: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.c:49:21: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_hash.c:664:15: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 d4 d4 6e a5 a0 0f ae db 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:745:14: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 d4 d4 6e a5 a0 0f ae db 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:746:28: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 d4 d4 6e a5 a0 0f ae db 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/ext/standard/string.c:819:6: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 02 00 00 00 16 00 00 00 d4 d4 6e a5 a0 0f ae db 16 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:349:25: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 c7 37 ac 38 84 aa 86 96 11 00 00 00 00 00 00 00 4d 65 64 69
^
/usr/src/php/Zend/zend_string.h:109:31: runtime error: member access within misaligned address 0x7f49b9cd523f for type 'struct zend_string', which requires 8 byte alignment
0x7f49b9cd523f: note: pointer points here
00 00 00 00 01 00 00 00 16 00 00 00 c7 37 ac 38 84 aa 86 96 11 00 00 00 00 00 00 00 4d 65 64 69
^
AddressSanitizer:DEADLYSIGNAL
=================================================================
==10==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x5619ec48d72d bp 0x7fffd6ae7640 sp 0x7fffd6ae7600 T0)
==10==The signal is caused by a READ memory access.
==10==Hint: this fault was caused by a dereference of a high value address (see register values below). Dissassemble the provided pc to learn which register was used.
#0 0x5619ec48d72d in zend_mm_alloc_small /usr/src/php/Zend/zend_alloc.c:1255
#1 0x5619ec48d72d in zend_mm_alloc_heap /usr/src/php/Zend/zend_alloc.c:1326
#2 0x5619ec48d72d in _emalloc /usr/src/php/Zend/zend_alloc.c:2540
#3 0x5619ec03c2fc in zend_string_alloc /usr/src/php/Zend/zend_string.h:144
#4 0x5619ec03c2fc in php_strtr_ex /usr/src/php/ext/standard/string.c:2683
#5 0x5619ec03c2fc in zif_strtr /usr/src/php/ext/standard/string.c:3238
#6 0x61e3974d (/dev/zero (deleted)+0x2000174d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /usr/src/php/Zend/zend_alloc.c:1255 in zend_mm_alloc_small
==10==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment