yamt commented on PR #13296: URL: https://github.com/apache/nuttx/pull/13296#issuecomment-2430941779
> Most RTOS developers typically do not do the following things: > > 1. Open and close file descriptors after system bringup frequently. > > 2. Open and close file descriptors via different task contexts. > > > FS_REFCOUNT enhances the detection of such issues. i guess what you need is a config option or whatever which allows users to limit themselves to a small restricted subset of posix semantics, which doesn't need these reference counting. as we don't have such a mechanism right now, i suppose we need to enable this reference counting (or whatever fix for the crash) unconditionally. > > > do you have a suggestion of an alternative fix for the crash? to me, saving 500 bytes doesn't sound like a good reason to leave a crashing bug. > > if disable FS_REFCOUNT, I think we could add some error catch and print error log on failure case, which will help developers identify issues more quickly. do you have an idea how to detect the failure cases? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
