Avatar of dpalyca755
dpalyca755
 asked on

dangling pointer, linux vs solaris

When running a c application on linux I have a dangling pointer, which leads to core dump, when trying to access the memory it is pointing to, but only after a very long running time,
and it does not seem to occur when running on solaris.
The thread executing does not reallocate the same memory once it is freed before trying to use the pointer in question.

I know Solaris does not allow other applications to allocate the same memory,
but does Linux, once the memory has been freed?

I am trying to gauge whether this can and/or will core dump on Solaris or do I only need to worry about it running under Linux.
CLinux

Avatar of undefined
Last Comment
Hugh McCurdy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
evilrix

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Hugh McCurdy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes