GithubHelp home page GithubHelp logo

Comments (5)

karya0 avatar karya0 commented on June 28, 2024

Thanks for the report. I'll generate a PR for the fix

from dmtcp.

karya0 avatar karya0 commented on June 28, 2024

I am unable to reproduce this issue with the master branch. Can you confirm the commit SHA/version you are using?

from dmtcp.

Koishi-love avatar Koishi-love commented on June 28, 2024

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.

Koishi-love avatar Koishi-love commented on June 28, 2024

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.

Koishi-love avatar Koishi-love commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.