Re: Illegal Instruction in debug_build

2011-11-24 Thread Michael Barker
Hi, Yes I'm compiling mlvm which is a set of patches on the hotspot tree. I noticed that fix has recently made it's way through to the hotspot branch. However, I'm compiling against gcc 4.2 therefore the compiler falls through to the default case on the ifdef and hits the illegal instruction bug.

Re: Illegal Instruction in debug_build

2011-11-24 Thread Alexander Strange
I assume this thread is discussing building something besides macosx-port on OS X. I fixed this in the debug build in macosx-port hotspot here: http://hg.openjdk.java.net/macosx-port/macosx-port/hotspot/rev/51d10977410a Your code seems to be failing because of a compiler bug. That said, the LLVM

Re: Illegal Instruction in debug_build

2011-10-22 Thread Michael Barker
On Sat, Oct 22, 2011 at 3:08 PM, Michael Barker wrote: > This appears to work.  By work, it does crash when compiled in debug mode. Typo, I meant it does _not_ crash when compile with debug. Mike. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net htt

Re: Illegal Instruction in debug_build

2011-10-22 Thread Michael Barker
This appears to work. By work, it does crash when compiled in debug mode. --- a/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Sun Oct 16 20:57:02 2011 +0100 +++ b/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Sat Oct 22 12:27:35 2011 +0100 @@ -275,12 +275,11 @@ #endif address os::current_stack_pointer

Re: Illegal Instruction in debug_build

2011-10-15 Thread John Rose
I don't know the ins and outs of asm and grabbing rsp on Mac, but the OS X port group probably know something about it. -- John On Oct 15, 2011, at 8:49 AM, Michael Barker wrote: > Good luck! Thanks. I found where the problem is, it's in the os::current_stack_pointer method in os_bsd_x86.cpp

Re: Illegal Instruction in debug_build

2011-10-15 Thread Michael Barker
> Good luck! Thanks. I found where the problem is, it's in the os::current_stack_pointer method in os_bsd_x86.cpp and it depends on level of compilation. If I compile the code below without optimisation e.g.: #include class os { public: void* current_stack_pointer(); }; void* os::curre

Re: Illegal Instruction in debug_build

2011-09-30 Thread John Rose
On Sep 18, 2011, at 1:30 PM, Michael Barker wrote: > I've been trying to run a debug build on Mac OS, the normal build > works fine, but the debug version fails with an Illegal Instruction. > I've run it through gdb (output below), but I not sure how accurate > the information is. I think that it

Auto Reply: Illegal Instruction in debug_build

2011-09-18 Thread kirill . shirokov
On vacation till October 3. Will be reading email occasionally. ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Illegal Instruction in debug_build

2011-09-18 Thread Michael Barker
Hi, I've been trying to run a debug build on Mac OS, the normal build works fine, but the debug version fails with an Illegal Instruction. I've run it through gdb (output below), but I not sure how accurate the information is. I think that it's the result of a stack overflow, it takes around 2s t