Code Monkey home page Code Monkey logo

Comments (6)

kingdoctor123 avatar kingdoctor123 commented on July 25, 2024

It looks strange to me, too. Does the same thing happen in the provided testcases (e.g. by running grade-boc.sh)?

from cs431.

kowonhyeok avatar kowonhyeok commented on July 25, 2024

By running, grade-boc.sh, this error occured in both basic test and stress test:

error: test failed, to rerun pass `--test boc`

Caused by:
  process didn't exit successfully: `C:\Users\KoWH\cs431\homework\target\debug\deps\boc-ce57516ad9d8cba7.exe basic_test` (exit 
code: 0xc0000005, STATUS_ACCESS_VIOLATION)
note: test exited abnormally; to see the full output pass --nocapture to the harness.
Test failed:    cargo test  --test boc basic_test

from cs431.

kowonhyeok avatar kowonhyeok commented on July 25, 2024

I found STATUS_HEAP_CORRUPTION error occurs immediately after the end of one Behaviour. But I don't know why.

from cs431.

SaschaBergsma avatar SaschaBergsma commented on July 25, 2024

I am having the exact same problem. Getting errors like this, and every time a different one.

from cs431.

kingdoctor123 avatar kingdoctor123 commented on July 25, 2024

@kowonhyeok @SaschaBergsma STATUS_ACCESS_VIOLATION and STATUS_HEAP_CORRUPTION both tell you that your code has some memory access bugs. I can now guess that you are having such strange errors that SendError and RecvError happen simultaneously since you're corrupting the memory space internally used by crossbeam_channel. I advise you to carefully look at your code if there are any mistakes when storing and accessing the raw pointers.

from cs431.

kowonhyeok avatar kowonhyeok commented on July 25, 2024

Thank you! I found my problem is caused by lifetime of Behavior object. This is very helpful: #905.

from cs431.

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.