Bug #78228 [Com]: base64_decode causes Illegal instruction (core dumped)

From: Date: Fri, 28 Jun 2019 11:03:35 +0000
Subject: Bug #78228 [Com]: base64_decode causes Illegal instruction (core dumped)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221545@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78228&edit=1

 ID:                 78228
 Comment by:         pawaroti at gmail dot com
 Reported by:        pawaroti at gmail dot com
 Summary:            base64_decode causes Illegal instruction (core
                     dumped)
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   Debian GNU/Linux 9 (stretch)
 PHP Version:        7.3.6
 Block user comment: N
 Private report:     N

 New Comment:

I run PHP in Docker container from official repo: https://hub.docker.com/_/php

FROM php:7.3.6-fpm


Previous Comments:
------------------------------------------------------------------------
[2019-06-28 10:58:26] nikic@php.net

How did you compile/get PHP?

------------------------------------------------------------------------
[2019-06-28 10:57:10] pawaroti at gmail dot com

Description:
------------
Works on Ubuntu 16.04.6 LTS (Xenial Xerus)

Doesn't work on Debian GNU/Linux 9 (stretch)

$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 63
model name	: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
stepping	: 2
microcode	: 0x31
cpu MHz		: 2600.098
cache size	: 25600 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 1
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 15
wp		: yes
flags		: fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm
constant_tsc rep_good nopl pni pclmulqdq ssse3 sdbg fma cx16 sse4_1 sse4_2 movbe popcnt
tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm epb fsgsbase bmi1 avx2 bmi2 erms dtherm
ida arat pln pts
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
bogomips	: 5200.19
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 63
model name	: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
stepping	: 2
microcode	: 0x31
cpu MHz		: 2600.098
cache size	: 25600 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 1
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 15
wp		: yes
flags		: fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm
constant_tsc rep_good nopl pni pclmulqdq ssse3 sdbg fma cx16 sse4_1 sse4_2 movbe popcnt
tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm abm epb fsgsbase bmi1 avx2 bmi2 erms dtherm
ida arat pln pts
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
bogomips	: 5200.19
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:



Test script:
---------------
$STRING = '564dace0-391c-42b6-d098-5b7742cb19ee';
$output = base64_encode($STRING);
print_r($output);

Expected result:
----------------
NTY0ZGFjZTAtMzkxYy00MmI2LWQwOTgtNWI3NzQyY2IxOWVl

Actual result:
--------------
Illegal instruction (core dumped)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78228&edit=1


Thread (18 messages)

« previous php.bugs (#221545) next »