SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.63k stars 3.19k forks source link

HackStudio: Crash on exit #1382

Closed muscar closed 4 years ago

muscar commented 4 years ago

HackStudio crashes when exiting. The relevant qemu log:

[SystemMenu(20:20)]: do_exec(/bin/HackStudio)
HackStudio(21): execvpe() leaving :(
HackStudio(21): perror(): execl: No such file or directory
[HackStudio(21:21)]: 0xc014da83  ??
[HackStudio(21:21)]: 0xc0161dc6  ??
[HackStudio(21:21)]: 0xc01619f7  ??
[HackStudio(21:21)]: 0x080f18c2  exit +51
[HackStudio(21:21)]: 0x08054838  make_is_available() +96
[HackStudio(21:21)]: 0x080486b8  main +641
[HackStudio(21:21)]: 0x0804ace3  _start +94
HackStudio(20): GUI::MessageBox: 'OK' button clicked
MessageBox: quit event loop with result 0
HackStudio(20): Core::EventLoop::quit(0)
MessageBox: event loop returned with result 0
WindowServer(13): Event type 3011 with no receiver :(
HackStudio(20): Core::EventLoop::quit(0)
HackStudio(20): perror(): open: No such file or directory
Terminal: Load config file from /home/anon/Terminal.ini
HackStudio(20): Core::EventLoop::unquit()
HackStudio(20): Unimplemented token character: =
HackStudio(20): Unimplemented token character: <
HackStudio(20): Unimplemented token character: +
HackStudio(20): Unimplemented token character: +
HackStudio(20): Event type 1008 with no receiver :(
HackStudio(20): Event type 5 with no receiver :(
WindowServer(13): Event type 3011 with no receiver :(
HackStudio(20): Core::EventLoop::quit(0)
[HackStudio(20:20)]: NP(error) fault at invalid address V0xedededed
[HackStudio(20:20)]: Unrecoverable page fault, read from address V0xedededed
[HackStudio(20:20)]: Note: Address V0xedededed looks like it may be recently free()'d memory
[HackStudio(20:20)]: CRASH: Page Fault. Ring 3.
[HackStudio(20:20)]: exception code: 0004 (isr: 0000
[HackStudio(20:20)]:   pc=001b:080ceb8f flags=0286
[HackStudio(20:20)]:  stk=0023:01d02a50
[HackStudio(20:20)]:   ds=0023 es=0023 fs=0023 gs=07d3
[HackStudio(20:20)]: eax=00000000 ebx=0815ddcc ecx=edededed edx=00000000
[HackStudio(20:20)]: ebp=01d02a98 esp=c382ffe8 esi=0000446b edi=01d947c6
[HackStudio(20:20)]: cr0=8001001b cr2=edededed cr3=01b45000 cr4=003006e4
[HackStudio(20:20)]: code: 3b 31 75 0b 89 ce 51 51
[HackStudio(20:20)]: 0x080ceb8f  AK::HashTable<int, AK::Traits<int> >::remove(int const&) +51

[HackStudio(20:20)]: 0xc01521c4  ??
[HackStudio(20:20)]: 0xc0118744  ??
[HackStudio(20:20)]: 0xc0119a4a  ??
[HackStudio(20:20)]: 0xc0117341  ??
[HackStudio(20:20)]: 0x080cd433  Core::EventLoop::unregister_timer(int) +29
[HackStudio(20:20)]: 0x080cbfc0  Core::Object::stop_timer() +24
[HackStudio(20:20)]: 0x080cc65d  Core::Object::~Object() +169
[HackStudio(20:20)]: 0x080ccb2c  Core::Timer::~Timer() +16
[HackStudio(20:20)]: 0x0807ba7f  GUI::TextDocument::~TextDocument() +27
[HackStudio(20:20)]: 0x0804c9bd  AK::RefCounted<GUI::TextDocument>::unref() +33
[HackStudio(20:20)]: 0x0807e7fa  GUI::TextEditor::~TextEditor() +104
[HackStudio(20:20)]: 0x08051dec  LocatorTextBox::~LocatorTextBox() +16
[HackStudio(20:20)]: 0x080cca00  AK::Vector<AK::NonnullRefPtr<Core::Object>, 0ul>::clear() +30
[HackStudio(20:20)]: 0x080cc67c  Core::Object::~Object() +200
[HackStudio(20:20)]: 0x08051432  Locator::~Locator() +16
[HackStudio(20:20)]: 0x080cca00  AK::Vector<AK::NonnullRefPtr<Core::Object>, 0ul>::clear() +30
[HackStudio(20:20)]: 0x080cc67c  Core::Object::~Object() +200
[HackStudio(20:20)]: 0x08088ab4  GUI::Widget::~Widget() +16
[HackStudio(20:20)]: 0x080cca00  AK::Vector<AK::NonnullRefPtr<Core::Object>, 0ul>::clear() +30
[HackStudio(20:20)]: 0x080cc67c  Core::Object::~Object() +200
[HackStudio(20:20)]: 0x0808b581  GUI::Window::~Window() +169
[HackStudio(20:20)]: 0x0808b59a  GUI::Window::~Window() +16
[HackStudio(20:20)]: 0x080f5767  __cxa_finalize +62
[HackStudio(20:20)]: 0x080f189c  exit +13
[HackStudio(20:20)]: 0x0805c07b  GUI::Application::exec() +37
[HackStudio(20:20)]: 0x0804a259  main +7714
[HackStudio(20:20)]: 0x0804ace3  _start +94
[HackStudio(20:20)]: Process regions:
[HackStudio(20:20)]: BEGIN       END         SIZE        ACCESS  NAME
[HackStudio(20:20)]: 08048000 -- 0815cfff    00115000    R XS      elf-map-rx
[HackStudio(20:20)]: 0815d000 -- 08163fff    00007000    RW        elf-alloc-rw
[HackStudio(20:20)]: 01901000 -- 01901fff    00001000    RW        (null)
[HackStudio(20:20)]: 01903000 -- 01d02fff    00400000    RW  T     Stack (Main thread)
[HackStudio(20:20)]: 01d04000 -- 01d04fff    00001000    RW        Thread-specific
[HackStudio(20:20)]: 01d10000 -- 01d1ffff    00010000    RW   P    malloc: ChunkedBlock(8)
[HackStudio(20:20)]: 01d30000 -- 01d3ffff    00010000    RW   P    malloc: ChunkedBlock(32)
[HackStudio(20:20)]: 01d50000 -- 01d5ffff    00010000    RW   P    malloc: ChunkedBlock(16)
[HackStudio(20:20)]: 01d70000 -- 01d7ffff    00010000    RW   P    malloc: ChunkedBlock(64)
[HackStudio(20:20)]: 01d90000 -- 01d9ffff    00010000    RW   P    malloc: ChunkedBlock(128)
[HackStudio(20:20)]: 01db0000 -- 01dbffff    00010000    RW   P    malloc: ChunkedBlock(4090)
[HackStudio(20:20)]: 01dd0000 -- 01ddffff    00010000    RW   P    malloc: ChunkedBlock(1016)
[HackStudio(20:20)]: 01df0000 -- 01dfffff    00010000    RW   P    malloc: ChunkedBlock(252)
[HackStudio(20:20)]: 01d06000 -- 01d06fff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01d21000 -- 01d23fff    00003000    R  S      /res/fonts/Katica10.font
[HackStudio(20:20)]: 01e10000 -- 01e1ffff    00010000    RW   P    malloc: ChunkedBlock(508)
[HackStudio(20:20)]: 01e30000 -- 01e3ffff    00010000         P    malloc: ChunkedBlock(2036)
[HackStudio(20:20)]: 01d2d000 -- 01d2dfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-unknown.png
[HackStudio(20:20)]: 01e50000 -- 01e5ffff    00010000         P    malloc: ChunkedBlock(8188)
[HackStudio(20:20)]: 01d43000 -- 01d43fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-cplusplus.png
[HackStudio(20:20)]: 01d49000 -- 01d49fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-header.png
[HackStudio(20:20)]: 01d63000 -- 01d63fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-folder.png
[HackStudio(20:20)]: 01d67000 -- 01d67fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/app-hack-studio.png
[HackStudio(20:20)]: 01fc4000 -- 01fc4fff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01fc2000 -- 01fc2fff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01d8b000 -- 01d8bfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/delete.png
[HackStudio(20:20)]: 01f96000 -- 01f96fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/edit-copy.png
[HackStudio(20:20)]: 01f9c000 -- 01f9cfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/paste16.png
[HackStudio(20:20)]: 01dc1000 -- 01dc3fff    00003000    R  S      /res/fonts/KaticaBold10.font
[HackStudio(20:20)]: 01dc9000 -- 01dc9fff    00001000    RW   P    Gfx::Bitmap [26x26] - Decoded PNG: /res/icons/widgets/Cursor.png
[HackStudio(20:20)]: 01f90000 -- 01f90fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/cut16.png
[HackStudio(20:20)]: 01f8a000 -- 01f8afff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/redo.png
[HackStudio(20:20)]: 01f84000 -- 01f84fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/undo.png
[HackStudio(20:20)]: 01f7c000 -- 01f7efff    00003000    R  S      /res/fonts/CsillaThin7x10.font
[HackStudio(20:20)]: 01f76000 -- 01f76fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-header.png
[HackStudio(20:20)]: 01f70000 -- 01f70fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-cplusplus.png
[HackStudio(20:20)]: 01f6c000 -- 01f6cfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/filetype-unknown.png
[HackStudio(20:20)]: 01f65000 -- 01f65fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/paste16.png
[HackStudio(20:20)]: 01f5f000 -- 01f5ffff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/edit-copy.png
[HackStudio(20:20)]: 01e4b000 -- 01e4bfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/inspector-object.png
[HackStudio(20:20)]: 01e63000 -- 01e63fff    00001000    RW   P    Gfx::Bitmap [9x9] - Decoded PNG: /res/icons/treeview-expand.png
[HackStudio(20:20)]: 01e69000 -- 01e69fff    00001000    RW   P    Gfx::Bitmap [9x9] - Decoded PNG: /res/icons/treeview-collapse.png
[HackStudio(20:20)]: 01ece000 -- 01ed0fff    00003000    R  S      /res/fonts/CsillaThin7x10.font
[HackStudio(20:20)]: 01ed6000 -- 01ed6fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/undo.png
[HackStudio(20:20)]: 01edc000 -- 01edcfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/redo.png
[HackStudio(20:20)]: 01ee2000 -- 01ee2fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/cut16.png
[HackStudio(20:20)]: 01ee8000 -- 01ee8fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/edit-copy.png
[HackStudio(20:20)]: 01eee000 -- 01eeefff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/paste16.png
[HackStudio(20:20)]: 01ef4000 -- 01ef4fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/delete.png
[HackStudio(20:20)]: 01efa000 -- 01efafff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/go-forward.png
[HackStudio(20:20)]: 01fc0000 -- 01fc0fff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01fbe000 -- 01fbefff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01fbc000 -- 01fbcfff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01fb6000 -- 01fb6fff    00001000    R  S P    SharedBuffer
[HackStudio(20:20)]: 01fba000 -- 01fbafff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/app-hack-studio.png
[HackStudio(20:20)]: 01fa2000 -- 01fa2fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/delete.png
[HackStudio(20:20)]: 01f23000 -- 01f25fff    00003000    R  S      /res/fonts/CsillaThin7x10.font
[HackStudio(20:20)]: 01f2b000 -- 01f2bfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/undo.png
[HackStudio(20:20)]: 01f31000 -- 01f31fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/redo.png
[HackStudio(20:20)]: 01f37000 -- 01f37fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/cut16.png
[HackStudio(20:20)]: 01f3d000 -- 01f3dfff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/edit-copy.png
[HackStudio(20:20)]: 01f43000 -- 01f43fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/paste16.png
[HackStudio(20:20)]: 01f49000 -- 01f49fff    00001000    RW   P    Gfx::Bitmap [16x16] - Decoded PNG: /res/icons/16x16/delete.png
[HackStudio(20:20)]: 01f4f000 -- 01f51fff    00003000    R  S      /res/fonts/CsillaThin7x10.font
[HackStudio(20:20)]: 01f57000 -- 01f59fff    00003000    R  S      /res/fonts/CsillaBold7x10.font
[HackStudio(20:20)]: Kernel regions:
[HackStudio(20:20)]: BEGIN       END         SIZE        ACCESS  NAME
[HackStudio(20:20)]: c0801000 -- c0820fff    00020000    RW        E1000 MMIO
[HackStudio(20:20)]: c0822000 -- c0822fff    00001000    R X       Signal trampolines
[HackStudio(20:20)]: c0824000 -- c0824fff    00001000    R         Kernel info page
[HackStudio(20:20)]: c0826000 -- c0826fff    00001000    RW        Kernel info page
[HackStudio(20:20)]: c0828000 -- c0837fff    00010000    RW  T     Kernel Stack (Thread 0)
[HackStudio(20:20)]: c084a000 -- c0859fff    00010000    RW  T     Kernel Stack (Thread 2)
[HackStudio(20:20)]: c085b000 -- c086afff    00010000    RW  T     Kernel Stack (Thread 3)
[HackStudio(20:20)]: c086c000 -- c086cfff    00001000    RW        Ext2FS: Block group descriptors
[HackStudio(20:20)]: c086e000 -- c2f7dfff    02710000    RW        KBuffer
[HackStudio(20:20)]: c2f7f000 -- c2faffff    00031000    RW        KBuffer
[HackStudio(20:20)]: c2fb1000 -- c2fb1fff    00001000    RW        Ext2FS: Cached bitmap block
[HackStudio(20:20)]: c2fb3000 -- c2fb3fff    00001000    RW        Ext2FS: Cached bitmap block
[HackStudio(20:20)]: c2fb5000 -- c2fc4fff    00010000    RW  T     Kernel Stack (Thread 4)
[HackStudio(20:20)]: c2fc6000 -- c2fc6fff    00001000    RW        Ext2FS: Cached bitmap block
[HackStudio(20:20)]: c2fc8000 -- c2fd7fff    00010000    RW  T     Kernel Stack (Thread 5)
[HackStudio(20:20)]: c2fd9000 -- c2fe8fff    00010000    RW        Kernel Packet Buffer
[HackStudio(20:20)]: c0839000 -- c0839fff    00001000    RW        Ext2FS: Cached bitmap block
[HackStudio(20:20)]: c2fea000 -- c3009fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c300b000 -- c302afff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c302c000 -- c304bfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c304d000 -- c306cfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c306e000 -- c308dfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c308f000 -- c30aefff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c30b0000 -- c30cffff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c30d1000 -- c30f0fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c30f2000 -- c3111fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3113000 -- c3132fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3134000 -- c3153fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3155000 -- c3174fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3176000 -- c3195fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3197000 -- c31a6fff    00010000    RW  T     Kernel Stack (Thread 7)
[HackStudio(20:20)]: c31a8000 -- c31b7fff    00010000    RW  T     Kernel Stack (Thread 8)
[HackStudio(20:20)]: c31b9000 -- c31c8fff    00010000    RW  T     Kernel Stack (Thread 9)
[HackStudio(20:20)]: c31ca000 -- c31d9fff    00010000    RW  T     Kernel Stack (Thread 10)
[HackStudio(20:20)]: c31db000 -- c31eafff    00010000    RW  T     Kernel Stack (Thread 11)
[HackStudio(20:20)]: c31ec000 -- c31fbfff    00010000    RW  T     Kernel Stack (Thread 12)
[HackStudio(20:20)]: c31fd000 -- c320cfff    00010000    RW  T     Kernel Stack (Thread 13)
[HackStudio(20:20)]: c320e000 -- c321dfff    00010000    RW  T     Kernel Stack (Thread 14)
[HackStudio(20:20)]: c321f000 -- c322efff    00010000    RW  T     Kernel Stack (Thread 15)
[HackStudio(20:20)]: c3230000 -- c323ffff    00010000    RW  T     Kernel Stack (Thread 16)
[HackStudio(20:20)]: c3241000 -- c3260fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3262000 -- c3271fff    00010000    RW  T     Kernel Stack (Thread 17)
[HackStudio(20:20)]: c3273000 -- c3292fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3294000 -- c32b3fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c32b5000 -- c32d4fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c32d6000 -- c32f5fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c32f7000 -- c3316fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3318000 -- c3337fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3339000 -- c3358fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c335a000 -- c3379fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c337b000 -- c339afff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c339c000 -- c33bbfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c33bd000 -- c33dcfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c33de000 -- c33fdfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c33ff000 -- c341efff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3420000 -- c343ffff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3441000 -- c3460fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3462000 -- c3481fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3483000 -- c34a2fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c34a4000 -- c34c3fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c34c5000 -- c34e4fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c34e6000 -- c3505fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3507000 -- c3526fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3528000 -- c3547fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3549000 -- c3558fff    00010000    RW  T     Kernel Stack (Thread 18)
[HackStudio(20:20)]: c355a000 -- c3579fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c357b000 -- c359afff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c083b000 -- c083bfff    00001000    RW        Ext2FS: Cached bitmap block
[HackStudio(20:20)]: c359c000 -- c35bbfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c35bd000 -- c35dcfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c35de000 -- c35fdfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c35ff000 -- c361efff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3620000 -- c363ffff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3641000 -- c3660fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3662000 -- c3681fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3683000 -- c36a2fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c36a4000 -- c36c3fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c36c5000 -- c36e4fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c36e6000 -- c3705fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3707000 -- c3726fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3728000 -- c3737fff    00010000    RW  T     Kernel Stack (Thread 19)
[HackStudio(20:20)]: c3739000 -- c3758fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c375a000 -- c3779fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c377b000 -- c379afff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c379c000 -- c37bbfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c37bd000 -- c37dcfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c37de000 -- c37fdfff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c37ff000 -- c381efff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3820000 -- c382ffff    00010000    RW  T     Kernel Stack (Thread 20)
[HackStudio(20:20)]: c3831000 -- c3850fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3852000 -- c3871fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3873000 -- c3892fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c3894000 -- c38b3fff    00020000    RW        DoubleBuffer
[HackStudio(20:20)]: c38b5000 -- c38d4fff    00020000    RW        DoubleBuffer
WindowServer(13): ClientConnection{0x02911ca2}: Client disconnected: 8

This looks like a double free somewhere in the remove() method in the HashTable implementation, maybe in the lower level code for the linked lists which are used for buckets. I'd be happy to look into this later today or next week.

ADKaster commented 4 years ago

Oooh another __cxa_finalize crash. Points towards global destructors (hopefully not in malloc again :) ).

muscar commented 4 years ago

@ADKaster is there a previous issue around this I can have a look at?

ADKaster commented 4 years ago

LibGUI global destructors: https://github.com/SerenityOS/serenity/issues/900 Sergey fixing a hack I put in for global destructors in malloc.cpp https://github.com/SerenityOS/serenity/pull/1240

ADKaster commented 4 years ago

The solution is probably to add AK::NeverDestroyed wrappers around some global hash map of RefCounted objects

muscar commented 4 years ago

Thanks, I'll have a look.