Re: Debugging libmnl client

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

 



On 2024-01-17, at 14:21:07 +0100, Alessandro Vesely wrote:
> are libmnl debug symbols available?

The details depend on how the library was built and installed.  Based on
the location of libmnl.so.0 listed below, I'm guessing that you're using
Debian or Ubuntu and have installed libmnl0 with apt.  In that case, for
recent versions, you should be able to `apt-get install libmnl0-dbgsym`.

J.

> mnl_cb_run() returns -1 without calling the cb().  I found a file using debuginfod-find, and did so in gdb:
> 
> (gdb) add-symbol-file /home/ale/.cache/debuginfod_client/c27acdf07e5746f0a6c74055e6b21dbe700e054d/debuginfo
> add symbol table from file "/home/ale/.cache/debuginfod_client/c27acdf07e5746f0a6c74055e6b21dbe700e054d/debuginfo"
> (y or n) y
> Reading symbols from /home/ale/.cache/debuginfod_client/c27acdf07e5746f0a6c74055e6b21dbe700e054d/debuginfo...
> (gdb) break mnl_cb_run
> Breakpoint 1 at 0x2860
> (gdb) run
> Starting program: /my/client
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> 
> Breakpoint 1.2, 0x00007ffff7cb9860 in mnl_cb_run () from /usr/lib/x86_64-linux-gnu/libmnl.so.0
> (gdb) n
> Single stepping until exit from function mnl_cb_run,
> which has no line number information.
> 
> 
> So it's not a good debug symbol file, is it?
> 
> What am I missing?

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux