boostorg / boostorg/interprocess
boost::flyweight::intermodule_holder on LINUX is segfaulting
- Vorherrschende Sprache
- C++
- Sterne
- 185
- Forks
- 131
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Reported in the Boost mailing list:
https://lists.boost.org/boost-users/2024/05/91583.php
Apparently the boost::flyweight::intermodule_holder on LINUX is creating shared memory objects, which by accident (crash?) can persist after the process having created them is already gone.
As a result the code can attempt to create an already existing shared memory object created by another user.
It seems like locking is based on a unique temporary filesystem path that uses both the process ID and its start time:
So, the code should be robust against dangling locks because the combination (PID, start time) won't ever repeat. Maybe you can debug your program and try to isolate the actual path generated for the offending scenario?
It might be related with the lame implementation of get_current_process_creation_time in Linux.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, den im Bericht auf der Boost-Mailingliste beschriebenen Linux-Fehler zu reproduzieren, und untersuche boost::flyweight::intermodule_holder. Verfolge den temporären Pfad, der zum Sperren verwendet wird, und untersuche get_current_process_creation_time unter Linux. Als erledigt gilt die Aufgabe, wenn das gemeldete Shared-Memory-Kollisions- oder Dangling-Lock-Szenario isoliert und die Ursache dokumentiert oder mit einer verifizierten Reproduktion behoben wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, linux
- Bereich
- operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100