[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:38:36 -1000 |
On Tue, Feb 23, 2010 at 1:10 AM, Paolo Bonzini <address@hidden> wrote:
>
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_INVALID_ADDRESS at address: 0xffffffffffffffff
>> 0x0000000100000bde in main () at incr.c:19
>> 19 jit_leaf(1); /* leaf 1
>> */
>> (gdb)
>
> Can you type
>
> disass *codeBuffer *(codeBuffer+100)
>
> in gdb?
Sure here are the results:
(gdb) run
Starting program: /Users/rovitotv/prog/lightning/test/incr
Reading symbols for shared libraries +. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xffffffffffffffff
0x0000000100000bde in main () at incr.c:19
19 jit_leaf(1); /* leaf 1 */
(gdb) disass *codeBuffer *(codeBuffer+100)
Cannot access memory at address 0xffffffffffffffff
Strange I guess it is not allocating the RAM correctly with the mmap
command. I did another gdb session with a break at the start and I
get similar results here:
(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, 1024, 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) disass *codeBuffer *(codeBuffer+100)
Cannot access memory at address 0xffffffffffffffff
Again thanks for the excellent support.
- [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 <=
- 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, 2010/02/23
- Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2, Ludovic Courtès, 2010/02/24