From: David Daney <ddaney@avtrex.com>
To: Anirban Sinha <ASinha@zeugmasystems.com>
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: BUG: BUS error while returning from read() in /dev/oprofile/buffer
Date: Thu, 03 Jan 2008 17:27:44 -0800 [thread overview]
Message-ID: <477D8B90.9020701@avtrex.com> (raw)
In-Reply-To: <DDFD17CC94A9BD49A82147DDF7D545C56440FC@exchange.ZeugmaSystems.local>
Anirban Sinha wrote:
> Hi:
>
>
>
> I have been trying to hunt down this bug for several days now. What
> mainly happens is that when oprofiled wakes up from read() in
> /dev/oprofile/buffer on receiving a signal USR1 (i.e, when someone does
> opcontrol –start after doing opcontrol—start-daemon), it somehow gets
> SIGBUS within glibc read(). We are using a mips machine with Sybyte SB1
> processor. On intel, this error does not show up. Interestingly, when I
> tried running a small test program that simply reads
> /dev/oprofile/buffer, the error can’t be reproduced!
>
>
>
> Ralf and others, any insights, suggestions or useful comments from
> experience will be really really appreciated. I am spending a lot of
> time trying to fix this bug.
>
Likely you did a cross build of bash and your signal numbers are incorrect.
On the system where you built bash, SIGUSR1 is 10.
On the mips-linux target signal 10 is SIGBUS so when the bash kill
builtin thinks it is sending SIGUSR1 it is really sending SIGBUS.
David Daney
next prev parent reply other threads:[~2008-01-04 1:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-04 1:18 BUG: BUS error while returning from read() in /dev/oprofile/buffer Anirban Sinha
2008-01-04 1:18 ` Anirban Sinha
2008-01-04 1:27 ` David Daney [this message]
2008-01-04 17:56 ` Anirban Sinha
2008-01-04 17:56 ` Anirban Sinha
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=477D8B90.9020701@avtrex.com \
--to=ddaney@avtrex.com \
--cc=ASinha@zeugmasystems.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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