There is an off-by-one bug in hr_disk.c
HRD_history is allocated HRDEV_TYPE_MASK (255) number of entries and also correctly cleared this number of entries. But access to this structure goes up to index 255, which leads to accedd the element after HRD_history[]. Here, disk_devices[] follows, which is a struct with a pointer to disk_devpart_string as the first element. So this pointer of the first entry of this array is garbled, which leads to a segfault in Get_Next_HR_Disk_Partition() when doing the right GETNEXT.
The attached patch correctly allocates and initializes the array, the segfaults of the agent (at least the ones at this location) are gone with this patch.
Logged In: YES
user_id=848638
Originator: NO
That's a dup of 1617255, AFAICS. How is your patch different/better than the one in 1617255?
https://sourceforge.net/tracker/index.php?func=detail&aid=1617255&group_id=12694&atid=312694
Logged In: YES
user_id=794829
Originator: YES
Maybe it's a dup, i don't have the time to check this thread further, and hunting for the segfault problem initially, i didn't find anything here, so i submitted this patch.
If it's the same, you may just want to ignore/delete/whatever my post.
Sorry, that i don't have the time to scan _ALL_ patches/bugs posted here, i just can search for them, and i did this. Nobody said that my patch is different or better than any existing stuff, i just wanted to help in case there is no patch known by now (which seemed to me, as i didn't find the other patch).
Logged In: NO
See also patch 1617255, seems to be the same issue.
Logged In: YES
user_id=76242
Originator: NO
ended up applying the other one. Thanks very much for your contribution though!