public inbox for trinity@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Ildar Muslukhov <ildarm@google.com>
Cc: trinity@vger.kernel.org
Subject: Re: [PATCH] Fix syscall32 to supply 6th arg to syscal
Date: Wed, 2 Oct 2013 11:12:44 -0400	[thread overview]
Message-ID: <20131002151244.GA10872@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1309191420270.12168@ildarm-linux.kir.corp.google.com>

On Thu, Sep 19, 2013 at 02:24:24PM -0700, Ildar Muslukhov wrote:
 > 
 > This patch fixes missing 6th param for 32bit syscalls in i386 and x86_64 
 > archs.
 > 
 > Note: I have to remove static from syscall32, because gcc messes up with 
 > inline asm becuase of that.

Something isn't quite right with this.
I was looking at a log file and noticed that in a lot of cases, we end up
doing a 32bit syscall, and then the child respawns.  I suspected it
was segfaulting, and running with -D confirms it.

A whole bunch of core dumps appears, looking like this..

Core was generated by `../trinity -q -D'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000403aa5 in syscall32 (a6=<optimized out>, a5=5, a4=9709, a3=29, a2=4, a1=<optimized out>, call=279, num_args=5) at syscall.c:76
76			__syscall_return(long,__res);

This is running on x86-64, I haven't tested actually running on a 32-bit machine,
but I suspect it's a problem there too.

	Dave

  parent reply	other threads:[~2013-10-02 15:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 21:24 [PATCH] Fix syscall32 to supply 6th arg to syscal Ildar Muslukhov
2013-09-19 21:35 ` Dave Jones
2013-10-02 15:12 ` Dave Jones [this message]
2013-10-02 16:14   ` Ildar Muslukhov
2013-10-02 16:43     ` Dave Jones
2013-10-02 18:12       ` Ildar Muslukhov
2013-10-02 18:15         ` Dave Jones
2013-10-02 20:44           ` Ildar Muslukhov
2013-10-02 20:48             ` Dave Jones
2013-10-02 20:53               ` Ildar Muslukhov
2013-10-02 20:57                 ` Dave Jones
2013-10-02 21:03                   ` Ildar Muslukhov

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=20131002151244.GA10872@redhat.com \
    --to=davej@redhat.com \
    --cc=ildarm@google.com \
    --cc=trinity@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