Operating System - HP-UX
1753393 Members
6886 Online
108792 Solutions
New Discussion юеВ

Core on memset in a C program

 
Florent_1
Occasional Contributor

Core on memset in a C program

Hi!

on a HP-UX V11.11 I get a core on a memset like:
memset(stRintRsp, 0, sizeof(RSP_MES));
RSP_MES as a size of 50k bytes.

When sizing down to 5k byte, the memset runs well.

Has anyone an idea to solve the problem (like changing some kernel parameters or else)?

Thanks.
Florent.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Core on memset in a C program

It would really help to see more of your code since I have no idea of your data structures.

50K memsets are so small that kernel paramters would never come into play. I suspect that you have much more fundamental problems. Post a more complete example and someone can probably spot the problem.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Core on memset in a C program

By the way, one thing that would absolutely cause this is arbitrarily changing a value in a header file that had already been used to compile other modules without relinking.
If it ain't broke, I can fix that.
Florent_1
Occasional Contributor

Re: Core on memset in a C program

More d??tails: my C code is called by Java; JVM parameters are specified in a Broadvision configuration file.

According to your answer it seems there's nothing I can do on the HP kernel parameters, so I'm trying to change that configuration file.

Thanks.
Florent.