Giter Site home page Giter Site logo

rusoku / canal-dll Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 133 KB

CANAL DLL for TouCAN USB to CAN bus converter

Home Page: https://www.rusoku.com

License: MIT License

C++ 77.50% C 21.56% CMake 0.94%
canal rusoku can can-bus vscp-framework vscp

canal-dll's People

Contributors

ad3154 avatar rusoku avatar uv-software avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

canal-dll's Issues

Some calls to CanalOpen cause heap corruption

Hello there!

First off, big thanks for changing the license to MIT back in January!

We've recently integrated this DLL into our open source ISOBUS CAN stack at Open-Agriculture/AgIsoStack-plus-plus#220 and I noticed that it usually works, but sometimes when I call CanalOpen that something weird seems to be happening. More specifically, when CTouCANobj::Open is called, eventually it calls pDllList->RemoveAllNodes(&m_receiveList); which sometimes works, but other times it seems to cause heap corruption.

Screenshot 2023-03-21 103549

When this happens, if we inspect pdll it seems like nCount is suspiciously high, and the tail pointer of the CDllList seems suspicious also. The random nature of this happening makes it feel almost like a concurrency or initialization issue of some kind.

image

Anyways, I am not entirely sure what to make of it, but wanted to bring it to your attention. It is somewhat random but reproducible, so if you are interested in gathering some more information or troubleshooting I'd be happy to do what I can.

This was all tested using first the official released DLLs, but to actually debug in there and get the symbols needed, I compiled the DLL with Visual Studio 2022 17.5.3, specifically with compiler MSVC 19.35.32216.1 for 64 bit architecture to gather those screenshots.

Besides this, integrating this was very easy, so thank you again for your effort on that!

Regards,
Adrian

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.