Operating System - HP-UX
1832348 Members
2542 Online
110041 Solutions
New Discussion

adb64 can not open core file over 2GB

 
Alexey Roytman
Frequent Advisor

adb64 can not open core file over 2GB

On the following system:
HP-UX ring B.11.11 U 9000/800 1868900601 unlimited-user license
The original adb64 can not open core file of 64-bit application that is over 2GB.

adb64 ./hyperroll $TMPDIR/core.org
PA-64 adb ($h help $q quit)
cannot open `/hyperroll/run/alexey/tmp/core.org', errno = 72, Value too large to be stored in data type

When I use the adb64 from the patch PHCO_31592, ir reports something different:

~/src/hpux11/patches/adb-open64/adb-64 ./hyperroll $TMPDIR/core.org
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown file type.
adb: warning: File '/hyperroll/run/alexey/tmp/core.org' is not a memory file.

Both of adb64 do not work.

The core file size is 2,239,305,600 bytes.

Please do not recommend other debuggers (q4, gdb, etc).
16 REPLIES 16
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

I've traced it by "tusc" tool, and have seen the following calls:

open("/hyperroll/run/alexey/tmp/core.org", O_RDONLY|O_LARGEFILE, 070100) = 4
fstat(4, 0x7f7f1750) ERR#72 EOVERFLOW
harry d brown jr
Honored Contributor

Re: adb64 can not open core file over 2GB


what does

what `which adb64`

return?

What was this application written in?

What compiler was used?

live free or die
harry d brown jr
Live Free or Die
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

/usr/bin/adb64:
$Revision: B.11.11_LR
Fri Oct 27 01:03:48 PDT 2000 $
92453-07 linker command s800.sgs libelf PA64 B.11.16 BE 000601
$ B.11.11_LR Oct 26 2000 22:38:10 $

./adb-64:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
$Revision: B11.23.0409LR
(this one taken from the HPUX 11.33 patch)

/opt/aCC/bin/aCC:
HP aC++ B3910B A.03.13
HP aC++ B3910B X.03.11.10 Language Support Library
(the compiler used)

/usr/bin/ld:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
HP aC++ B3910B A.03.52 Classic Iostream Library
HP aC++ B3910B A.03.52 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.43 REL 050124

"swlist | grep GOLD" returns:
GOLDAPPS11i B.11.11.0406.5 (June 2004)
GOLDBASE11i B.11.11.0406.5 (June 2004)

harry d brown jr
Honored Contributor

Re: adb64 can not open core file over 2GB

You need to bring your machine upto Dec 2004, and upgrade aCC to at least A.03.52:

what `which aCC`
/opt/aCC/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
HP aC++ B3910B A.03.52
HP aC++ B3910B A.03.52
HP aC++ B3910B X.03.37.01 Language Support Library

Also, what are your kernel parameter settings?

kmtune

live free or die
harry d brown jr
Live Free or Die
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

Sorry, I do not *need*. Further versions of C++ compiler are separate products, and should be *bought* (there is no upgrade).

Also, we expect that adb64 is not a part of aCC bundle. As I've seen from the PHCO_31592, our expectations are right, and adb should be fixed.

My tries with library interposing of open() and fstat() functions (LD_PRELOAD) didn't catch for adb64 binary.
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

Full kmtune output attached.

I think you were interested in maxdsiz*:
maxdsiz 0x80000000 - 0X80000000
maxdsiz_64bit 0x300000000 - 0X300000000
harry d brown jr
Honored Contributor

Re: adb64 can not open core file over 2GB

You are applying an 11.23 patch (PHCO_31592) on an 11.11 machine?

live free or die
harry d brown jr
Live Free or Die
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

No, I can not apply this patch:
1. OS version does not match
2. The patch does not fix the problem fully

I've just extracted binaries from the depot file (using "tar -xf ...").
harry d brown jr
Honored Contributor

Re: adb64 can not open core file over 2GB

I'd bring aC++ up to 3.63: http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.pdb|patch.breadcrumb.search|&patchid=PHSS_32508&context=hpux:800:11:11
and the runtime to 3.61: http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.pdb|patch.breadcrumb.search|&patchid=PHSS_32573&context=hpux:800:11:11

If it continues to have issue with adb, then I'd open a support call with HP.

live free or die
harry d brown jr
Live Free or Die
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

As I've told above, A.03.13 is a last patch. The later patches (and the one that you've recommended, too) are other products, and if I want to install them, I should buy later version of compiler.

Also, can you explain *exactly*, how aCC and C++ runtime bundle affect adb64 behavior ? adb64 does not use dependant libraries (ldd shows none, chatr says it's a shared executable, but not dynamically linked).
I want to know *exactly* *how* these patches may fix the problem. Because as far as I understand (and I may be wrong), that seem to have no effect.
harry d brown jr
Honored Contributor

Re: adb64 can not open core file over 2GB

If you have all the answers then enough said!

live free or die
harry d brown jr
Live Free or Die
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

Maybe, you're right, and the only solution is to open an HP bug fix request.
A. Clay Stephenson
Acclaimed Contributor

Re: adb64 can not open core file over 2GB

As a workaround, I would use dd and write the first 2GB or less to another file and then start adb on that file. I rather doubt that you need that much of the core image to do a stack trace.
If it ain't broke, I can fix that.
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

This was a first thing I've tried :-) This does not give me any nesessary information (the application has over 40 threads).

Re: adb64 can not open core file over 2GB

Do you have this patch:

PHCO_28774 s700_800 11.11 nadb(1) enablement

This certainly adds a newer version of adb to your 11.11 system for both 32 & 64 bit cores. Doesn't actually indicate whether it fixes your problem though... I guess its worth a try.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Alexey Roytman
Frequent Advisor

Re: adb64 can not open core file over 2GB

I've downloaded NEWADB11i.depot, installed nadb, and installed the patch described above. Nothing changed:

nadb ./hyperroll $TMPDIR/core.org
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown errno: 72.
adb: warning: /hyperroll/run/alexey/tmp/core.org: Unknown file type.
adb: warning: File '/hyperroll/run/alexey/tmp/core.org' is not a memory file.
adb>