troubleshooting Question

dangling pointer, linux vs solaris

Avatar of dpalyca755
dpalyca755 asked on
CLinux
2 Comments2 Solutions552 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
evilrix
Senior Software Engineer (Avast)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros