Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Memory Leaks Detected Relating to GLib #79

@zakuArbor

Description

@zakuArbor

Purpose

  • running pam_test shows a lot of memory leaks
    #16 0x7f63808e009b in g_task_return_now (/lib64/libgio-2.0.so.0+0xb209b) (BuildId: 527b46dc68e9bd27393cac77da7c9ecda15eac19)
    #17 0x7f63808e00d4 in complete_in_idle_cb (/lib64/libgio-2.0.so.0+0xb20d4) (BuildId: 527b46dc68e9bd27393cac77da7c9ecda15eac19)
    #18 0x7f638073d48c in g_idle_dispatch (/lib64/libglib-2.0.so.0+0x5848c) (BuildId: dd6f24415c0a2d65fdd4c2ce98a158495431f611)
    #19 0x7f638074148b in g_main_context_dispatch (/lib64/libglib-2.0.so.0+0x5c48b) (BuildId: dd6f24415c0a2d65fdd4c2ce98a158495431f611)
    #20 0x7f638079f647 in g_main_context_iterate.isra.0 (/lib64/libglib-2.0.so.0+0xba647) (BuildId: dd6f24415c0a2d65fdd4c2ce98a158495431f611)
    #21 0x7f6380740a8e in g_main_loop_run (/lib64/libglib-2.0.so.0+0x5ba8e) (BuildId: dd6f24415c0a2d65fdd4c2ce98a158495431f611)
    #22 0x7f63809484b1 in gdbus_shared_thread_func.lto_priv.0 (/lib64/libgio-2.0.so.0+0x11a4b1) (BuildId: 527b46dc68e9bd27393cac77da7c9ecda15eac19)
    #23 0x7f638076f982 in g_thread_proxy (/lib64/libglib-2.0.so.0+0x8a982) (BuildId: dd6f24415c0a2d65fdd4c2ce98a158495431f611)
    #24 0x7f637feae906 in start_thread (/lib64/libc.so.6+0x8c906) (BuildId: 245240a31888ad5c11bbc55b18e02d87388f59a9)

SUMMARY: AddressSanitizer: 15384 byte(s) leaked in 377 allocation(s).

The likely culprit is pam_bt_pair.c::process_dbus_bt_list

Tasks/Goals

  • Read glib documentation to figure out which function calls allocates memory
  • Squash all memory leaks

Summary

To fill out once the issue is to be closed. Give a short summary of the changes you made to implement or fix an issue

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingPAM

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions