[LLVMdev] VMKIT: Assertion at build

Alexander Betts alex.betts at gmail.com
Sat Jun 9 09:14:01 PDT 2012


On Jun 7, 2012, at 4:32 PM, Foivos S. Zakkak wrote:

> Hi Nicolas,
> 
> it looks like there are missing things
> 
> $ more lib/j3/LLVMRuntime/LLVMRuntime.inc
> // Generated by llvm2cpp - DO NOT MODIFY!
> 
> 
> Module* makeLLVMModuleContents(Module *mod) {
> 
> mod->setModuleIdentifier("<stdin>");
> 
> // Type Definitions
> 
> // Function Declarations
> 
> // Global Variable Declarations
> 
> 
> // Constant Definitions
> 
> // Global Variable Definitions
> 
> // Function Definitions
> 
> return mod;
> 
> }
> 
> Foivos


Hi guys --

I'm having a similar problem with VMKit - the build fails at the same point as it does for Foivos, although my stack trace is different:

This is the error reported by the vmjc command:

Thread 0x110000000 received a SIGSEGV: either the VM code or an external
native method is bogus. Aborting...
0  vmjc            0x0000000000eb05ff
1  vmjc            0x0000000000eb0ae9
2  libpthread.so.0 0x000000393180ebe0
3  libc.so.6       0x0000003930830285 gsignal + 53
4  libc.so.6       0x0000003930831d30 abort + 272
5  vmjc            0x0000000000583cb7 ThrowNullPointerException + 71
6  vmjc            0x000000000050cf38 j3::JavaMethod::invokeIntSpecialAP(j3::Jnjvm*, j3::Class*, j3::JavaObject*, __va_list_tag*) + 56
7  vmjc            0x000000000050d715 j3::JavaMethod::invokeIntSpecial(j3::Jnjvm*, j3::Class*, j3::JavaObject*, ...) + 117
8  vmjc            0x0000000000524af8 j3::JavaObjectClass::getDeclaredConstructors(j3::JavaObjectClass*, bool) + 520
9  vmjc            0x0000000000530496 Java_java_lang_VMClass_getDeclaredConstructors + 38
10 vmjc            0x00007f3400e46a40 Java_java_lang_VMClass_getDeclaredConstructors + 139861324555728

This is the stack trace reported by gdb:

#0  0x000000000050cf37 in j3::JavaMethod::invokeIntSpecialAP(j3::Jnjvm*, j3::Class*, j3::JavaObject*, __va_list_tag*) ()
#1  0x000000000050d715 in j3::JavaMethod::invokeIntSpecial(j3::Jnjvm*, j3::Class*, j3::JavaObject*, ...) ()
#2  0x0000000000524af8 in j3::JavaObjectClass::getDeclaredConstructors(j3::JavaObjectClass*, bool) ()
#3  0x0000000000530496 in Java_java_lang_VMClass_getDeclaredConstructors ()
#4  0x00007ffff5fbaa40 in ?? ()
#5  0x00000001100fdf80 in ?? ()
#6  0x00007ffff5fba9fb in ?? ()
#7  0x0000000002147dd0 in ?? ()
#8  0x0000000000000000 in ?? ()

My LLVMRuntime.inc /does/ have a lot of stuff in the "// Type Definitions" and "// Function Declarations" sections (and nothing in the other sections).

This error occurs on a CentOS 5.8 system. llvm, clang, and vmkit are all being built from SVN (llvm and clang themselves were built with gcc 4.6.2). I've seen the same error on an OS X machine (10.7.3).

thanks!

-- Alex



More information about the llvm-dev mailing list