netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alessandro Vesely <vesely@tana.it>
To: netfilter@vger.kernel.org
Subject: Debugging libmnl client
Date: Wed, 17 Jan 2024 14:21:07 +0100	[thread overview]
Message-ID: <50854203-77c6-4145-8d87-8b493ac492a5@tana.it> (raw)

Hi,

are libmnl debug symbols available?

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?


TIA for any hint
Ale
-- 




             reply	other threads:[~2024-01-17 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 13:21 Alessandro Vesely [this message]
2024-01-17 14:53 ` Debugging libmnl client Jeremy Sowden
2024-01-18  9:05   ` Alessandro Vesely
2024-01-18 10:11     ` Slavko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50854203-77c6-4145-8d87-8b493ac492a5@tana.it \
    --to=vesely@tana.it \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).