gkostka / lwext4

ext2/ext3/ext4 filesystem library for microcontrollers
http://sourceforge.net/projects/lwext4/
Other
494 stars 130 forks source link

Unreleased heap memory #68

Open pob1234 opened 1 year ago

pob1234 commented 1 year ago

Hello,

I found out problem with no releasing heap memory. But this problem appears only when writing into one specified file. This allocated memory is never released. It seems that every write operations allocates cca 50 bytes, which is not released. Writting to other files works correctly (but it is possible that there may be more such files with unreleasing heap memory in the file system).

During my investigation, I found that all unreleased blocks of heap memory were allocated within the following functions jbd_journal_new_trans(), jbd_trans_set_block_dirty(), jbd_trans_insert_block_rec() of the ext4_journal.c module.

The problems will disappear after preparing a version with the journaling functionality disabled (disabling CONFIG_JOURNALING_ENABLE option), but I think that this is not the right solution to this problem.

I am using configuration file of lwext4 which is attached in this issue. ext4_config.txt

kevin-gk commented 3 months ago

Hi, I have also encountered a similar problem. Have you found the cause?

Cheng-Li1 commented 3 months ago

Hi, I have also encountered a similar problem. Have you found the cause?

Hello, could you give me more context for this problem? Like how do I replicate this issue?

anymor1024 commented 2 months ago

Hi guys, I have same problem. Please help me.

Thank you very much.

pob1234 commented 2 months ago

Hello everyone,

Unfortunately, I haven't been able to fix the problem yet. I prepared a more detailed description of the problem together with a test PC application, see attachment. lwext4_problem.zip