Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upmalloc problem in file io ? #298
Comments
This comment has been minimized.
This comment has been minimized.
|
Doing more research i found that around 106 MB of memory is available, so i guess there's something more. I wonder if using malloc in threads (copy_thread, delete_thread..) is safe ? |
limyz
added
the
bug
label
Oct 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Hi, I'm now not sure it's a bug in VitaShell anymore :/ |
This comment has been minimized.
This comment has been minimized.
|
So, i can confirm the problem still happen randomly even with no plugins enabled (on enso at least). I was sometime able to do the copy more than 5 times without VitaShell crashing, sometime it crash at the first copy. It can also happen on delete. |
This comment has been minimized.
This comment has been minimized.
|
please test 1.74 |
This comment has been minimized.
This comment has been minimized.
|
This problem is so similar to the one most recently posted - shall wait before tagging that as duplicate. |
This comment has been minimized.
This comment has been minimized.
|
I will take a look tomorow. |
This comment has been minimized.
This comment has been minimized.
|
From my testing i don't spot the problem with version 1.74. I still have random crashes when doing file io on host0 with my usbhostfs plugin, but i'm now sure it's a problem with my module. I guess you suspect the changes in the dialog code to cause this in 1.75. I would need to do more testing on 1.75 to be sure i didn't do something wrong when testing on it. |
This comment has been minimized.
This comment has been minimized.
|
So, it seems i fixed my module, and there is no more problem with 1.74. I'll test again with 1.75 soon. |
This comment has been minimized.
This comment has been minimized.
|
I can confirm the problem doesn't exist on 1.74 but exist on 1.75. I guess there is maybe a problem with this commit : e3f52cc |
This comment has been minimized.
This comment has been minimized.
|
I guess there is a logic problem at this line, i'll take a closer look tomorrow : Line 76 in e3f52cc |
This comment has been minimized.
This comment has been minimized.
|
Also, strdup should be freed, which is not the case here. Line 75 in e3f52cc |
This comment has been minimized.
This comment has been minimized.
|
Fixed in dae6212 |
Cpasjuste
closed this
Oct 13, 2017
This comment has been minimized.
This comment has been minimized.
|
Did you test the new build? |
This comment has been minimized.
This comment has been minimized.
|
Yes just now, no more crash. I saw your changes in "dialog_uncommon", the problem was there for sure. |
This comment has been minimized.
This comment has been minimized.
|
Awesome work |
Cpasjuste commentedOct 4, 2017
Hi,
When developing my usbhostfs module i noticed some random crash on file io. I thought the problem was in my module, but i isolated the problem to the malloc calls in "file.c". I guess you may pushing the limits there. You may be able to reproduce the crash by doing multiple times this procedure :
Before posting this report i tried disabling the only user (sceshell) module i use (psp2shell), whith the same results.