Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2001 15:03:57 -0600
From:      "hackthis" <hackthis@texas.net>
To:        <freebsd-hackers@freebsd.org>
Subject:   gcc and exceptions and frame.c
Message-ID:  <005401c0b0b8$1e7f3ca0$6346a8c0@hackthis>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Freebsd-hackers:

Been trying to debug a program of mine and keep running into these errors.  I was wondering
if there is a problem with exceptions and gccor with freebsd in general??  I think frame.c has to do with exceptions.
What do you all think about all those cannot access memory errors.

Thanks for any help,
c.r.g.

# gdb /a.out ./a.out.core
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
Core was generated by `a.out'.
Program terminated with signal 6, Abort trap.
Cannot access memory at address 0x280f0e3c.
#0  0x2815c530 in ?? ()Cannot access memory at address 0x280f0e3c.
(gdb) bt
#0  0x2815c530 in ?? ()Cannot access memory at address 0x280f0e3c.
#2  0x2816a55f in ?? ()Cannot access memory at address 0x280f0e3c.
#3  0x28169fc3 in ?? ()Cannot access memory at address 0x280f0e3c.
#4  0x28169d71 in ?? ()Cannot access memory at address 0x280f0e3c.
#5  0xbfbfdfcc in ?? ()Cannot access memory at address 0x280f0e3c.
#6  0x80a3aa7 in frame_init (ob=0x8119cc8) at ./frame.c:626
626     ./frame.c: No such file or directory.
Current language:  auto; currently c
#7  0x80a3afa in find_fde (pc=0x80a2e46) at ./frame.c:626
626     in ./frame.c
#8  0x80a3ffc in __frame_state_for (pc_target=0x80a2e46, state_in=0x819cbc0)
    at ./frame.c:627
627     in ./frame.c
#9  0x80a2e57 in __throw ()Cannot access memory at address 0x280f0e3c.
#10 0x80a4337 in __builtin_new (sz=356)
Cannot access memory at address 0x280f0e3c.
Current language:  auto; currently c++
#16 0x28139b3a in ?? ()Cannot access memory at address 0x280f0e3c.
#17 0x0 in ?? ()Cannot access memory at address 0x280f0e3c.
Initial frame selected; you cannot go up.

(gdb) info threads
* 1 process 8373  0x0 in ?? ()Cannot access memory at address 0x280f0e3c.
warning: Couldn't restore frame in current thread, at frame 0
0x0 in ?? ()Cannot access memory at address 0x280f0e3c.



compiling with 
$ g++295 -v
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd3.4/2.95.2/specs
gcc version 2.95.2 19991024 (release)


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Freebsd-hackers:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Been trying to debug a program of mine and keep 
running into these errors.&nbsp; I was wondering</FONT></DIV>
<DIV><FONT face=Arial size=2>if there is a problem with exceptions and gccor 
with freebsd in general??&nbsp; I think frame.c has to do with 
exceptions.</FONT></DIV>
<DIV><FONT face=Arial size=2>What do you all think about all those cannot access 
memory errors.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks for any help,</FONT></DIV>
<DIV><FONT face=Arial size=2>c.r.g.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># gdb /a.out ./a.out.core<BR>GNU gdb 
4.18<BR>Copyright 1998 Free Software Foundation, Inc.<BR>GDB is free software, 
covered by the GNU General Public License, and you are<BR>welcome to change it 
and/or distribute copies of it under certain conditions.<BR>Type "show copying" 
to see the conditions.<BR>There is absolutely no warranty for GDB.&nbsp; Type 
"show warranty" for details.<BR>This GDB was configured as 
"i386-unknown-freebsd"...<BR>Core was generated by `a.out'.<BR>Program 
terminated with signal 6, Abort trap.<BR>Cannot access memory at address 
0x280f0e3c.<BR>#0&nbsp; 0x2815c530 in ?? ()Cannot access memory at address 
0x280f0e3c.<BR>(gdb) bt<BR>#0&nbsp; 0x2815c530 in ?? ()Cannot access memory at 
address 0x280f0e3c.<BR>#2&nbsp; 0x2816a55f in ?? ()Cannot access memory at 
address 0x280f0e3c.<BR>#3&nbsp; 0x28169fc3 in ?? ()Cannot access memory at 
address 0x280f0e3c.<BR>#4&nbsp; 0x28169d71 in ?? ()Cannot access memory at 
address 0x280f0e3c.<BR>#5&nbsp; 0xbfbfdfcc in ?? ()Cannot access memory at 
address 0x280f0e3c.<BR>#6&nbsp; 0x80a3aa7 in frame_init (ob=0x8119cc8) at 
./frame.c:626<BR>626&nbsp;&nbsp;&nbsp;&nbsp; ./frame.c: No such file or 
directory.<BR>Current language:&nbsp; auto; currently c<BR>#7&nbsp; 0x80a3afa in 
find_fde (pc=0x80a2e46) at ./frame.c:626<BR>626&nbsp;&nbsp;&nbsp;&nbsp; in 
./frame.c<BR>#8&nbsp; 0x80a3ffc in __frame_state_for (pc_target=0x80a2e46, 
state_in=0x819cbc0)<BR>&nbsp;&nbsp;&nbsp; at 
./frame.c:627<BR>627&nbsp;&nbsp;&nbsp;&nbsp; in ./frame.c<BR>#9&nbsp; 0x80a2e57 
in __throw ()Cannot access memory at address 0x280f0e3c.<BR>#10 0x80a4337 in 
__builtin_new (sz=356)<BR>Cannot access memory at address 0x280f0e3c.<BR>Current 
language:&nbsp; auto; currently c++<BR>#16 0x28139b3a in ?? ()Cannot access 
memory at address 0x280f0e3c.<BR>#17 0x0 in ?? ()Cannot access memory at address 
0x280f0e3c.<BR>Initial frame selected; you cannot go up.<BR><BR>(gdb) info 
threads<BR>* 1 process 8373&nbsp; 0x0 in ?? ()Cannot access memory at address 
0x280f0e3c.<BR>warning: Couldn't restore frame in current thread, at frame 
0<BR>0x0 in ?? ()Cannot access memory at address 
0x280f0e3c.<BR><BR><BR><BR>compiling with <BR>$ g++295 -v<BR>Reading specs from 
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.4/2.95.2/specs<BR>gcc version 
2.95.2 19991024 (release)<BR></DIV></FONT></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005401c0b0b8$1e7f3ca0$6346a8c0>