Comments (5)
Thanks for the report. I'll generate a PR for the fix
from dmtcp.
I am unable to reproduce this issue with the master branch. Can you confirm the commit SHA/version you are using?
from dmtcp.
I am unable to reproduce this issue with the master branch. Can you confirm the commit SHA/version you are using?
Yes. I downloaded "DMTCP 3.0 released" codes on the github manual page. https://github.com/dmtcp/dmtcp/releases/tag/3.0.0
And further, I try dmtcp 2.6.0 release version, It's ok, no deadlock issue.
from dmtcp.
I am unable to reproduce this issue with the master branch. Can you confirm the commit SHA/version you are using?
I use the master branch codes for this case, then I also meet the issue.
There are JTRACE logs:
[2024-03-19T09:59:46.794, 40000, 40002, Trace] at dmtcpworker.cpp:335 in waitForPreSuspendMessage; REASON='waiting for CHECKPOINT message'
1 2 [2024-03-19T09:59:47.671, 40000, 40002, Trace] at threadsync.cpp:296 in presuspendEventHookLockLock; REASON='Acquiring event-hook lock'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at dmtcpworker.cpp:380 in waitForCheckpointRequest; REASON='Procesing pre-suspend barriers'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at threadsync.cpp:303 in presuspendEventHookLockUnlock; REASON='Releasing event-hook lock'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at dmtcpworker.cpp:384 in waitForCheckpointRequest; REASON='Preparing to acquire locks before DMT:SUSPEND barrier'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at threadsync.cpp:103 in acquireLocks; REASON='Waiting for libdlLock'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at threadsync.cpp:106 in acquireLocks; REASON='Waiting for other threads to exit DMTCP-Wrappers'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at threadsync.cpp:109 in acquireLocks; REASON='Done acquiring all locks'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at dmtcpworker.cpp:387 in waitForCheckpointRequest; REASON='Waiting for DMT:SUSPEND barrier'
[2024-03-19T09:59:47.671, 40000, 40002, Trace] at coordinatorapi.cpp:439 in waitForBarrier; REASON='waiting for DMT_BARRIER_RELEASED message'
barrier = DMT:SUSPEND
[2024-03-19T09:59:47.712, 40000, 40002, Trace] at dmtcpworker.cpp:393 in waitForCheckpointRequest; REASON='Starting checkpoint, suspending threads...'
from dmtcp.
I am unable to reproduce this issue with the master branch. Can you confirm the commit SHA/version you are using?
Now I'm sure that JTRACEs in function 'void stopthisthread(int signum)' make the issue. After I delete these JTRACEs, the program don't hang at all. It seems like that JTRACE blocks 'sem_post', which blocks 'sem_wait' in 'suspendThreads()'. This leads the issue, but I don't know the root cause.
I hope that it can make dmtcp better.
from dmtcp.
Related Issues (20)
- port dmtcp for windows HOT 9
- Support for RISC-V HOT 3
- Create checkpoint from a dump file or a running process HOT 1
- `make check` fails on an ARMv8 machine HOT 1
- Segmentation fault at restart
- dmtcp in docker on apple silicon HOT 5
- dmtcp CI is broken for master branch - root cause: python3.8 vs python3.10 pty module HOT 2
- add soversion
- dmtcp build failed on ppc64le, aarch64 and s390x architecture
- The last few checkpoints of the dmtcp save are particularly slow
- INSTALL.md mentions non-existing command line option --no-coordinator for dmtcp_launch HOT 1
- Release 3.0, Windows Subsystem for Linux with Ubuntu 22.04 LTS: all checks fail HOT 1
- Release 3.0, Windows Subsystem for Linux with Ubuntu 22.04 LTS: restart doesn't work HOT 1
- DMTCP build is broken with recent PR 1061 HOT 1
- Duplicating(forking) a checkpointed process? HOT 2
- Segmentation fault on dmtcp (2.6.0) using MPICH (4.2.0)
- Segfault when I set 2 ckpts in a program using share memory HOT 1
- Segfault when using gethostbyname() after dmtcp_restart HOT 1
- "dmtcp_command -kc" does not kill the node after checkpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmtcp.