Summary: | Valgrind error on shutdown | ||
---|---|---|---|
Product: | Wayland | Reporter: | Rob Bradford <rob> |
Component: | weston | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | janarne |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
destroy input_method_binding
valgrind log after applying patch |
Description
Rob Bradford
2013-08-15 16:28:47 UTC
Jan, can you look into this? Created attachment 84391 [details] [review] destroy input_method_binding I could not test it, but from the code and valgrind log it seems to be something like this. Created attachment 84396 [details]
valgrind log after applying patch
I tested attached patch with git master, and it seems to at least remove "Invalid read of size 8" in unbind_input_method, but it doesn't remove "Invalid read of size 8" triggered by wl_client_destroy.
Attached current valgrind log.
==6992== Invalid read of size 8
==6992== at 0x4E3A061: wl_signal_emit (wayland-server.h:170)
==6992== by 0x4E3AFA6: wl_client_destroy (wayland-server.c:600)
==6992== by 0x41A8DF: text_backend_notifier_destroy (text-backend.c:934)
==6992== by 0x409078: wl_signal_emit (wayland-server.h:171)
==6992== by 0x410856: main (compositor.c:3463)
==6992== Address 0xd49a0e8 is 120 bytes inside a block of size 144 free'd
==6992== at 0x4C2AF7C: free (vg_replace_malloc.c:446)
==6992== by 0x4E3B01B: wl_client_destroy (wayland-server.c:608)
==6992== by 0x4E3A5AC: wl_client_connection_data (wayland-server.c:244)
==6992== by 0x4E3CD5B: wl_event_source_fd_dispatch (event-loop.c:86)
==6992== by 0x4E3D70C: wl_event_loop_dispatch (event-loop.c:421)
==6992== by 0x4E3B860: wl_display_run (wayland-server.c:869)
==6992== by 0x410835: main (compositor.c:3457)
==6992==
==6992== Invalid read of size 8
==6992== at 0x4E3A06D: wl_signal_emit (wayland-server.h:170)
==6992== by 0x4E3AFA6: wl_client_destroy (wayland-server.c:600)
==6992== by 0x41A8DF: text_backend_notifier_destroy (text-backend.c:934)
==6992== by 0x409078: wl_signal_emit (wayland-server.h:171)
==6992== by 0x410856: main (compositor.c:3463)
==6992== Address 0xd49a0e8 is 120 bytes inside a block of size 144 free'd
==6992== at 0x4C2AF7C: free (vg_replace_malloc.c:446)
==6992== by 0x4E3B01B: wl_client_destroy (wayland-server.c:608)
==6992== by 0x4E3A5AC: wl_client_connection_data (wayland-server.c:244)
==6992== by 0x4E3CD5B: wl_event_source_fd_dispatch (event-loop.c:86)
==6992== by 0x4E3D70C: wl_event_loop_dispatch (event-loop.c:421)
==6992== by 0x4E3B860: wl_display_run (wayland-server.c:869)
==6992== by 0x410835: main (compositor.c:3457)
==6992==
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/wayland/weston/issues/30. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.