Breakpoint 1, resolve_context_add_wins_method_lp (ctx=0x5568e3831040, 
lp_ctx=0x5568e08772c0) at source4/libcli/resolve/wins.c:79
79      {
(gdb) n
81              load_interface_list(ctx, lp_ctx, &ifaces);
(gdb)
82              return resolve_context_add_wins_method(ctx, 
lpcfg_wins_server_list(lp_ctx), ifaces, lpcfg_nbt_port(lp_ctx), 
lpcfg_parm_int(lp_ctx, NULL, "nbt", "time
(gdb) print ifaces
$6 = (struct interface *) 0x5568e383f360
(gdb) n
83      }
(gdb) call (size_t)talloc_reference_count(0x5568e383f360)
$8 = 1
Breakpoint 1, resolve_context_add_wins_method_lp (ctx=0x5568e37758f0, 
lp_ctx=0x5568e08772c0) at source4/libcli/resolve/wins.c:79
79      {
(gdb) c
Continuing.
[Detaching after fork from child process 767987]

Breakpoint 2, continue_ip_resolve_name (ctx=0x5568e1f26190) at 
source4/librpc/rpc/dcerpc_sock.c:207
207             struct composite_context *c = talloc_get_type_abort(
(gdb) call (size_t)talloc_reference_count(0x5568e383f360)
$12 = 1
(gdb) c
Continuing.

Breakpoint 1, resolve_context_add_wins_method_lp (ctx=0x5568e33d5f10, 
lp_ctx=0x5568e08772c0) at source4/libcli/resolve/wins.c:79
79      {
(gdb) call (size_t)talloc_reference_count(0x5568e383f360)
$13 = 1
(gdb) call (void)talloc_show_parents(0x5568e383f360, stdout)

talloc parents of 'struct interface'
        'struct interface'
        'struct resolve_context'
        'struct loadparm_context'

call (void*)talloc_parent(0x5568e383f360)
$18 = (void *) 0x5568e3831040
call (void*)talloc_parent(0x5568e3831040)
$19 = (void *) 0x5568e08772c0
call (void*)talloc_parent(0x5568e08772c0)
$20 = (void *) 0x0
(gdb) call (void)talloc_report_full(0x5568e08772c0, 
fopen("/tmp/reppar.txt","w"))

---------
NB: (this was after process restart, thus not so many total bytes, but you get 
the idea of the leak)

full talloc report on 'struct loadparm_context' (total  33206 bytes in 431 
blocks)
    struct resolve_context         contains     48 bytes in   2 blocks (ref 0) 
0x5568e33d5f10
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e3510130
    struct resolve_context         contains   3126 bytes in  38 blocks (ref 0) 
0x5568e37758f0
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e1fd6090
        struct resolve_bcast_data      contains     16 bytes in   1 blocks (ref 
0) 0x5568e33d5f80
        struct interface               contains   1459 bytes in  15 blocks (ref 
0) 0x5568e1e70e00
            struct interface               contains    492 bytes in   5 blocks 
(ref 0) 0x5568e3546c10
                255.255.255.0                  contains     14 bytes in   1 
blocks (ref 0) 0x5568e3344200
                192.168.210.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e18a0220
                192.168.210.231                contains     16 bytes in   1 
blocks (ref 0) 0x5568e4769340
                ens18                          contains      6 bytes in   1 
blocks (ref 0) 0x5568e3775880
            struct interface               contains    479 bytes in   5 blocks 
(ref 0) 0x5568e3204240
                255.0.0.0                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e33d5da0
                127.255.255.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e33d5e90
                127.0.0.1                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e19ad110
                lo                             contains      3 bytes in   1 
blocks (ref 0) 0x5568e3427df0
            ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff contains     40 bytes in   
1 blocks (ref 0) 0x5568e35ae560
                                           contains      1 bytes in   1 blocks 
(ref 0) 0x5568e1f347b0
            ::1                            contains      4 bytes in   1 blocks 
(ref 0) 0x5568e0906fc0
            lo                             contains      3 bytes in   1 blocks 
(ref 0) 0x5568e3b2a290
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e34a8010
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e21d9230
        struct resolve_wins_data       contains     24 bytes in   2 blocks (ref 
0) 0x5568e3466250
            reference to: struct interface
        struct interface               contains   1459 bytes in  15 blocks (ref 
1) 0x5568e1ca25e0
            struct interface               contains    492 bytes in   5 blocks 
(ref 0) 0x5568e35778a0
                255.255.255.0                  contains     14 bytes in   1 
blocks (ref 0) 0x5568e1fd5fa0
                192.168.210.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e18a0110
                192.168.210.231                contains     16 bytes in   1 
blocks (ref 0) 0x5568e47699c0
                ens18                          contains      6 bytes in   1 
blocks (ref 0) 0x5568e1e10240
            struct interface               contains    479 bytes in   5 blocks 
(ref 0) 0x5568e1fc8330
                255.0.0.0                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e21d92c0
                127.255.255.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e4b8d2e0
                127.0.0.1                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e1fd5f20
                lo                             contains      3 bytes in   1 
blocks (ref 0) 0x5568e38fed90
            ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff contains     40 bytes in   
1 blocks (ref 0) 0x5568e1e4e2f0
                                           contains      1 bytes in   1 blocks 
(ref 0) 0x5568e3830d10
            ::1                            contains      4 bytes in   1 blocks 
(ref 0) 0x5568e3830fd0
            lo                             contains      3 bytes in   1 blocks 
(ref 0) 0x5568e0a045c0
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e0906f30
    struct resolve_context         contains   3126 bytes in  38 blocks (ref 0) 
0x5568e3831040
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e3830c80
        struct resolve_bcast_data      contains     16 bytes in   1 blocks (ref 
0) 0x5568e37a0710
        struct interface               contains   1459 bytes in  15 blocks (ref 
0) 0x5568e3050ee0
            struct interface               contains    492 bytes in   5 blocks 
(ref 0) 0x5568e3dc9200
                255.255.255.0                  contains     14 bytes in   1 
blocks (ref 0) 0x5568e2f03b70
                192.168.210.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e1fb2d40
                192.168.210.231                contains     16 bytes in   1 
blocks (ref 0) 0x5568e33cec20
                ens18                          contains      6 bytes in   1 
blocks (ref 0) 0x5568e23feac0
            struct interface               contains    479 bytes in   5 blocks 
(ref 0) 0x5568e3427bd0
                255.0.0.0                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e3775400
                127.255.255.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e2fe58d0
                127.0.0.1                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e2092730
                lo                             contains      3 bytes in   1 
blocks (ref 0) 0x5568e08fc9e0
            ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff contains     40 bytes in   
1 blocks (ref 0) 0x5568e4773470
                                           contains      1 bytes in   1 blocks 
(ref 0) 0x5568e383f580
            ::1                            contains      4 bytes in   1 blocks 
(ref 0) 0x5568e38310b0
            lo                             contains      3 bytes in   1 blocks 
(ref 0) 0x5568e3831340
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e34a81d0
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e1eebd50
        struct resolve_wins_data       contains     24 bytes in   2 blocks (ref 
0) 0x5568e1f34de0
            reference to: struct interface
        struct interface               contains   1459 bytes in  15 blocks (ref 
1) 0x5568e383f360
            struct interface               contains    492 bytes in   5 blocks 
(ref 0) 0x5568e37a04f0
                255.255.255.0                  contains     14 bytes in   1 
blocks (ref 0) 0x5568e35e32e0
                192.168.210.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e4773740
                192.168.210.231                contains     16 bytes in   1 
blocks (ref 0) 0x5568e1f26440
                ens18                          contains      6 bytes in   1 
blocks (ref 0) 0x5568e0be7dd0
            struct interface               contains    479 bytes in   5 blocks 
(ref 0) 0x5568e2f03950
                255.0.0.0                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e34736e0
                127.255.255.255                contains     16 bytes in   1 
blocks (ref 0) 0x5568e31b7f70
                127.0.0.1                      contains     10 bytes in   1 
blocks (ref 0) 0x5568e35639d0
                lo                             contains      3 bytes in   1 
blocks (ref 0) 0x5568e1ede5f0
            ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff contains     40 bytes in   
1 blocks (ref 0) 0x5568e37b4cc0
                                           contains      1 bytes in   1 blocks 
(ref 0) 0x5568e4b8bb50
            ::1                            contains      4 bytes in   1 blocks 
(ref 0) 0x5568e23feb30
            lo                             contains      3 bytes in   1 blocks 
(ref 0) 0x5568e3775390
        struct resolve_method          contains     40 bytes in   1 blocks (ref 
0) 0x5568e1fd6120
    struct resolve_context         contains   3126 bytes in  38 blocks (ref 0) 
0x5568e3aa6080
....   leak leak leak ....

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121024

Title:
  Memory leak in Samba when DRS replication fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2121024/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to