Bug 787308

Summary: erl will not run in CentOS 6
Product: [Fedora] Fedora EPEL Reporter: Andy Theuninck <andy>
Component: erlangAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: el6CC: gemi, lemenkov, uwe
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-22 09:56:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andy Theuninck 2012-02-03 21:39:05 UTC
Description of problem:
My erl binary crashes instantly with an "Illegal instruction" error.

Version-Release number of selected component (if applicable):
Erlang (ASYNC_THREADS) (BEAM) emulator version 5.8.4, provided by package erlang-erts-R14B-03.3.el6.i686

How reproducible:
Always

Steps to Reproduce:
1. yum install erlang-erts-R14B-03.3.el6.i686
2. erl
  
Actual results:
$ erl
Illegal instruction

Expected results:
Erlang emulator shell prompt

Additional info:
Very amateur gdb investigation (the debuginfo-install command suggested fails to find anything):
(gdb) run
Starting program: /usr/lib/erlang/erts-5.8.4/bin/erlexec 
process 12368 is executing new program: /usr/lib/erlang/erts-5.8.4/bin/beam
[Thread debugging using libthread_db enabled]

Program received signal SIGILL, Illegal instruction.
0x080bf532 in schedule ()
Missing separate debuginfos, use: debuginfo-install erlang-erts-R14B-03.3.el6.i686
(gdb) backtrace
#0  0x080bf532 in schedule ()
#1  0x0812f7e9 in process_main ()
#2  0x080815cb in erl_start ()
#3  0x08066a5c in main ()

Comment 1 Peter Lemenkov 2013-01-22 09:56:13 UTC
It seems to be fixed in R14B04. I've just tested in a Qemu/KVM.