From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Tom Tromey <tromey@redhat.com>
Subject: Re: Running testsuite with /proc/sys/kernel/core_uses_pid set, avoiding leaving core dump files behind
Date: Thu, 08 Sep 2011 19:54:00 -0000 [thread overview]
Message-ID: <20110908191242.GA32216@host1.jankratochvil.net> (raw)
In-Reply-To: <201109071718.38581.pedro@codesourcery.com>
On Wed, 07 Sep 2011 18:18:38 +0200, Pedro Alves wrote:
> I now only end up with a single unexpected core dump after a
> testrun, generated by the typeddwarf binary of typeddwarf.exp
> (a SIGSEGV). I'm not sure what's going on here. Looking at
> the .c file, there doesn't seem to be anything that should crash.
It is linked from .exp with -nostdlib, therefore there is no _exit syscall but
ret, jumping into a garbage.
> What I find strange is that the typeddwarf-amd64.S
> file claims to be generated by
>
> "gcc -S -g -O2 typeddwarf.c -o typeddwarf-amd64.S"
>
> but typeddwarf-amd64.S doesn't contain a main label, it
> has a _start label instead, so it looks like it got hand
> massaged a bit.
I agree.
> Indeed, if I compile typeddwarf.c
> directly, I get a binary that does not crash.
As you did not use -nostdlib:
if { [prepare_for_testing "${test}.exp" "${test}" ${sfile} {nodebug additional_flags=-nostdlib}] } {
The reason for -nostdlib is:
Re: Regression: Re: RFC: implement typed DWARF stack
http://sourceware.org/ml/gdb-patches/2011-05/msg00325.html
to be able to run it with -m32 even on system without 32-bit devel libraries
installed.
Still I do not get any core file from this testcase, either with linux-nat or
with gdbserver, in both cases the program gets properly killed before it
crashes.
Thanks,
Jan
prev parent reply other threads:[~2011-09-08 19:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 16:28 Pedro Alves
2011-09-08 14:15 ` Jan Kratochvil
2011-09-08 14:34 ` Pedro Alves
2011-09-08 14:56 ` Jan Kratochvil
2011-09-08 15:25 ` Pedro Alves
2011-09-08 19:54 ` Jan Kratochvil [this message]
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=20110908191242.GA32216@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=tromey@redhat.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