[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] Re: [Gcl-devel] GCL failure

From: Camm Maguire
Subject: [Axiom-developer] Re: [Gcl-devel] GCL failure
Date: 18 Nov 2003 13:01:00 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2


((unsigned int)(((unsigned long)(((char *)(p))-DBEGIN)>>PAGEWIDTH)))

Tim Daly  <address@hidden> writes:

> address@hidden unixport]# gdb raw_pre_gcl
> gdb raw_pre_gcl
> GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db 
> library "/lib/tls/".
> (gdb) r ./ <foo
> r ./ <foo
> Starting program: /root/axiom/lsp/gcl-2.6.1/unixport/raw_pre_gcl ./ <foo
> Program received signal SIGSEGV, Segmentation fault.
> 0x080bb656 in enter_mark_origin (p=0x82e1100) at gbc.c:195
> 195     sgc_type_map[page(p)] |= SGC_PERM_WRITABLE ;
> (gdb) bt
> bt

OK, please lookup the detected C defines DBEGIN and PAGEWIDTH in
h/gclincl.h, and then figure out the value of page(p) according to
this macro definition:

((unsigned int)(((unsigned long)(((char *)(p))-DBEGIN)>>PAGEWIDTH)))

Please also do (at this point)

p heap_end
p holesize
p core_end

Take care,

> #0  0x080bb656 in enter_mark_origin (p=0x82e1100) at gbc.c:195
> #1  0x0808a773 in gcl_init_alloc () at alloc.c:739
> #2  0x0808baa3 in malloc (size=5) at alloc.c:1206
> #3  0x0804b6d6 in main (argc=2, argv=0xbfeb8ed4, envp=0xbfeb8ee0) at 
> main.c:171
> (gdb) 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]