Got "Illegal instruction (core dumped)" error msg on Koding VM

679 views
Skip to first unread message

Leeds Huang

unread,
Sep 9, 2013, 6:37:22 PM9/9/13
to julia...@googlegroups.com
hi all,

I install julia 0.2.0 on my Koding.com VM (running ubuntu 13.04). After typing "julia" and press enter, I got the error message "Illegal instruction (core dumped)".

Is there anything wrong?

Sorry for my poor English.

regards

Viral Shah

unread,
Sep 10, 2013, 12:27:41 AM9/10/13
to julia...@googlegroups.com
Did you install julia from source?

-viral

Leeds Huang

unread,
Sep 12, 2013, 8:44:46 AM9/12/13
to julia...@googlegroups.com
Nope, I installed julia by "apt-get"

Viral Shah

unread,
Sep 13, 2013, 2:10:13 AM9/13/13
to julia...@googlegroups.com
This could be the same AVX instruction issue we have seen on other VMs. Does your VM support AVX instructions?

-viral

Elliot Saba

unread,
Sep 13, 2013, 3:39:21 AM9/13/13
to julia...@googlegroups.com
Also, what version of `llvm` do you have installed?

Leeds Huang

unread,
Sep 13, 2013, 8:14:35 AM9/13/13
to julia...@googlegroups.com
I am not sure, i just sent them a mail and waiting for the response.

Leeds Huang

unread,
Sep 13, 2013, 8:17:17 AM9/13/13
to julia...@googlegroups.com
I did not install any LLVM. Do I need to? I just follow the "Beta installation instructions" on the julialang.org (http://julialang.org/downloads/)

Kevin Squire

unread,
Sep 13, 2013, 1:07:23 PM9/13/13
to julia...@googlegroups.com
Hi Leeds,

Since Julia depends on llvm, presumably apt-get would have installed it for you.

What version does `dpkg -l llvm` show?

Kevin

Leeds Huang

unread,
Sep 13, 2013, 2:10:40 PM9/13/13
to julia...@googlegroups.com
It just showed me "dpkg-query: no packages found matching llvm".

Elliot Saba

unread,
Sep 17, 2013, 2:15:08 AM9/17/13
to julia...@googlegroups.com
The llvm packages usually have their version encoded in their name.  Try this:

`dpkg -l | grep llvm`

This should show packages such as llvm-3.2 or llvm-3.3 installed.  If you have 3.2 installed, try uninstalling it and installing 3.3.  (Via `apt-get install llvm-3.3`)
-E

Viral Shah

unread,
Sep 17, 2013, 2:16:59 AM9/17/13
to julia...@googlegroups.com
Elliot, should we put the dependency for llvm as >=3.3?

-viral

Elliot Saba

unread,
Sep 17, 2013, 2:19:53 AM9/17/13
to julia...@googlegroups.com
Yes, I was just updating the debian build script to do so.

Is the llvm runtime linked into Julia statically?  I'm doubting my sanity here, but I just realized that llvm is a build-only dependency of Julia on Ubuntu, and I have an ubuntu box with a functional Julia and no llvm packages in sight.
-E

Viral Shah

unread,
Sep 17, 2013, 2:23:55 AM9/17/13
to julia...@googlegroups.com
Yes - it does get linked statically. However, Sebastien says he prefers it to be dynamically linked. When he tried that in the past, we had strange errors (captured in some issue).

-viral

Leeds Huang

unread,
Sep 17, 2013, 1:45:34 PM9/17/13
to julia...@googlegroups.com
Thanks for the info, but I still failed to run julia.

Yup `dpkg -l | grep llvm` showed me llvm-3.2 installed, but I don't know how to uninstall it. `sudo apt-get remove llvm-3.2` showed me package llvm-3.2 not installed, so I simply try `sudo apt-get install llvm-3.3`.

Then `dpkg -l | grep llvm` show me these (also the 1st line exists before I install llvm-3.3):

ii  libllvm3.2:amd64                          3.2-2ubuntu5                        amd64        Low-Level Virtual Machine (LLVM), runtime library                                                      
ii  libllvm3.3:amd64                          1:3.3-3~raring1                     amd64        Low-Level Virtual Machine (LLVM), runtime library                                                      
ii  llvm-3.3                                  1:3.3-3~raring1                     amd64        Low-Level Virtual Machine (LLVM)                                                                       
ii  llvm-3.3-dev                              1:3.3-3~raring1                     amd64        Low-Level Virtual Machine (LLVM), libraries and headers                                                
ii  llvm-3.3-runtime                          1:3.3-3~raring1                     amd64        Low-Level Virtual Machine (LLVM), bytecode interpreter   

To Viral Shah: I tried `cat /proc/cpuinfo`, I got these:

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping        : 11
microcode       : 0x1
cpu MHz         : 2299.998
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl pni pclmulqdq ssse3 cx1
6 sse4_1 sse4_2 x2apic popcnt aes avx hypervisor lahf_lm
bogomips        : 4599.99
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

Seems like it support AVX?

Kevin Squire

unread,
Sep 17, 2013, 1:48:40 PM9/17/13
to julia...@googlegroups.com
You might try removing libllvm3.2 as well.

Kevin

Elliot Saba

unread,
Sep 17, 2013, 1:57:26 PM9/17/13
to julia...@googlegroups.com
Removing these packages won't affect it, since the binary distribution is statically linked.  I'm sorry, but you will have to wait until Canonical's servers get around to compiling the latest nightly build, which should have llvm 3.3 statically linked inside of them, and should work properly on your machine.  This shouldn't take more than 24 hours.

-E

Leeds Huang

unread,
Sep 17, 2013, 2:06:11 PM9/17/13
to julia...@googlegroups.com
Ok thanks, I will wait! Thank you all you guys!

Leeds Huang

unread,
Sep 18, 2013, 5:22:27 PM9/18/13
to julia...@googlegroups.com
Yes, it works now after I installed julia again, thanks!

Elliot Saba

unread,
Sep 19, 2013, 12:27:04 PM9/19/13
to julia...@googlegroups.com
Excellent!  Thank you for letting us know!
Reply all
Reply to author
Forward
0 new messages