Operating System - HP-UX
1753995 Members
8172 Online
108811 Solutions
New Discussion юеВ

Re: Crash doesn't happen after "chatr +mem_check enable"

 
Skandh
Occasional Contributor

Crash doesn't happen after "chatr +mem_check enable"

I've one binary, which on execution dumps core. I ran chatr +mem_check enable to get more info, but after that crash is not happening. Any pointer on this behavior will be very useful.
Thanks.

I am using Itanium 64 bit.
4 REPLIES 4
Laurent Menase
Honored Contributor

Re: Crash doesn't happen after "chatr +mem_check enable"

this option change in some way the allocator and can change the memory mapping.

Typically you have a buffer overflow,
ie a string which which had been allocated without counting the ending 0.

Dennis Handly
Acclaimed Contributor

Re: Crash doesn't happen after "chatr +mem_check enable"

If you invoke the debugger, all shlib text is mapped in private. So if you try to modify read only memory, it works.

So if you have a core file, you can see why it's aborting and the address.
Skandh
Occasional Contributor

Re: Crash doesn't happen after "chatr +mem_check enable"

Thanks for quick reply.

After using chatr, I am not getting any core file, that's why diagnosis is pretty difficult.
Please suggest if there is any other way to analyse it.
Dennis Handly
Acclaimed Contributor

Re: Crash doesn't happen after "chatr +mem_check enable"

>After using chatr, I am not getting any core file

Don't use chatr(1). Get the core file and then look into the issue with a stack trace.