public inbox for developer@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
From: Dan McDonald <danmcd@mnx.io>
To: illumos-developer <developer@lists.illumos.org>
Subject: [developer] cxgbetool dumps core, hard to debug
Date: Thu, 31 Oct 2024 18:44:08 +0000	[thread overview]
Message-ID: <554727FE-A55F-4868-94C0-50538ACA203F@mnx.io> (raw)

So I have this dump:

> $C
08047b28 dump_block_regs+0x78(815e300, 0, 2d, feec2c90, fef5e000, 0)
08047b68 dump_regs_table+0x5d(3, 8047c84, 3, 0, 80bc2e0, 1a)
08047b98 dump_regs_t6+0x23(3, 8047c84, 3, 0)
08047bc8 get_regdump+0x73(3, 8047c84, 3, 8237e80)
08047be8 run_cmd+0xad(3, 8047c84, 8237e80, fef5e000, 8047c84, 80bc000)
08047c18 main+0x40(8047c1c, fef67784, 8047c58, 8053f0b)
08047c58 _start_crt+0x9a(3, 8047c84, fefcec77, 0, 0, 0)
08047c78 _start+0x1a(3, 8047d98, 8047da2, 8047da9, 0, 8047db1)
> ::status
debugging core file of cxgbetool (32-bit) from a05
file: /usr/sbin/cxgbetool
initial argv: cxgbetool cxgbe1 regdump
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=1e000

And the 1e000 is in the memory specified by 815e300:

> 815e300/10P
cxgbetool`t6_sge_regs:
cxgbetool`t6_sge_regs:          0x809247d          0x1e000            
                0                  0x80ab07d          0xf                
                0x11               0x80aa9d0          0xe                
                1                  0x80aa978          



This utility has duplicate function names that make it mildly annoying.

It looks like dump_block_regs() is getting a NULL `regs` array.  The hardware in question is a T62100-LP-CR , FWIW.

Does anyone with more cxgbe experience have any insight?

I'll probably file a bug, but in case anyone looks at anything above and goes "oooh I know that," I'd appreciate knowing.  The illumos version (from SmartOS) is earlier this month.

Thanks,
Dan
------------------------------------------
illumos: illumos-developer
Permalink: https://illumos.topicbox.com/groups/developer/Tec45bd4a8ce9b0fc-M7db664ab8780bbee86f1de32
Delivery options: https://illumos.topicbox.com/groups/developer/subscription

                 reply	other threads:[~2024-10-31 18:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=554727FE-A55F-4868-94C0-50538ACA203F@mnx.io \
    --to=danmcd@mnx.io \
    --cc=developer@lists.illumos.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 NNTP newsgroup(s).