[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: [Chicken-bugs] #319: Chicken segfaults on Linux a
From: |
Chicken Scheme |
Subject: |
[Chicken-janitors] Re: [Chicken-bugs] #319: Chicken segfaults on Linux amd64 |
Date: |
Sat, 08 Sep 2007 21:06:46 -0000 |
#319: Chicken segfaults on Linux amd64
---------------------------------+------------------------------------------
Reporter: asandroq | Owner: felix
Type: defect | Status: assigned
Priority: critical | Component: compiler
Version: 2.7 | Resolution:
Keywords: segfault amd64 linux |
---------------------------------+------------------------------------------
Comment (by asandroq):
Sorry I wasn't clear. I compiled the SVN trunk from 09/07/2007.
version:
{{{
this is CHICKEN
Version 2.705 - linux-unix-gnu-x86-64 - [ 64bit manyargs dload applyhook ]
(c)2000-2007 Felix L. Winkelmann
}}}
apply-hack.x86-64.s:
{{{
.text
.globl _C_do_apply_hack
.type _C_do_apply_hack, @function
_C_do_apply_hack:
movq %rdi, %r11 /* get proc */
movq %rsi, %r10 /* save buffer address, before we clobber
%rsi */
cmpl $6, %edx /* clamp at 6 */
ja l2
je l3
movq $6, %rbx /* (6 - count) * 4 gives instruction
address */
subq %rdx, %rbx
shlq $2, %rbx
lea l3(%rip), %rdx
addq %rdx, %rbx
jmp *%rbx
l2: lea 48(%r10), %rsp
l3: movq 40(%r10), %r9 /* fill registers... */
movq 32(%r10), %r8
movq 24(%r10), %rcx
movq 16(%r10), %rdx
movq 8(%r10), %rsi
movq (%r10), %rdi
xorq %rax, %rax
call *%r11
}}}
--
Ticket URL: <http://trac.callcc.org/ticket/319#comment:2>
Chicken Scheme <http://www.call-with-current-continuation.org/>
The CHICKEN Scheme-to-C compiler