Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 739655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:25:32+00:00 2026-05-14T08:25:32+00:00

I’m trying to debug what appears to be a completion queue issue: Apr 14

  • 0

I’m trying to debug what appears to be a completion queue issue:

Apr 14 18:39:15 ST2035 kernel: Call Trace:
Apr 14 18:39:15 ST2035 kernel:  [<ffffffff8049b295>] schedule_timeout+0x1e/0xad
Apr 14 18:39:15 ST2035 kernel:  [<ffffffff8049a81c>] wait_for_common+0xd5/0x13c
Apr 14 18:39:15 ST2035 kernel:  [<ffffffffa01ca32b>]
ib_unregister_mad_agent+0x376/0x4c9 [ib_mad]
Apr 14 18:39:16 ST2035 kernel:  [<ffffffffa03058f4>] ib_umad_close+0xbd/0xfd

Is it possible to turn those hex numbers into something close to line numbers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:25:33+00:00Added an answer on May 14, 2026 at 8:25 am

    Not exactly but if you have a vmlinux image built with debugging info, (e.g., in RHEL, you should be able to install the kernel-debug or kernel-dbg or something like that) you can get close. So assuming you have that vmlinux file available. Do the following:

    objdump -S vmlinux

    This will try it’s hardest to match the object code to individual lines of source code.

    e.g. for the following C code:

    #include <stdio.h>
    main() {
      int a = 1;
      int b = 2;
    
      // This is a comment
    
      printf("This is the print line %d\n", b);
    } 
    

    compiled with : cc -g test.c

    and then running objdump -S on the resulting executable, I get a large output describing the various parts of the executable inclding the following section:

    00000000004004cc <main>:
    #include <stdio.h>
    main() {
      4004cc:   55                      push   %rbp
      4004cd:   48 89 e5                mov    %rsp,%rbp
      4004d0:   48 83 ec 20             sub    $0x20,%rsp
      int a = 1;
      4004d4:   c7 45 f8 01 00 00 00    movl   $0x1,-0x8(%rbp)
      int b = 2;
      4004db:   c7 45 fc 02 00 00 00    movl   $0x2,-0x4(%rbp)
    
      // This is a comment
    
      printf("This is the print line %d\n", b);
      4004e2:   8b 75 fc                mov    -0x4(%rbp),%esi
      4004e5:   bf ec 05 40 00          mov    $0x4005ec,%edi
      4004ea:   b8 00 00 00 00          mov    $0x0,%eax
      4004ef:   e8 cc fe ff ff          callq  4003c0 <printf@plt>
    } 
    

    You can match the addresses of the object code in the first column against the addresses in your stack trace. Combine that with the line number info interleaved in the assembly output… and you’re there.

    Now keep in mind that this will not always succeed 100% because the kenrel is normally compiled at -O2 optimization level and the compiler would have done a lot of code re-ordering etc. But if you are familiar with the code that you’re trying to debug and have some comfort with deciphering the assembly of the platform you’re working on… you should be able to pin down most of your crashes etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 400k
  • Answers 400k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer javax.persistence.EntityExistsException is what you will usually get from a JPA… May 15, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer You could use Custom Icons. May 15, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer cat somefile | grep example | awk -F '"' '{… May 15, 2026 at 4:17 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.