public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Mao Han <han_mao@c-sky.com>, elfutils-devel@sourceware.org
Cc: ren_guo@c-sky.com
Subject: Re: [PATCH V2 0/2] Add C-SKY support
Date: Sun, 14 Apr 2019 20:23:00 -0000	[thread overview]
Message-ID: <4c84fd5a45f6f9ac5f12c68bbc848bb66e96169c.camel@klomp.org> (raw)
In-Reply-To: <cover.1554880646.git.han_mao@c-sky.com>

On Wed, 2019-04-10 at 15:51 +0800, Mao Han wrote:
> I'v check some of the failed testcase.

Thanks for double checking, it seems we understand all of the cases why
they fail except...

> > I haven't looked at the code yet, so maybe none of the backtrace tests
> > would work even if you could run in "full system mode". If you do have
> > a way to generate a C-SKY core file it would be interesting to see if
> > you can get a backtrace from it using eu-stack.
> 
> I'v tried that and not able to get a backtrace, seems something wrong
> with the csky_corenote.c?
> # eu-stack --core=./core 
> PID 142 - core
> eu-stack: Couldn't show any frames.

It is hard to say what went wrong.
In theory you can examine the executable and core file cross arch, if
there is backend support. So if you could post a small binary and a
core file for it somewhere we can try debugging together.

Try something like:
$ ulimit -c unlimited
$ echo "int main () { int i = 1; i /= i - 1; }" | gcc -xc -static -o divzero -
$ ./divzero 
Floating point exception (core dumped)
$ eu-stack --core core.18678 --exec divzero
PID 18678 - core
TID 18678:
#0  0x0000000000400ff3 main
#1  0x00000000004011e4 generic_start_main
#2  0x0000000000401461 __libc_start_main
#3  0x0000000000400ef6 _start

If you could run that on your C-SKY setup and post the (static) binary
and core file somewhere (they are probably too big for the mailinglist.

Cheers,

Mark

  parent reply	other threads:[~2019-04-14 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10  7:59 Mao Han
2019-04-10  8:00 ` [PATCH V2 1/2] libelf: Sync elf.h from glibc Mao Han
2019-04-14 20:32   ` Mark Wielaard
2019-04-10  8:00 ` [PATCH V2 2/2] Add backend support for C-SKY Mao Han
2019-04-15 11:09   ` Mark Wielaard
2019-04-16  7:14     ` Mao Han
2019-04-14 20:23 ` Mark Wielaard [this message]
2019-04-17  6:45   ` [PATCH V2 0/2] Add C-SKY support Mao Han
2019-06-24 22:26     ` Mark Wielaard
2019-06-26  7:21       ` Mao Han

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=4c84fd5a45f6f9ac5f12c68bbc848bb66e96169c.camel@klomp.org \
    --to=mark@klomp.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=han_mao@c-sky.com \
    --cc=ren_guo@c-sky.com \
    /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).