Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] FITモジュール内でmalloc()を使用している箇所がありますがRTOS使用時に危ないと思います #5

Open
NoMaY-jp opened this issue Oct 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@NoMaY-jp
Copy link

NoMaY-jp commented Oct 8, 2020

シェルティさん、こんにちは。NoMaYです。

かふぇルネに投稿した件です。現在調査中かと思いますが、バグ票代わりに、こちらにも投稿しておきます。(といっても、かふぇルネへのリンク、ですけれど。) なお、先日のFreeRTOSサンプルプログラムでは、暫定的にsrc/smc_workaroundフォルダで対処するようにしてあります。(なお、以下の投稿の1つ前の投稿のクリティカルセクションでの保護漏れも危ないので別途投稿します。)

e2 studio v7.5.0のFreeRTOS ProjectでVisual Expression+Renesas RX Simulator/TB-RX65Nで試せるSample Programを作ってみた
http://japan.renesasrulz.com/cafe_rene/f/forum21/5970/e2-studio-v7-5-0-freertos-project-visual-expression-renesas-rx-simulator-tb-rx65n-sample-program/35409#35409

別スレッドでFreeRTOSのRTOSDemoプログラムを作っていて気付いたのですが、FITモジュール内にmalloc()を使っている箇所がありますね。(例えばR_DTC_RXモジュールとか。) それで思い出したのですが、RTOSを使う時に使ってはいけない(というか気を付けて使う必要がある)ライブラリ関数の代表格がmalloc()とfree()かと思うのですが、現状まだ、FITモジュールでは特に気にせずに使っているようです。とりあえず、私は以下のように対処しました。

@HirokiIshiguro
Copy link
Collaborator

NoMaYさん、こんにちは、石黒(シェルティ)です。

投稿ありがとうございます。本件含め以下IssueについてRX Driver Package開発チームにフィードバックして修正目指します。

#1 #2 #3 #4 #5

以上です

@HirokiIshiguro HirokiIshiguro added the bug Something isn't working label Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants