Re: Memory leak on failed connection attempt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-06-02 at 10:57 -0300, Gustavo F. Padovan wrote:
> Hi Tomas,
> ...
> Can you try an upstream kernel and check if this still happens? 2.6.32 is
> quite old.

Hi Gustavo, and thank you for the advice. I've managed to port my device
to linux-2.6.39.1, and have also upgraded to the latest Bluez4 v4.94,
and I am still seeing the leak on failed connection attempts. The output
shown by 'cat /sys/kernel/debug/kmemleak' has changed slightly, however-

unreferenced object 0xc2ce0600 (size 512):
  comm "softirq", pid 0, jiffies 4294956138 (age 56.420s)
  hex dump (first 32 bytes):
    00 01 10 00 00 02 20 00 00 00 00 00 7a a5 02 94  ...... .....z...
    0a 00 00 00 09 00 00 01 01 01 00 00 00 00 00 00  ................
  backtrace:
    [<c00da3ac>] create_object+0x120/0x210
    [<c021d058>] kmemleak_alloc+0x40/0x74
    [<c00d7cd4>] kmem_cache_alloc+0x9c/0xd0
    [<bf055f54>] hci_conn_add+0x30/0x268 [bluetooth]
    [<bf056504>] hci_connect+0x1d4/0x3e8 [bluetooth]
    [<bf0637f8>] l2cap_do_connect+0xfc/0x304 [bluetooth]
    [<bf066c84>] l2cap_sock_connect+0x180/0x1dc [bluetooth]
    [<c01a9458>] sys_connect+0x74/0x98
    [<c0070fc0>] ret_fast_syscall+0x0/0x2c
    [<ffffffff>] 0xffffffff
unreferenced object 0xc2c4ee00 (size 512):
  comm "softirq", pid 0, jiffies 4294957663 (age 41.170s)
  hex dump (first 32 bytes):
    00 01 10 00 00 02 20 00 00 00 00 00 7a a5 02 94  ...... .....z...
    0a 00 00 00 09 00 00 01 01 01 00 00 00 00 00 00  ................
  backtrace:
    [<c00da3ac>] create_object+0x120/0x210
    [<c021d058>] kmemleak_alloc+0x40/0x74
    [<c00d7cd4>] kmem_cache_alloc+0x9c/0xd0
    [<bf055f54>] hci_conn_add+0x30/0x268 [bluetooth]
    [<bf056504>] hci_connect+0x1d4/0x3e8 [bluetooth]
    [<bf0637f8>] l2cap_do_connect+0xfc/0x304 [bluetooth]
    [<bf066c84>] l2cap_sock_connect+0x180/0x1dc [bluetooth]
    [<c01a9458>] sys_connect+0x74/0x98
    [<c0070fc0>] ret_fast_syscall+0x0/0x2c
    [<ffffffff>] 0xffffffff

Can anybody else confirm this?

Thank you, 
Tomas Targownik



--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux