Operating System - HP-UX
1752794 Members
5897 Online
108789 Solutions
New Discussion юеВ

Re: gdb - issue - 14 characters in length due to a limitation

 
Ionut Daniel Mosoiu
Occasional Contributor

gdb - issue - 14 characters in length due to a limitation

Hi all ,

tring to investigate an dubp file of an AM i've found the following issue :

$ gdb /usr/opt/temip/mmexe/HW_T2000_AM 2008_09_30_13:26HW_T2000_AM.ex
HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.9 (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: core file may not match specified executable file.
Core was generated by `HW_T2000_AM.ex'.



warning: HW_T2000_AM.ex is 14 characters in length. Due to a limitation
in the HP-UX kernel, core files contain only the first 14 characters
of an executable's name. Check if HW_T2000_AM.ex is a truncated name.
If it is so, core-file, packcore and other commands dealing with
core files will exhibit incorrect behavior. To avoid this, issue
exec-file and symbol-file commands with the full name of the executable
that produced the core; then issue the core-file, packcore or other
core file command of interest.



Program terminated with signal 6, Aborted.



(0) 0x40000000005aae00 gdb_crash_handler + 0x180 [/opt/langtools/bin/gdb]
(1) 0xe0000001080028e0 ---- Signal 11 (SIGSEGV) delivered ----
(2) 0xc000000000072500 LL_num_entries_xp + 0x60 at Lib/xp_lib.c:1018 [/usr/lib/hpux64/dld.so]
(3) 0xc000000000072e90 dlgetmodinfo_xp + 0x90 at User/xp_user.c:217 [/usr/lib/hpux64/dld.so]
(4) 0xc00000000006e910 _dlgetmodinfo + 0x60 at User/dlgetmodinfo.c:130 [/usr/lib/hpux64/dld.so]
(5) 0xc0000000003975d0 dlgetmodinfo + 0xb0 at Libdl/libdl.c:305 [/usr/lib/hpux64/libdl.so.1]
(6) 0x40000000004de290 dlgetmodinfo1 + 0x80 [/opt/langtools/bin/gdb]
(7) 0x40000000004dcdf0 read_dld_descriptor + 0x230 [/opt/langtools/bin/gdb]
(8) 0x40000000005140a0 hp_ia64_solib_add + 0x790 at ../../../Src/gnu/gdb/hp-ia64-solib.c:356 [/opt/langtools/bin/gdb]
(9) 0x400000000064d870 solib_add_stub + 0x30 at ../../../Src/gnu/gdb/corelow.c:229 [/opt/langtools/bin/gdb]
(10) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(11) 0x4000000000647270 core_open + 0x740 at ../../../Src/gnu/gdb/corelow.c:168 [/opt/langtools/bin/gdb]
(12) 0x40000000006aae30 core_file_command + 0xd0 at ../../../Src/gnu/gdb/corefile.c:114 [/opt/langtools/bin/gdb]
(13) 0x40000000004b2a00 do_captured_command + 0x60 at ../../../Src/gnu/gdb/top.c:823 [/opt/langtools/bin/gdb]
(14) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(15) 0x40000000004b2980 catch_command_errors + 0x60 at ../../../Src/gnu/gdb/top.c:788 [/opt/langtools/bin/gdb]
(16) 0x4000000000185fd0 captured_main + 0x25a0 [/opt/langtools/bin/gdb]
(17) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(18) 0x40000000001839e0 main + 0x60 [/opt/langtools/bin/gdb]
(19) 0xc00000000004f200 main_opd_entry + 0x50 [/usr/lib/hpux64/dld.so]
GDB crashed with signal 11! About to dump core into 'core' in the directory:

Any ideea where is the issue ?

Regards,

Ionut
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: gdb - issue - 14 characters in length due to a limitation

Your problem is gdb is aborting because libdl aborted, nothing to do with the 14 char limitation.

I've seen this signal 11 in LL_num_entries_xp before and I think it is due to a corrupted core file? Or you are trying to debug a core file on a different system than the one that created it. If you are trying to do this, you need to use packcore.

Is HW_T2000_AM the executable and 2008_09_30_13:26HW_T2000_AM.ex the core?
Ionut Daniel Mosoiu
Occasional Contributor

Re: gdb - issue - 14 characters in length due to a limitation

Hi Dennis,

thank you for your interest, yes of cores I├в m analyzing the core file on the same machine where he has been generated.

$ ls -lrt /usr/opt/temip/mmexe/ | grep T2000
lrwxr-xr-x 1 root users 41 Nov 14 2007 HW_T2000_AM.exe -> ../CRB520/hw_t2000_am/bin/HW_T2000_AM.exe
lrwxr-xr-x 1 root users 37 Nov 14 2007 HW_T2000_AM -> ../CRB520/hw_t2000_am/bin/HW_T2000_AM
$
The same issue I├в m facing with an other core file generated by Huawei M2000, I can not analyzed it.

lrwxr-xr-x 1 root sys 45 Aug 12 11:19 HUAWEI_M2000_AM -> ../CRB520/huawei_m2000_am/bin/HUAWEI_M2000_AM
lrwxr-xr-x 1 root sys 49 Aug 12 11:20 HUAWEI_M2000_AM.exe -> ../CRB520/huawei_m2000_am/bin/HUAWEI_M2000_AM.exe
$
In order to solved the issue with "14 char limitation" of kernel, what shell I do? Should I change the name of the executable what could be the impact?

Regards,

Ionut
Dennis Handly
Acclaimed Contributor

Re: gdb - issue - 14 characters in length due to a limitation

>yes of course I'm analyzing the core file on the same machine where it has been generated.

Ok, but that's not good news in that we don't have a reason for the abort.

$ ll -rt /usr/opt/temip/mmexe/ | grep T2000
HW_T2000_AM.exe -> ../CRB520/hw_t2000_am/bin/HW_T2000_AM.exe
HW_T2000_AM -> ../CRB520/hw_t2000_am/bin/HW_T2000_AM

Please add -L so we can see the actual files.

>The same issue I'm facing with an other core file generated by Huawei M2000, I can not analyze it.

As I said, it could be core file corruption or truncation. You might try the following on the core file:
elfdump -o -S core-file

HUAWEI_M2000_AM -> ../CRB520/huawei_m2000_am/bin/HUAWEI_M2000_AM
HUAWEI_M2000_AM.exe -> ../CRB520/huawei_m2000_am/bin/HUAWEI_M2000_AM.exe

Again please list with -L to follow the symlinks.

>In order to solve the issue with "14 char limitation" of kernel, what shell I do?

There is nothing to solve. That is a limitation that is easily worked around and shouldn't cause gdb to abort.

>Should I change the name of the executable what could be the impact?

It would only prevent the warning but won't solve your real problem. If this is easy to duplicate, go ahead and try it. You can also suppress the warning by having a symlink for HW_T2000_AM.ex to HW_T2000_AM.exe.

Your original application aborted with: Program terminated with signal 6, Aborted.

Were there any messages to stderr that say why it aborted?
Ionut Daniel Mosoiu
Occasional Contributor

Re: gdb - issue - 14 characters in length due to a limitation

Hi ,

done
$ ll -rtL /usr/opt/temip/mmexe/ | grep T2000
/usr/opt/temip/mmexe/temip_srcr_u_am not found
-rwxr-xr-x 1 root users 76320 Nov 8 2007 HW_T2000_AM
-rwxr-xr-x 1 root users 98290792 Nov 8 2007 HW_T2000_AM.exe

$ ll -rtL /usr/opt/temip/mmexe/ | grep M2000
/usr/opt/temip/mmexe/temip_srcr_u_am not found
-rwxr-xr-x 1 root sys 76424 Aug 12 11:14 HUAWEI_M2000_AM
-rwxr-xr-x 1 root sys 68141424 Aug 12 11:14 HUAWEI_M2000_AM.exe
$


Be Prepared :

$ elfdump -o -S 2008_09_30_13:26HW_T2000_AM.ex

2008_09_30_13:26HW_T2000_AM.ex:

*** Program Header ***

Type Offset Vaddr FSize Memsz

CoreVer 0000000000002df8 0000000000000000 0000000000000004 0000000000000004
CoreKern 0000000000002dfc 0000000000000000 000000000000003c 000000000000003c
CoreComm 0000000000002e38 0000000000000000 000000000000000f 000000000000000f
CoreProc 0000000000002e48 0000000000000000 000000000000be00 000000000000be00
CoreProc 000000000000ec48 0000000000000000 000000000000be00 000000000000be00
CoreProc 000000000001aa48 0000000000000000 000000000000be00 000000000000be00
CoreProc 0000000000026848 0000000000000000 000000000000be00 000000000000be00
CoreProc 0000000000032648 0000000000000000 000000000000be00 000000000000be00
CoreProc 000000000003e448 0000000000000000 000000000000be00 000000000000be00
CoreProc 000000000004a248 0000000000000000 000000000000be00 000000000000be00
CoreProc 0000000000056048 0000000000000000 000000000000be00 000000000000be00
CoreLoad 0000000000061e48 6000000000000000 000000003b2a0000 000000003b2a0000
CoreMMF 000000003b301e48 9fffffff7f3d0000 0000000000041000 0000000000041000
CoreMMF 000000003b342e48 9fffffff7f440000 0000000000041000 0000000000041000
CoreMMF 000000003b383e48 9fffffff7f4b0000 0000000000041000 0000000000041000
CoreMMF 000000003b3c4e48 9fffffff7f520000 0000000000041000 0000000000041000
CoreMMF 000000003b405e48 9fffffff7f590000 0000000000083000 0000000000083000
CoreMMF 000000003b488e48 9fffffff7f640000 0000000000041000 0000000000041000
CoreMMF 000000003b4c9e48 9fffffff7f6b0000 0000000000041000 0000000000041000
CoreMMF 000000003b50ae48 9fffffffbe7e0000 0000000000083000 0000000000083000
CoreMMF 000000003b58de48 9fffffffbe9c0000 0000000000083000 0000000000083000
CoreMMF 000000003b610e48 9fffffffbea46000 0000000000002000 0000000000002000
CoreMMF 000000003b612e48 9fffffffbea48000 0000000000002000 0000000000002000
CoreMMF 000000003b614e48 9fffffffbea4a000 0000000000002000 0000000000002000
CoreMMF 000000003b616e48 9fffffffbea4c000 0000000000002000 0000000000002000
CoreMMF 000000003b618e48 9fffffffbea4e000 0000000000007000 0000000000007000
CoreMMF 000000003b61fe48 9fffffffbea55000 0000000000002000 0000000000002000
CoreMMF 000000003b621e48 9fffffffbea57000 0000000000007000 0000000000007000
CoreMMF 000000003b628e48 9fffffffbea5e000 0000000000006000 0000000000006000
CoreMMF 000000003b62ee48 9fffffffbea64000 0000000000004000 0000000000004000
CoreMMF 000000003b632e48 9fffffffbea68000 0000000000008000 0000000000008000
CoreMMF 000000003b63ae48 9fffffffbea70000 0000000000004000 0000000000004000
CoreMMF 000000003b63ee48 9fffffffbea75000 0000000000008000 0000000000008000
CoreMMF 000000003b646e48 9fffffffbea7d000 0000000000007000 0000000000007000
CoreMMF 000000003b64de48 9fffffffbea84000 0000000000008000 0000000000008000
CoreMMF 000000003b655e48 9fffffffbea8c000 000000000005d000 000000000005d000
CoreMMF 000000003b6b2e48 9fffffffbeae9000 000000000000c000 000000000000c000
CoreMMF 000000003b6bee48 9fffffffbeaf5000 000000000000c000 000000000000c000
CoreMMF 000000003b6cae48 9fffffffbeb01000 000000000005f000 000000000005f000
CoreMMF 000000003b729e48 9fffffffbeb60000 0000000000019000 0000000000019000
CoreMMF 000000003b742e48 9fffffffbeb79000 0000000000002000 0000000000002000
CoreMMF 000000003b744e48 9fffffffbeb7c000 0000000000006000 0000000000006000
CoreMMF 000000003b74ae48 9fffffffbeb82000 000000000002e000 000000000002e000
CoreMMF 000000003b778e48 9fffffffbebd2000 0000000000002000 0000000000002000
CoreMMF 000000003b77ae48 9fffffffbebd4000 000000000000c000 000000000000c000
CoreMMF 000000003b786e48 9fffffffbec02000 0000000000002000 0000000000002000
CoreMMF 000000003b788e48 9fffffffbec04000 0000000000004000 0000000000004000
CoreMMF 000000003b78ce48 9fffffffbec08000 0000000000006000 0000000000006000
CoreMMF 000000003b792e48 9fffffffbec0e000 0000000000002000 0000000000002000
CoreMMF 000000003b794e48 9fffffffbec31000 000000000000f000 000000000000f000
CoreMMF 000000003b7a3e48 9fffffffbec61000 0000000000002000 0000000000002000
CoreMMF 000000003b7a5e48 9fffffffbec63000 000000000000d000 000000000000d000
CoreMMF 000000003b7b2e48 9fffffffbec92000 0000000000002000 0000000000002000
CoreMMF 000000003b7b4e48 9fffffffbec94000 0000000000008000 0000000000008000
CoreMMF 000000003b7bce48 9fffffffbec9c000 0000000000004000 0000000000004000
CoreMMF 000000003b7c0e48 9fffffffbeca0000 0000000000041000 0000000000041000
CoreMMF 000000003b801e48 9fffffffbece1000 000000000000f000 000000000000f000
CoreMMF 000000003b810e48 9fffffffbecf0000 0000000000083000 0000000000083000
CoreMMF 000000003b893e48 9fffffffbed74000 0000000000004000 0000000000004000
CoreMMF 000000003b897e48 9fffffffbed78000 0000000000004000 0000000000004000
CoreMMF 000000003b89be48 9fffffffbed7c000 0000000000002000 0000000000002000
CoreMMF 000000003b89de48 9fffffffbed84000 0000000000004000 0000000000004000
CoreMMF 000000003b8a1e48 9fffffffbed88000 0000000000004000 0000000000004000
CoreMMF 000000003b8a5e48 9fffffffbed8c000 0000000000002000 0000000000002000
CoreMMF 000000003b8a7e48 9fffffffbed8e000 0000000000002000 0000000000002000
CoreMMF 000000003b8a9e48 9fffffffbed90000 0000000000002000 0000000000002000
CoreMMF 000000003b8abe48 9fffffffbed92000 0000000000002000 0000000000002000
CoreMMF 000000003b8ade48 9fffffffbed94000 0000000000002000 0000000000002000
CoreMMF 000000003b8afe48 9fffffffbed96000 0000000000002000 0000000000002000
CoreMMF 000000003b8b1e48 9fffffffbed98000 0000000000002000 0000000000002000
CoreMMF 000000003b8b3e48 9fffffffbed9a000 0000000000002000 0000000000002000
CoreMMF 000000003b8b5e48 9fffffffbed9c000 0000000000002000 0000000000002000
CoreMMF 000000003b8b7e48 9fffffffbed9e000 0000000000002000 0000000000002000
CoreMMF 000000003b8b9e48 9fffffffbeda0000 000000000001e000 000000000001e000
CoreMMF 000000003b8d7e48 9fffffffbedbe000 0000000000002000 0000000000002000
CoreMMF 000000003b8d9e48 9fffffffbedc0000 0000000000002000 0000000000002000
CoreMMF 000000003b8dbe48 9fffffffbedc2000 0000000000002000 0000000000002000
CoreMMF 000000003b8dde48 9fffffffbedc4000 000000000008c000 000000000008c000
CoreMMF 000000003b969e48 9fffffffbee50000 0000000000011000 0000000000011000
CoreMMF 000000003b97ae48 9fffffffbee62000 0000000000002000 0000000000002000
CoreMMF 000000003b97ce48 9fffffffbee64000 0000000000002000 0000000000002000
CoreMMF 000000003b97ee48 9fffffffbee66000 0000000000002000 0000000000002000
CoreMMF 000000003b980e48 9fffffffbee68000 0000000000002000 0000000000002000
CoreMMF 000000003b982e48 9fffffffbee6a000 0000000000002000 0000000000002000
CoreMMF 000000003b984e48 9fffffffbee6c000 0000000000002000 0000000000002000
CoreMMF 000000003b986e48 9fffffffbee6e000 000000000000e000 000000000000e000
CoreMMF 000000003b994e48 9fffffffbee7c000 000000000000c000 000000000000c000
CoreMMF 000000003b9a0e48 9fffffffbee88000 0000000000006000 0000000000006000
CoreMMF 000000003b9a6e48 9fffffffbee8e000 0000000000002000 0000000000002000
CoreMMF 000000003b9a8e48 9fffffffbee90000 0000000000010000 0000000000010000
CoreMMF 000000003b9b8e48 9fffffffbeea0000 0000000000007000 0000000000007000
CoreMMF 000000003b9bfe48 9fffffffbeea8000 0000000000006000 0000000000006000
CoreMMF 000000003b9c5e48 9fffffffbeeae000 0000000000002000 0000000000002000
CoreMMF 000000003b9c7e48 9fffffffbeeb0000 0000000000010000 0000000000010000
CoreMMF 000000003b9d7e48 9fffffffbeec0000 0000000000002000 0000000000002000
CoreMMF 000000003b9d9e48 9fffffffbeec2000 0000000000002000 0000000000002000
CoreMMF 000000003b9dbe48 9fffffffbeec4000 0000000000003000 0000000000003000
CoreMMF 000000003b9dee48 9fffffffbeec7000 0000000000001000 0000000000001000
CoreMMF 000000003b9dfe48 9fffffffbeec8000 0000000000004000 0000000000004000
CoreMMF 000000003b9e3e48 9fffffffbeecc000 0000000000009000 0000000000009000
CoreMMF 000000003b9ece48 9fffffffbeed5000 0000000000001000 0000000000001000
CoreMMF 000000003b9ede48 9fffffffbeed6000 0000000000006000 0000000000006000
CoreMMF 000000003b9f3e48 9fffffffbeedc000 0000000000005000 0000000000005000
CoreMMF 000000003b9f8e48 9fffffffbeee2000 0000000000002000 0000000000002000
CoreMMF 000000003b9fae48 9fffffffbeee4000 0000000000002000 0000000000002000
CoreMMF 000000003b9fce48 9fffffffbeee6000 0000000000003000 0000000000003000
CoreMMF 000000003b9ffe48 9fffffffbeeea000 0000000000002000 0000000000002000
CoreMMF 000000003ba01e48 9fffffffbeeec000 000000000000c000 000000000000c000
CoreMMF 000000003ba0de48 9fffffffbeef9000 000000000001b000 000000000001b000
CoreMMF 000000003ba28e48 9fffffffbef14000 0000000000005000 0000000000005000
CoreMMF 000000003ba2de48 9fffffffbef19000 0000000000011000 0000000000011000
CoreMMF 000000003ba3ee48 9fffffffbef2a000 0000000000036000 0000000000036000
CoreMMF 000000003ba74e48 9fffffffbef60000 0000000000018000 0000000000018000
CoreMMF 000000003ba8ce48 9fffffffbef78000 0000000000004000 0000000000004000
CoreMMF 000000003ba90e48 9fffffffbef7c000 0000000000006000 0000000000006000
CoreMMF 000000003ba96e48 9fffffffbef82000 0000000000002000 0000000000002000
CoreMMF 000000003ba98e48 9fffffffbef84000 0000000000098000 0000000000098000
CoreMMF 000000003bb30e48 9fffffffbf01c000 0000000000004000 0000000000004000
CoreMMF 000000003bb34e48 9fffffffbf020000 0000000000001000 0000000000001000
CoreMMF 000000003bb35e48 9fffffffbf021000 0000000000013000 0000000000013000
CoreMMF 000000003bb48e48 9fffffffbf034000 0000000000006000 0000000000006000
CoreMMF 000000003bb4ee48 9fffffffbf03a000 0000000000002000 0000000000002000
CoreMMF 000000003bb50e48 9fffffffbf03c000 0000000000014000 0000000000014000
CoreMMF 000000003bb64e48 9fffffffbf050000 0000000000004000 0000000000004000
CoreMMF 000000003bb68e48 9fffffffbf054000 0000000000008000 0000000000008000
CoreMMF 000000003bb70e48 9fffffffbf05c000 000000000000b000 000000000000b000
CoreMMF 000000003bb7be48 9fffffffbf067000 0000000000002000 0000000000002000
CoreMMF 000000003bb7de48 9fffffffbf069000 0000000000007000 0000000000007000
CoreMMF 000000003bb84e48 9fffffffbf070000 0000000000006000 0000000000006000
CoreMMF 000000003bb8ae48 9fffffffbf076000 0000000000002000 0000000000002000
CoreMMF 000000003bb8ce48 9fffffffbf078000 000000000000c000 000000000000c000
CoreMMF 000000003bb98e48 9fffffffbf084000 0000000000004000 0000000000004000
CoreMMF 000000003bb9ce48 9fffffffbf088000 0000000000004000 0000000000004000
CoreMMF 000000003bba0e48 9fffffffbf08c000 0000000000008000 0000000000008000
CoreMMF 000000003bba8e48 9fffffffbf094000 0000000000007000 0000000000007000
CoreMMF 000000003bbafe48 9fffffffbf09b000 0000000000001000 0000000000001000
CoreMMF 000000003bbb0e48 9fffffffbf09c000 0000000000006000 0000000000006000
CoreMMF 000000003bbb6e48 9fffffffbf0a2000 0000000000005000 0000000000005000
CoreMMF 000000003bbbbe48 9fffffffbf0a7000 00000000000008e8 00000000000008e8
CoreMMF 000000003bbbc730 9fffffffbf0a8000 000000000000c000 000000000000c000
CoreMMF 000000003bbc8730 9fffffffbf0b4000 0000000000003000 0000000000003000
CoreMMF 000000003bbcb730 9fffffffbf0b7000 000000000001b000 000000000001b000
CoreMMF 000000003bbe6730 9fffffffbf0d2000 000000000003e000 000000000003e000
CoreMMF 000000003bc24730 9fffffffbf110000 0000000000015000 0000000000015000
CoreMMF 000000003bc39730 9fffffffbf125000 0000000000002000 0000000000002000
CoreMMF 000000003bc3b730 9fffffffbf127000 0000000000001000 0000000000001000
CoreMMF 000000003bc3c730 9fffffffbf128000 0000000000003000 0000000000003000
CoreMMF 000000003bc3f730 9fffffffbf12b000 0000000000001000 0000000000001000
CoreMMF 000000003bc40730 9fffffffbf12c000 0000000000004000 0000000000004000
CoreMMF 000000003bc44730 9fffffffbf130000 000000000000f000 000000000000f000
CoreMMF 000000003bc53730 9fffffffbf13f000 0000000000006000 0000000000006000
CoreMMF 000000003bc59730 9fffffffbf145000 0000000000003000 0000000000003000
CoreMMF 000000003bc5c730 9fffffffbf148000 0000000000008000 0000000000008000
CoreMMF 000000003bc64730 9fffffffbf150000 0000000000015000 0000000000015000
CoreMMF 000000003bc79730 9fffffffbf165000 0000000000001000 0000000000001000
CoreMMF 000000003bc7a730 9fffffffbf166000 0000000000002000 0000000000002000
CoreMMF 000000003bc7c730 9fffffffbf168000 0000000000002000 0000000000002000
CoreMMF 000000003bc7e730 9fffffffbf16a000 0000000000003000 0000000000003000
CoreMMF 000000003bc81730 9fffffffbf16d000 0000000000002000 0000000000002000
CoreMMF 000000003bc83730 9fffffffbf16f000 0000000000021000 0000000000021000
CoreMMF 000000003bca4730 9fffffffbf190000 0000000000082000 0000000000082000
CoreMMF 000000003bd26730 9fffffffbf212000 0000000000002000 0000000000002000
CoreMMF 000000003bd28730 9fffffffbf214000 000000000000c000 000000000000c000
CoreMMF 000000003bd34730 9fffffffbf220000 0000000000018000 0000000000018000
CoreMMF 000000003bd4c730 9fffffffbf238000 0000000000008000 0000000000008000
CoreMMF 000000003bd54730 9fffffffbf240000 0000000000050000 0000000000050000
CoreMMF 000000003bda4730 9fffffffbf290000 0000000000001000 0000000000001000
CoreMMF 000000003bda5730 9fffffffbf291000 0000000000001000 0000000000001000
CoreMMF 000000003bda6730 9fffffffbf292000 0000000000002000 0000000000002000
CoreMMF 000000003bda8730 9fffffffbf294000 0000000000004000 0000000000004000
CoreMMF 000000003bdac730 9fffffffbf298000 0000000000006000 0000000000006000
CoreMMF 000000003bdb2730 9fffffffbf29e000 0000000000002000 0000000000002000
CoreMMF 000000003bdb4730 9fffffffbf2a0000 0000000000048000 0000000000048000
CoreMMF 000000003bdfc730 9fffffffbf2e8000 0000000000006000 0000000000006000
CoreMMF 000000003be02730 9fffffffbf2ee000 0000000000001000 0000000000001000
CoreMMF 000000003be03730 9fffffffbf2ef000 0000000000001000 0000000000001000
CoreMMF 000000003be04730 9fffffffbf2f0000 00000000002d1000 00000000002d1000
CoreMMF 000000003c0d5730 9fffffffbf5c1000 0000000000001000 0000000000001000
CoreMMF 000000003c0d6730 9fffffffbf5c2000 0000000000002000 0000000000002000
CoreMMF 000000003c0d8730 9fffffffbf5c4000 0000000000004000 0000000000004000
CoreMMF 000000003c0dc730 9fffffffbf5c8000 000000000000e000 000000000000e000
CoreMMF 000000003c0ea730 9fffffffbf5d6000 0000000000001000 0000000000001000
CoreMMF 000000003c0eb730 9fffffffbf5d7000 0000000000079000 0000000000079000
CoreMMF 000000003c164730 9fffffffbf650000 0000000000056000 0000000000056000
CoreMMF 000000003c1ba730 9fffffffbf6a6000 0000000000003000 0000000000003000
CoreMMF 000000003c1bd730 9fffffffbf6a9000 0000000000003000 0000000000003000
CoreMMF 000000003c1c0730 9fffffffbf6ac000 0000000000003000 0000000000003000
CoreMMF 000000003c1c3730 9fffffffbf6af000 0000000000001000 0000000000001000
CoreMMF 000000003c1c4730 9fffffffbf6b0000 000000000001e000 000000000001e000
CoreMMF 000000003c1e2730 9fffffffbf6ce000 0000000000001000 0000000000001000
CoreMMF 000000003c1e3730 9fffffffbf6cf000 0000000000001000 0000000000001000
CoreMMF 000000003c1e4730 9fffffffbf6d0000 000000000005f000 000000000005f000
CoreMMF 000000003c243730 9fffffffbf72f000 0000000000001000 0000000000001000
CoreMMF 000000003c244730 9fffffffbf730000 000000000002b000 000000000002b000
CoreMMF 000000003c26f730 9fffffffbf75b000 0000000000001000 0000000000001000
CoreMMF 000000003c270730 9fffffffbf75c000 000000000000c000 000000000000c000
CoreMMF 000000003c27c730 9fffffffbf768000 0000000000006000 0000000000006000
CoreMMF 000000003c282730 9fffffffbf76e000 0000000000012000 0000000000012000
CoreMMF 000000003c294730 9fffffffbf780000 000000000006e000 000000000006e000
CoreMMF 000000003c302730 9fffffffbf7ee000 0000000000001000 0000000000001000
CoreMMF 000000003c303730 9fffffffbf7ef000 0000000000001000 0000000000001000
CoreMMF 000000003c304730 9fffffffbf7f0000 0000000000004000 0000000000004000
CoreMMF 000000003c308730 9fffffffbf7f4000 0000000000002000 0000000000002000
CoreMMF 000000003c30a730 9fffffffbf7f6000 0000000000004000 0000000000004000
CoreMMF 000000003c30e730 9fffffffbf7fa000 0000000000002000 0000000000002000
CoreMMF 000000003c310730 9fffffffbf7fc000 0000000000002000 0000000000002000
CoreMMF 000000003c312730 9fffffffbf7fe000 0000000000001000 0000000000001000
CoreStck 000000003c313730 9fffffffbf7ff000 0000000000003000 0000000000003000
CoreStck 000000003c316730 9fffffffffff3000 000000000000d000 000000000000d000

The Investigation ofer M2000 :


$ gdb /usr/opt/temip/mmexe/HUAWEI_M2000_AM 2008_10_17_13:31HUAWEI_M2000_A
HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.9 (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: core file may not match specified executable file.
Core was generated by `HUAWEI_M2000_A'.

warning: HUAWEI_M2000_A is 14 characters in length. Due to a limitation
in the HP-UX kernel, core files contain only the first 14 characters
of an executable's name. Check if HUAWEI_M2000_A is a truncated name.
If it is so, core-file, packcore and other commands dealing with
core files will exhibit incorrect behavior. To avoid this, issue
exec-file and symbol-file commands with the full name of the executable
that produced the core; then issue the core-file, packcore or other
core file command of interest.

Program terminated with signal 11, Segmentation fault.
SEGV_ACCERR - Invalid Permissions for object
#0 0x0 in ()
(gdb) where
#0 0x0 in ()
warning: Attempting to unwind past bad PC 0x0
#1 0xc0000000074ecd30 in ()
(gdb) thread apply all bt

Thread 21 (system thread 2435478):
#0 0x0 in ()
#1 0xc0000000074ecd30 in ()

Thread 20 (system thread 2435477):
#0 0x4000000000a745c1 in ()
warning: Attempting to unwind past bad PC 0x4000000000a745c1
#1 0x4000000000d17b70 in ()

Thread 19 (system thread 2435476):
#0 0xc0000000003400d0 in ()
warning: Attempting to unwind past bad PC 0xc0000000003400d0
#1 0xc000000000352d80 in ()

Thread 18 (system thread 2435475):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 17 (system thread 2435474):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 16 (system thread 2435471):
#0 0xc0000000003400d0 in ()
warning: Attempting to unwind past bad PC 0xc0000000003400d0
---Type to continue, or q to quit---
#1 0xc000000000352d80 in ()

Thread 15 (system thread 2435470):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 14 (system thread 2435469):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 13 (system thread 2435468):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 12 (system thread 2435467):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 11 (system thread 2435466):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 10 (system thread 2435464):
---Type to continue, or q to quit---
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 9 (system thread 2435459):
#0 0xc00000000033fdd0 in ()
warning: Attempting to unwind past bad PC 0xc00000000033fdd0
#1 0xc000000000351c90 in ()

Thread 8 (system thread 2435456):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 7 (system thread 2435455):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 6 (system thread 2435454):
#0 0xc00000000033f950 in ()
warning: Attempting to unwind past bad PC 0xc00000000033f950
#1 0xc000000000351510 in ()

Thread 5 (system thread 2435453):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

---Type to continue, or q to quit---
Thread 4 (system thread 2435452):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 3 (system thread 2435446):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 2 (system thread 2435445):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 1 (system thread 2435435):
#0 0xc0000000003400d0 in ()
warning: Attempting to unwind past bad PC 0xc0000000003400d0
#1 0xc000000000352d80 in ()
(gdb)


And the Investigation Over T2000


$ gdb /usr/opt/temip/mmexe/HW_T2000_AM 2008_09_30_13:26HW_T2000_AM.ex
HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.9 (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: core file may not match specified executable file.
Core was generated by `HW_T2000_AM.ex'.

warning: HW_T2000_AM.ex is 14 characters in length. Due to a limitation
in the HP-UX kernel, core files contain only the first 14 characters
of an executable's name. Check if HW_T2000_AM.ex is a truncated name.
If it is so, core-file, packcore and other commands dealing with
core files will exhibit incorrect behavior. To avoid this, issue
exec-file and symbol-file commands with the full name of the executable
that produced the core; then issue the core-file, packcore or other
core file command of interest.

Program terminated with signal 6, Aborted.

(0) 0x40000000005aae00 gdb_crash_handler + 0x180 [/opt/langtools/bin/gdb]
(1) 0xe0000001080028e0 ---- Signal 11 (SIGSEGV) delivered ----
(2) 0xc000000000072500 LL_num_entries_xp + 0x60 at Lib/xp_lib.c:1018 [/usr/lib/hpux64/dld.so]
(3) 0xc000000000072e90 dlgetmodinfo_xp + 0x90 at User/xp_user.c:217 [/usr/lib/hpux64/dld.so]
(4) 0xc00000000006e910 _dlgetmodinfo + 0x60 at User/dlgetmodinfo.c:130 [/usr/lib/hpux64/dld.so]
(5) 0xc0000000003975d0 dlgetmodinfo + 0xb0 at Libdl/libdl.c:305 [/usr/lib/hpux64/libdl.so.1]
(6) 0x40000000004de290 dlgetmodinfo1 + 0x80 [/opt/langtools/bin/gdb]
(7) 0x40000000004dcdf0 read_dld_descriptor + 0x230 [/opt/langtools/bin/gdb]
(8) 0x40000000005140a0 hp_ia64_solib_add + 0x790 at ../../../Src/gnu/gdb/hp-ia64-solib.c:356 [/opt/langtools/bin/gdb]
(9) 0x400000000064d870 solib_add_stub + 0x30 at ../../../Src/gnu/gdb/corelow.c:229 [/opt/langtools/bin/gdb]
(10) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(11) 0x4000000000647270 core_open + 0x740 at ../../../Src/gnu/gdb/corelow.c:168 [/opt/langtools/bin/gdb]
(12) 0x40000000006aae30 core_file_command + 0xd0 at ../../../Src/gnu/gdb/corefile.c:114 [/opt/langtools/bin/gdb]
(13) 0x40000000004b2a00 do_captured_command + 0x60 at ../../../Src/gnu/gdb/top.c:823 [/opt/langtools/bin/gdb]
(14) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(15) 0x40000000004b2980 catch_command_errors + 0x60 at ../../../Src/gnu/gdb/top.c:788 [/opt/langtools/bin/gdb]
(16) 0x4000000000185fd0 captured_main + 0x25a0 [/opt/langtools/bin/gdb]
(17) 0x4000000000423740 catch_errors + 0x1a0 at ../../../Src/gnu/gdb/top.c:746 [/opt/langtools/bin/gdb]
(18) 0x40000000001839e0 main + 0x60 [/opt/langtools/bin/gdb]
(19) 0xc00000000004f200 main_opd_entry + 0x50 [/usr/lib/hpux64/dld.so]
GDB crashed with signal 11! About to dump core into 'core' in the directory:
/home/temip/CORE_ARCHIVED
Select one of the following options...
[N] No, do not dump core
[Y] Yes, dump core (default)
NOTE: Make sure to rename any existing core file in this
directory, as gdb's core will overwrite it.
[C] Continue execution (at your own risk)
> C
GDB received signal 11, but continuing...
GDB may be in an unstable state.

#0 0xc00000000033f090 in ()
(gdb) where
#0 0xc00000000033f090 in ()
warning: Attempting to unwind past bad PC 0xc00000000033f090
#1 0xc0000000002632f0 in ()
(gdb) thread apply all bt

Thread 8 (system thread 4464787):
#0 0xc00000000033f090 in ()
#1 0xc0000000002632f0 in ()

Thread 7 (system thread 6685237):
#0 0xc0000000003400d0 in ()
warning: Attempting to unwind past bad PC 0xc0000000003400d0
#1 0xc000000000352d80 in ()

Thread 6 (system thread 6685222):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 5 (system thread 6685219):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 4 (system thread 6685205):
#0 0xc000000000343530 in ()
warning: Attempting to unwind past bad PC 0xc000000000343530
#1 0xc000000000350cc0 in ()

Thread 3 (system thread 6685181):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
---Type to continue, or q to quit---
#1 0xc000000000128ef0 in ()

Thread 2 (system thread 6685180):
#0 0xc00000000033cd50 in ()
warning: Attempting to unwind past bad PC 0xc00000000033cd50
#1 0xc000000000128ef0 in ()

Thread 1 (system thread 6685170):
#0 0xc0000000003400d0 in ()
warning: Attempting to unwind past bad PC 0xc0000000003400d0
#1 0xc000000000352d80 in ()
(gdb)
(gdb)


This is it .

Regards,

Ionut
Dennis Handly
Acclaimed Contributor

Re: gdb - issue - 14 characters in length due to a limitation

98290792 Nov 8 2007 HW_T2000_AM.exe
$ elfdump -o -S 2008_09_30_13:26HW_T2000_AM.ex

Are these suppose to be the same core file?
If so, this core file is way too small.

CoreStck 000000003c316730 9fffffffffff3000 000000000000d000 000000000000d000

The size should be at least 0x3c316730 + 0xd000: 1009923888, almost 1 Gb.