Unix Programming - Internal heap ERROR KGHALO2 addr=0x0

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2004 > Internal heap ERROR KGHALO2 addr=0x0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Internal heap ERROR KGHALO2 addr=0x0
Kedar

2004-03-15, 4:34 am

Hi all,
I have written a multithreaded program in C/UNIX using POSIX
threads (pthreads).
I am executing some UNIX commands using system() function.
If I am not passing any argument to the command...the daemon works
smoothly but when I pass arguments to it...after 3-4 (average)
executions the daemon crashes with error as follows:



********** Internal heap ERROR KGHALO2 addr=0x0 *********


****************************************
**************
HEAP DUMP heap name="Alloc environm" desc=0x848a90c
extent sz=0x1024 alt=32 het=32767 rec=0 flg=2 opc=2
parent=0 owner=0 nex=0 xsz=0x1024
EXTENT 0
Chunk 892c778 sz= 2832 free " "
Chunk 892d288 sz= 1292 freeable assoc with mark prv=0
EXTENT 1
Chunk 84b75d0 sz= 252 free " "
Chunk 84b76cc sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b76f4 sz= 208 free " "
Chunk 84b77c4 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b77ec sz= 164 free " "
Chunk 84b7890 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b78b8 sz= 124 freeable assoc with mark prv=0 nxt=0
Chunk 84b7934 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b79a0 sz= 532 free " "
Chunk 84b7bb4 sz= 428 freeable assoc with mark prv=0 nxt=0
Chunk 84b7d60 sz= 284 free " "
Chunk 84b7e7c sz= 20 freeable assoc with mark prv=0 nxt=0
Chunk 84b7e90 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7eb8 sz= 28 free " "
Chunk 84b7ed4 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7efc sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7f24 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7f4c sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7f74 sz= 28 free " "
Chunk 84b7f90 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7fb8 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b7fe0 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b8008 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b8030 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b8058 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b8080 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b80a8 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b80d0 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84b80f8 sz= 40 freeable assoc with mark prv=0
nxt=084bb054 sz= 84 free " "
Chunk 84bb0a8 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84bb0d0 sz= 1212 free " "
Chunk 84bb58c sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84bb5b4 sz= 40 freeable assoc with mark prv=0 nxt=0
Chunk 84bb5dc sz= 40 freeable assoc with mark prv=0 nxt=0
EXTENT 3
Chunk 8498748 sz= 14552 freeable "Alloc server h "
ds=84ba974
EXTENT 4
Chunk 8497528 sz= 24 perm "perm " alo=24
Chunk 8497540 sz= 2772 recreate "Alloc server h " latch=0
ds 84ba974 sz= 17324 ct= 2
8498748 sz= 14552
Chunk 8498014 sz= 1312 freeable assoc with mark prv=0 nxt=0
Bucket 0 size=272
Chunk 84b7d60 sz= 284 free " "
Chunk 84b76f4 sz= 208 free " "
Chunk 84b75d0 sz= 252 free " "
Chunk 84bb054 sz= 84 free " "
Chunk 84b7eb8 sz= 28 free " "
Chunk 84baaa4 sz= 44 free " "
Chunk 84baaf8 sz= 128 free " "
Chunk 84b77ec sz= 164 free " "
Chunk 84ba5e8 sz= 236 free " "
Chunk 84b7f74 sz= 28 free " "
Chunk 84b8580 sz= 28 free " "
Chunk 84b795c sz= 28 free " "
Bucket 1 size=528
Chunk 84b79a0 sz= 532 free " "
Bucket 2 size=1040
Chunk 892c778 sz= 2832 free " "
Chunk 84baba0 sz= 1084 free " "
Chunk 84bb0d0 sz= 1212 free " "
Total free space = 7172
UNPINNED RECREATABLE CHUNKS (lru first):
PERMANENT CHUNKS:
Chunk 8497528 sz= 24 perm "perm " alo=24
Permanent space = 24
****************************************
**************
Hla: 0
kghalo bad size 0x720025e0
********** Internal heap ERROR KGHALO2 addr=0x0 *********


****************************************
**************
HEAP DUMP heap name="Alloc environm" desc=0x848a90c
extent sz=0x1024 alt=32 het=32767 rec=0 flg=2 opc=2
parent=0 owner=0 nex=0 xsz=0x1024

Pls could you guide me on what could be reason for this? and how this
could be avoided?

Waiting for your reply.

Warm Regards
Kedar
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com