Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - More another messages happen on gdb with attaching:: (2 Items)
   
More another messages happen on gdb with attaching:  
More another messages happen on gdb with attaching:

 

 

We tried to use the attaching feature of debug how as following instructions.

 

Then the following error message happen as ‘Can't read symbols from /usr/qnx641/target/qnx6/x86/lib/libc.so.3: Memory 
exhausted Error while reading shared library symbols:’

 

Please let me know regarding these massage.

------------------------------------- 

# gdb pacrun

GNU gdb 6.8 qnx-nto update 5 (rev. 398)

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "i386-pc-nto-qnx6.3.0"...

(gdb) attach 1572907

Attaching to program `/root/pac/Unit/Release/bin/pacrun', process 1572907

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

[New process 1572907]

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/lib/libc.so.3: Memory exhausted

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/usr/lib/libBSPlib.so: Memory exhausted

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/usr/lib/libIOPDriver.so: Memory exhausted

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/lib/libsocket.so.2: Memory exhausted

../../gdb/utils.c:904: internal-error: virtual memory exhausted: can't allocate 4072 bytes.

A problem internal to GDB has been detected,

further debugging may prove unreliable.

Quit this debugging session? (y or n) n

 

../../gdb/utils.c:904: internal-error: virtual memory exhausted: can't allocate 4072 bytes.

A problem internal to GDB has been detected,

further debugging may prove unreliable.

Create a core file of GDB? (y or n) y

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/usr/lib/libFgwXml.so: Memory exhausted

 

../../gdb/utils.c:904: internal-error: virtual memory exhausted: can't allocate 5248 bytes.

A problem internal to GDB has been detected,

further debugging may prove unreliable.

Quit this debugging session? (y or n) n

 

../../gdb/utils.c:904: internal-error: virtual memory exhausted: can't allocate 5248 bytes.

A problem internal to GDB has been detected,

further debugging may prove unreliable.

Create a core file of GDB? (y or n) y

Error while reading shared library symbols:

Can't read symbols from /usr/qnx641/target/qnx6/x86/usr/lib/libPC21Agent.so: Memory exhausted

Memory fault

#
Re: More another messages happen on gdb with attaching:  
It looks like you are running out of memory. Gdb needs a lot of memory
for loading symbols.

Have you tried remote debugging? It uses a lot less memory on your
target, and provides a possibility of using IDE.

Let me know if you need help with remote debugging.


Thank you,

Aleksandar