Operating System - HP-UX
1821828 Members
3624 Online
109638 Solutions
New Discussion юеВ

Problems debugging with aCC 3.39 and WDB/GDB 3.3

 
David Black_5
Occasional Advisor

Problems debugging with aCC 3.39 and WDB/GDB 3.3

Hi were are trying to debug some 64bit code
but fail with "out of memory" as below:

Statically link debug executable built with

Compiler: aCC: HP ANSI C++ B3910B A.03.39
Server: HP-UX sydhp01 B.11.11 U 9000/800 1179464675 unlimited-user license

aCC options: -Wl,+vshlibunsats
-AA -Wl,-B,immediate -Wl,+s -Wl,+vnocompatwarnings +DA2.0W

l
elaina@sydhp01:~/london/ngdfm>gdb64 bin/SvrDbm_P_64
HP gdb 3.3 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
warning: File not processed by pxdb--about to process now.

Out of memory.

Can anyone help, we have recently increased
maxdsiz and maxdsiz_64bit to link this code.
Thanks,
Dave Black

4 REPLIES 4
Kent Ostby
Honored Contributor

Re: Problems debugging with aCC 3.39 and WDB/GDB 3.3

ENOMEM can be caused by either a lack of memory or a lack of swap space.

Check your swap space to make sure you have enough space there as well.

Keep in mind that for systems up to and including about 5 to 8 gig, that device swap space should be configured to at least 2 x RAM.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Jim Butler
Valued Contributor

Re: Problems debugging with aCC 3.39 and WDB/GDB 3.3

Check your dbcmaxpct parameter and verify that it does not evaluate to over 200 Mb

(dbcmaxpct * phys Memory ) = dbcmax...

Also, since you bumped maxdsiz, did you by chance also bump maxtsiz and maxssiz? I have normally tuned them all in conjunction with each other.

Values are 3000Mb (3 Gb), 256Mb, and 80 Mb respectively for the 3 tunables.

Also, try static linking. (not sure how you are linking...)

good luck
Man The Bilge Pumps!
Jim Butler
Valued Contributor

Re: Problems debugging with aCC 3.39 and WDB/GDB 3.3

oops "...Statically link debug executable built with " missed that....
Man The Bilge Pumps!
ranganath ramachandra
Esteemed Contributor

Re: Problems debugging with aCC 3.39 and WDB/GDB 3.3

a new version of pxdb along with the next linker/loader patches should be able to fix this problem. none of these are out yet, expected by december.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo