[bug] Akkoma is crashing Chrome 125 when Application tab in DevTools is open #395

Closed
opened 2024-05-25 08:03:44 +00:00 by lamp · 4 comments

Version

efb46fc2

What were you trying to do?

Clear the drafts in localStorage because of another bug in Akkoma

What did you expect to happen?

nothing?

What actually happened?

Apparently Chrome crashes whenever the Application tab in Developer Tools is open on any Akkoma instance (i.e. akko.wtf, akko.unix.dog), whether logged in or not. Does not happen with Pleroma or any other site. Did not happen on Chrome 124 but does happen on Chrome 125 (125.0.6422.113, 125.0.6422.60). OS: Windows 10 x86_64, macOS 14.5 arm64, Linux 5.15.0 x64_64

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Version efb46fc2 ### What were you trying to do? Clear the drafts in localStorage because of another bug in Akkoma ### What did you expect to happen? nothing? ### What actually happened? Apparently Chrome crashes whenever the Application tab in Developer Tools is open on any Akkoma instance (i.e. akko.wtf, akko.unix.dog), whether logged in or not. Does not happen with Pleroma or any other site. Did not happen on Chrome 124 but does happen on Chrome 125 (125.0.6422.113, 125.0.6422.60). OS: Windows 10 x86_64, macOS 14.5 arm64, Linux 5.15.0 x64_64 ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
Member

Crashing the whole browser is far beyond what any website is (supposed to be) capable of; this is definitely a Chromium bug and you should report it there.

Fyi, the relevant part seems to be a misuse of std::string::pop_back:

/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:2131: void std::basic_string<char>::pop_back() [_CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]: Assertion '!empty()' failed.
Crashing the whole browser is far beyond what any website is (supposed to be) capable of; this is definitely a Chromium bug and you should report it there. Fyi, the relevant part seems to be a misuse of `std::string::pop_back`: ``` /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/basic_string.h:2131: void std::basic_string<char>::pop_back() [_CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]: Assertion '!empty()' failed. ```
Author

do u have any idea why only akkoma crashes it and not pleroma or anything else?

do u have any idea why only akkoma crashes it and not pleroma or anything else?

that's hard to say, but browser tabs are sandboxed in such a way that it should be impossible for any site to interact with the host machine, including crashing the process

you'd need to be able to debug chromium to figure that out

that's hard to say, but browser tabs are sandboxed in such a way that it should be impossible for any site to interact with the host machine, including crashing the process you'd need to be able to debug chromium to figure that out
Member

btw this was already reported to Chromium (for a site different from akkoma-fe): https://issues.chromium.org/issues/342802973 (and probably also 342701249)

btw this was already reported to Chromium (for a site different from akkoma-fe): https://issues.chromium.org/issues/342802973 (and probably also 342701249)
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma-fe#395
No description provided.