Opened 12 years ago

Closed 12 years ago

#4266 closed Support Requests (wontfix)

After Restarting Process getting stuck while using Interprocess shared memory API

Reported by: anonymous Owned by: Ion Gaztañaga
Milestone: Boost 1.43.0 Component: interprocess
Version: Boost 1.35.0 Severity: Showstopper
Keywords: shared_memory Cc: aditya.sinha@…

Description

WE are interprocess shared memory for caching data across restart. Recently while testing it is found that thread are hanged while acquiring process shared mutex which is member named m_header in boost::interprocess::segment_manager. I think when process was restarted the m_header recursive mutex was in locked state, so when process restarted it finds the mutex in locked state.
I need a mechanism to detect sanity of such locks to detect whether mutex is in stale state.

Regards Aditya Kumar Sinha

Change History (2)

comment:1 by aditya.sinha@…, 12 years ago

WE are interprocess shared memory for caching data across restart. Recently while testing it is found that thread are hanged while acquiring process shared mutex which is member named m_header in boost::interprocess::segment_manager. I think when process was restarted the m_header recursive mutex was in locked state, so when process restarted it finds the mutex in locked state. I need a mechanism to detect sanity of such locks to detect whether mutex is in stale state.

Regards
Aditya Kumar Sinha

comment:2 by Ion Gaztañaga, 12 years ago

Resolution: wontfix
Status: newclosed

Sorry but robust mutexes are not supported in Interprocess. Maybe in the future.

Note: See TracTickets for help on using tickets.