1830231 Members
1596 Online
109999 Solutions
New Discussion

Getting Core Dump

 
Rohit Goyal
Occasional Contributor

Getting Core Dump

I am trying to execute one application on HP-UX vvvvv B.11.11 U 9000/800 697359306 unlimited-user license. It is giving me core dump.It is a C++ Application .

Appreciate if you can please let me know your inputs. Thanks!!
7 REPLIES 7
Biswajit Tripathy
Honored Contributor

Re: Getting Core Dump

Can you post what exactly the error message before
core dump? How big is your C++ file?

- Biswajit
:-)
sreejith_4
Frequent Advisor

Re: Getting Core Dump

Hi,

You may try to increase kernel value of maxdsize.

Thanks
Sreejith M
Stephen Keane
Honored Contributor

Re: Getting Core Dump

According to your truss output, the process received a SIGABRT which is usually due to someone pressing CTRL-C when the process is running.
Rohit Goyal
Occasional Contributor

Re: Getting Core Dump

The size of my executable is :- test.out (9121416)

Rohit Goyal
Occasional Contributor

Re: Getting Core Dump

I am not pressing ctrl+ c


My program is Aborting due to some reason which i am not able to figure out

$ ./test.out
Inside main()
Before DatabaseUtil::Instance
=== LOG BEGIN === 02/17/2005 16:31:04 NONDB_LOG(Level = ERR,0) use KTK_[NON]DB_LOG to change
Connecting to omordtst/omordtst as ddlbos6
Abort(coredump)
Stephen Keane
Honored Contributor

Re: Getting Core Dump

Your truss output show the following error

mmap(NULL, 962560, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 6, 0x45000) .............................. ERR#12 ENOMEM

This shows that a mmap call failed due to ENOMEM, which is because there is insufficient room in the address space to effect the mapping. (as you are not useing MAP_FIXED).

So you need to increase the memory in your address space.


Rohit Goyal
Occasional Contributor

Re: Getting Core Dump

I am trying to execute one application on HP-UX vvvvv B.11.11 U 9000/800 697359306 unlimited-user license. It is giving me core dump.It is a C++ Application .

I am attaching the file containing the tusc output

$ ulimit -Sa
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1953124
stack(kbytes) 195312
memory(kbytes) unlimited
coredump(blocks) 4194303

$ ulimit -Ha
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1953124
stack(kbytes) 195312
memory(kbytes) unlimited
coredump(blocks) unlimited


/stand/system

* Tunable parameters

STRMSGSZ 65535
bufpages (NPROC*3)
dbc_max_pct 2
dbc_min_pct 2
dnlc_hash_locks 512
max_thread_proc 256
maxdsiz 2000000000
maxdsiz_64bit 0X2000000000
maxfiles 2048
maxfiles_lim 2048
maxssiz 200000000
maxssiz_64bit 200000000
maxswapchunks 4096
maxtsiz 0X4000000
maxtsiz_64bit 0X40000000
maxuprc ((NPROC*9)/10)
maxusers 60
maxvgs 500
msgmap (MSGTQL+2)
msgmax 32768
msgmnb 65535
msgmni (NPROC)
msgseg (MSGTQL*4)
msgssz 128
msgtql 6640
nfile (15*NPROC+2048)
nflocks (NPROC)
ninode (8*NPROC+2048)
nproc 1600
nstrpty 60
nstrtel (MAXUSERS)
nswapdev 25
semmni (NPROC*5)
semmns (SEMMNI*2)
semmnu (NPROC-4)
semume 64
semvmx 32768
shmmax 0X40000000
shmmni 512
shmseg 32
swapmem_on 0
timeslice 1
unlockable_mem (MAXUSERS*10)


$ /usr/sbin/swapinfo -mat
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 31,0x016003
reserve - 2620 -2620
total 4096 2620 1476 64% - 0 -


B3692A GlancePlus C.03.58.00 12:16:53 omtest 9000/800 Current Avg High
------------------------------------------------------------------------------------------------------------------------------
CPU Util S | 2% 2% 3%
Disk Util FF | 2% 4% 6%
Mem Util S SU U | 69% 69% 69%
Swap Util R R | 64% 64% 64%
------------------------------------------------------------------------------------------------------------------------------
MEMORY REPORT Users= 2
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 7 104 1.3 15.5 69.2
Page In 1 10 0.1 1.4 6.4
Page Out 0 0 0.0 0.0 0.0
KB Paged In 24kb 108kb 4.6 16.1 60.0
KB Paged Out 0kb 0kb 0.0 0.0 0.0
Reactivations 0 0 0.0 0.0 0.0
Deactivations 0 0 0.0 0.0 0.0
KB Deactivated 0kb 0kb 0.0 0.0 0.0
VM Reads 1 7 0.1 1.0 1.1
VM Writes 0 0 0.1 0.0 0.0

Total VM : 2.90gb Sys Mem : 411.1mb User Mem: 2.34gb Phys Mem: 4.00gb
Active VM: 1.52gb Buf Cache: 18.7mb Free Mem: 1.24gb


$ file ./test.out
./test.out: PA-RISC1.1 shared executable dynamically linked -not stripped
$


$ getconf KERNEL_BITS
64

$ uname -srvm
HP-UX B.11.11 U 9000/800



Appreciate if you can please let me know your inputs. Thanks!!