[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2
From: |
Todd Rovito |
Subject: |
Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2 |
Date: |
Tue, 23 Feb 2010 01:53:36 -1000 |
On Tue, Feb 23, 2010 at 1:49 AM, Paolo Bonzini <address@hidden> wrote:
> On 02/23/2010 12:38 PM, Todd Rovito wrote:
>>
>> Breakpoint 1, main () at incr.c:11
>> 11 codeBuffer = mmap (NULL, 1024, PROT_EXEC | PROT_READ |
>> PROT_WRITE,
>
> It sounds like on Snow Leopard you can only mmap entire pages, so
> s/1024/4096/.
Still no joy, here is the gdb session:
(gdb) break main
Breakpoint 1 at 0x100000b6e: file incr.c, line 11.
(gdb) run
Starting program: /Users/rovitotv/prog/lightning/test/incr
Reading symbols for shared libraries +. done
Breakpoint 1, main () at incr.c:11
11 codeBuffer = mmap (NULL, 4096, PROT_EXEC | PROT_READ |
PROT_WRITE,
(gdb) n
14 pifi incr = (pifi) (jit_set_ip(codeBuffer).iptr);
(gdb) disass *codeBuffer
Cannot access memory at address 0xffffffffffffffff
(gdb) c
Continuing.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xffffffffffffffff
0x0000000100000bde in main () at incr.c:17
17 jit_leaf(1); /* leaf 1 */
(gdb)
Dang, I feel like you guys almost have it solved.
- [Lightning] failure with GNU lightning on Mac OS X 10.6.2, Todd Rovito, 2010/02/23
- [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Ludovic Courtès, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Todd Rovito, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Paolo Bonzini, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Todd Rovito, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Paolo Bonzini, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2,
Todd Rovito <=
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Paolo Bonzini, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Todd Rovito, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Ludovic Courtès, 2010/02/24