This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AIX gcc compiler memory management


Hello, 
I still wasn't able to solve the problem:
# gcc myfile.cpp -Wl,-bmaxdata:0x3000000 -o myexe -w
-mthreads 
# ./myexe
Trace/BPT trap(core dump)

I don't really know how to use the dbx debugger, but
this is what it shows as it might help:
#dbx myexe core
warning: unable to access address 0x30000064 from core
...
warning: unable to access address 0x30000064 from core
[using memory image in core]
warning: unable to access address 0x20092338 from core
pthdb_session.c, 487:1 PTHB_CALLBACK (callback failed)
k_thread.c, 2124: PTHDB_CALLBACK (callback failed)

Trace/BPT trap in _pthread_internal_error at
0xd000a24c
0xd000a24c(_pthread_internal_error + 0x7c) 80410014  
lwz r2, 0x14(r1)

can anyone pls tell me what the above output from dbx
mean? does it mean that the error is cause by pthread?
if yes, what can I do? I am porting this program from
linux/solaris. the code runs fine in these 2 OS. I
can't just make changes to maintain the compatibility.

I also used:
#cc_r myfile.cpp -Wl,-bmaxdata:0x3000000 -o myexe
ld:0711-317 ERROR: undefined symbol: Virtual table for
class "__DynaCastDesc_si_public": first non-inline
virtual function in "__DynaCastDesc_si_public" is not
defined.
ld:0711-317 ERROR: undefined symbol: Virtual table for
class "eti_cplusplus": first non-inline virtual
function is "eti_cplusplus" is not defined.
ld: 0711-317 ERROR: undefined symbol: operator
delete(void*)
ld: 0711-317 ERROR: undefined symbol: .operator
delete(void*)
ld: 0711-317 ERROR: undefined symbol: .operator
new(unsigned long)
ld:0711-317 Use the -bloadmap or -bnoquiet option to
obtain more information.

Can anyone tell me what's wrong with my compilation
command? I am using the evaluation copy of the xlC
compiler because we don't have the compiler yet.

I'd appreciate it very much for any help I can get.
-Ana




--- David Edelsohn <dje@watson.ibm.com> wrote:
> >>>>> Ana Yuseepi writes:
> 
> Ana> I tried to follow your advice, 
> Ana> # gcc myfile.cpp -Wl,-bmaxdata:0x30000000 -o
> myexe -w -lpthread
> 
> 	If you are going to use threads, use -mthreads
> option (for
> gcc-2.95) instead of manually linking with
> -lpthread.  The options are
> described in the GCC documentation.
> 
> Ana> #gcc -v
> Ana> Reading specs from
> Ana>
>
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/specs
> Ana> gcc version 2.95.2 19991024(release)
> 
> Ana> executing my program, it gives me:
> Ana> # ./myexe
> Ana> Trace/BPT trap (core dump)
> 
> 	Guessing is not useful.  You need to debug your
> application.
> 
> David


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]