Skip to content

AddressSanitizer: heap-buffer-overflow on Snapshot: rev. 2.3.3-513-g708484c0c #755

Description

@danim7

I got this abort message on last master, with the attached AddressSanitizer line. I was just playing around with the application to test it, opening different menus and launching random downloads. The last thing I did was add a new download from the search menu, and then i tried to move to the downloads screen, when i get this.

Is this any useful?
Is it better to just run the app on gdb to get a better backtrace?

Not sure how the "ERROR:google_apis/gcm/engine/registration_request.cc:291" got there, or if they have something to do with the crash.

Let me know if I can help somehow.

 2026-05-27 21:11:05: amuleAppCommon.cpp(416): Initialising aMule GIT compiled with wxGTK3 v3.2.8 and Boost 1.83 (Debugging) (Snapshot: rev. 2.3.3-513-g708484c0c)
 2026-05-27 21:11:05: amuleAppCommon.cpp(463): Checking if there is an instance already running...
 2026-05-27 21:11:05: amuleAppCommon.cpp(494): No other instances are running.
....many log lines...

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.366: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.367: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.368: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.368: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.963: Negative content height -1 (allocation 9, extents 5x5) while allocating gadget (node button, owner GtkButton)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.964: Negative content height -1 (allocation 9, extents 5x5) while allocating gadget (node button, owner GtkButton)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.965: Negative content height -1 (allocation 9, extents 5x5) while allocating gadget (node button, owner GtkButton)

(org.amule.aMule:38186): Gtk-WARNING **: 21:15:07.965: Negative content height -1 (allocation 9, extents 5x5) while allocating gadget (node button, owner GtkButton)
libva error: /usr/lib/x86_64-linux-gnu/dri/virtio_gpu_drv_video.so init failed
[38297:38297:0527/212029.855205:ERROR:media/gpu/vaapi/vaapi_wrapper.cc:1640] vaInitialize failed: resource allocation failed
[38346:7:0527/212030.412992:ERROR:gpu/ipc/client/command_buffer_proxy_impl.cc:285] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[38297:38297:0527/212033.846078:ERROR:gpu/command_buffer/service/context_group.cc:138] ContextResult::kFatalFailure: WebGL1 blocklisted
[38247:38284:0527/212035.285703:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[38247:38284:0527/212056.398361:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[38247:38284:0527/212154.500208:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[38247:38284:0527/212317.984706:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[38247:38284:0527/212618.791933:ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
=================================================================
==38186==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x51c0004572c4 at pc 0x555d3a37f003 bp 0x7fff911840a0 sp 0x7fff91184098
WRITE of size 1 at 0x51c0004572c4 thread T0
    #0 0x555d3a37f002 in CKnownFile::SetShowSources(bool) /home/user/amule/ref/amule/src/KnownFile.h:332
    #1 0x555d3a37e172 in CSourceListCtrl::SetShowSources(CKnownFile*, bool) const /home/user/amule/ref/amule/src/SourceListCtrl.cpp:70
    #2 0x555d3a2d0fe3 in CGenericClientListCtrl::ShowSources(std::vector<CKnownFile*, std::allocator<CKnownFile*> > const&) /home/user/amule/ref/amule/src/GenericClientListCtrl.cpp:358
    #3 0x555d3a2a04ae in CDownloadListCtrl::DoItemSelectionChanged() /home/user/amule/ref/amule/src/DownloadListCtrl.cpp:629
    #4 0x555d39dac608 in MuleNotify::DownloadCtrlDoItemSelectionChanged() /home/user/amule/ref/amule/src/GuiEvents.cpp:159
    #5 0x555d39d915a6 in MuleNotify::CMuleNotifier0::Notify() const /home/user/amule/ref/amule/src/GuiEvents.h:237
    #6 0x555d39f635cf in MuleNotify::CMuleGUIEvent::Notify() const /home/user/amule/ref/amule/src/GuiEvents.h:368
    #7 0x555d39f567d6 in CamuleApp::OnNotifyEvent(MuleNotify::CMuleGUIEvent&) /home/user/amule/ref/amule/src/amule.cpp:1608
    #8 0x7f7cdf837e6e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x237e6e) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #9 0x7f7cdf838042 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x238042) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #10 0x7f7cdf8386ac in wxEvtHandler::TryHereOnly(wxEvent&) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x2386ac) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #11 0x7f7cdf83872d in wxEvtHandler::ProcessEventLocally(wxEvent&) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x23872d) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #12 0x7f7cdf838830 in wxEvtHandler::ProcessEvent(wxEvent&) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x238830) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #13 0x7f7cdf8399bd in wxEvtHandler::SafelyProcessEvent(wxEvent&) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x2399bd) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #14 0x7f7cdf839ae3 in wxEvtHandler::ProcessPendingEvents() (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x239ae3) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #15 0x7f7cdf6b0679 in wxAppConsoleBase::ProcessPendingEvents() (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0xb0679) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #16 0x7f7cdef6d754 in wxApp::DoIdle() (/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0+0x36d754) (BuildId: a8f18883ae32522592b889c2f7ed4c996f493492)
    #17 0x7f7cdef6d836  (/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0+0x36d836) (BuildId: a8f18883ae32522592b889c2f7ed4c996f493492)
    #18 0x7f7ce023a384  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x5c384) (BuildId: 0238e5480cfba00d18623750cdd44b19a753f7ad)
    #19 0x7f7ce023c5b6  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x5e5b6) (BuildId: 0238e5480cfba00d18623750cdd44b19a753f7ad)
    #20 0x7f7ce023d01e in g_main_loop_run (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x5f01e) (BuildId: 0238e5480cfba00d18623750cdd44b19a753f7ad)
    #21 0x7f7cdd80705c in gtk_main (/lib/x86_64-linux-gnu/libgtk-3.so.0+0x20705c) (BuildId: d54786f1fa09b343b302a9725f239075bbf0d0eb)
    #22 0x7f7cdef8c404 in wxGUIEventLoop::DoRun() (/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0+0x38c404) (BuildId: a8f18883ae32522592b889c2f7ed4c996f493492)
    #23 0x7f7cdf6ec900 in wxEventLoopBase::Run() (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0xec900) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #24 0x7f7cdf6b1b2c in wxAppConsoleBase::MainLoop() (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0xb1b2c) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #25 0x7f7cdf73a03a in wxEntry(int&, wchar_t**) (/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0+0x13a03a) (BuildId: a4384160672bdd2eff7a2acd90fd6ed4bfd876c4)
    #26 0x555d3a2390a6 in main /home/user/amule/ref/amule/src/amule-gui.cpp:98
    #27 0x7f7cde635ca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #28 0x7f7cde635d64 in __libc_start_main_impl ../csu/libc-start.c:360
    #29 0x555d39d7c720 in _start (/home/user/amule/ref/amule/build/src/amule+0x263720) (BuildId: 5ab324c79acda86dfdd5a8af0475f2d7a6a5ec9f)

Address 0x51c0004572c4 is a wild pointer inside of access range of size 0x000000000001.
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/user/amule/ref/amule/src/KnownFile.h:332 in CKnownFile::SetShowSources(bool)
Shadow bytes around the buggy address:
  0x51c000457000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x51c000457280: fa fa fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa
  0x51c000457300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x51c000457500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==38186==ABORTING

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions