|
From: | felix |
Subject: | Re: [Chicken-users] 'Stack overflow' on NetBSD/sparc64 |
Date: | Thu, 31 Jul 2003 00:19:11 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
Category 5 wrote:
felix <address@hidden> writes:I think this is more a circular structure problem than a too small stack. Can you rebuild everything with CFLAGS=-g? (just change the Makefile) and give me the backtrace from gdb?Here it is: % gdb ./chicken-static [...] Breakpoint 2, barf (code=23, loc=0x0) at runtime.c:844 844 C_word err = error_hook_symbol; (gdb) bt #0 barf (code=23, loc=0x0) at runtime.c:844 #1 0x398dbc in C_stack_overflow () at runtime.c:1447 #2 0x61d69c in f5054 (t0=-25984) at extras.c:3992
Thanks for the backtrace. It looks like the pointers into the stack are very high (see t0 in frame #2) on this machine the stack-exhaustion check assumes a "reserve" of 128k, which overflows the test. Please try the following: change the definition of C_STACK_RESERVE in chicken.h to 4096, instead of 128000 and re-make. cheers, felix
[Prev in Thread] | Current Thread | [Next in Thread] |