All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Anatoly Pugachev <matorola@gmail.com>
Cc: fio@vger.kernel.org, sparclinux@vger.kernel.org,
	debian-sparc <debian-sparc@lists.debian.org>
Subject: Re: [sparc64] fio bus error
Date: Mon, 22 Aug 2016 13:24:13 -0600	[thread overview]
Message-ID: <4155a143-a703-2eed-776e-9766dcd87d86@kernel.dk> (raw)
In-Reply-To: <CADxRZqzjZFOR8uV9WVEQvd=Qk_WjWoK3L1zWcDuABhzoic5KxA@mail.gmail.com>

On 08/22/2016 01:17 PM, Anatoly Pugachev wrote:
> On Mon, Aug 22, 2016 at 8:32 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 08/20/2016 09:19 AM, Anatoly Pugachev wrote:
>>> Thread 2 "fio" received signal SIGBUS, Bus error.
>>> [Switching to Thread 0xffff80011025b910 (LWP 15753)]
>>> calc_log_samples () at stat.c:2461
>>> 2461                            tmp = add_bw_samples(td, &now);
>>> (gdb) bt
>>> #0  calc_log_samples () at stat.c:2461
>>> #1  0x000000000018e944 in helper_thread_main (data=0xffff800100ac5670)
>>> at helper_thread.c:121
>>> #2  0xffff80010063ba04 in start_thread (arg=0xffff80011025b910) at
>>> pthread_create.c:335
>>> #3  0xffff800100944f58 in __thread_start () at
>>> ../sysdeps/unix/sysv/linux/sparc/sparc64/clone.S:93
>>> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>>> (gdb)
>>
>>
>> Does this help?
>>
>> diff --git a/stat.c b/stat.c
>> index 552d88dde067..74c2686c660c 100644
>> --- a/stat.c
>> +++ b/stat.c
>> @@ -2457,12 +2457,12 @@ int calc_log_samples(void)
>>                         next = min(td->o.iops_avg_time, td->o.bw_avg_time);
>>                         continue;
>>                 }
>> -               if (!per_unit_log(td->bw_log)) {
>> +               if (td->bw_log && !per_unit_log(td->bw_log)) {
>>                         tmp = add_bw_samples(td, &now);
>>                         if (tmp < next)
>>                                 next = tmp;
>>                 }
>> -               if (!per_unit_log(td->iops_log)) {
>> +               if (td->iops_log && !per_unit_log(td->iops_log)) {
>>                         tmp = add_iops_samples(td, &now);
>>                         if (tmp < next)
>>                                 next = tmp;
>>
>
>
> Jens,
>
> yes, this patch fixed sigbus. Thanks.

Great, thanks for reporting. I have committed the fix.

-- 
Jens Axboe


WARNING: multiple messages have this Message-ID (diff)
From: Jens Axboe <axboe@kernel.dk>
To: sparclinux@vger.kernel.org
Subject: Re: [sparc64] fio bus error
Date: Mon, 22 Aug 2016 19:24:13 +0000	[thread overview]
Message-ID: <4155a143-a703-2eed-776e-9766dcd87d86@kernel.dk> (raw)
In-Reply-To: <CADxRZqwnO-UuLgAkDb4bvqVY9hMMSnFFcdkYdPnfwfJukN09yA@mail.gmail.com>

On 08/22/2016 01:17 PM, Anatoly Pugachev wrote:
> On Mon, Aug 22, 2016 at 8:32 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 08/20/2016 09:19 AM, Anatoly Pugachev wrote:
>>> Thread 2 "fio" received signal SIGBUS, Bus error.
>>> [Switching to Thread 0xffff80011025b910 (LWP 15753)]
>>> calc_log_samples () at stat.c:2461
>>> 2461                            tmp = add_bw_samples(td, &now);
>>> (gdb) bt
>>> #0  calc_log_samples () at stat.c:2461
>>> #1  0x000000000018e944 in helper_thread_main (data=0xffff800100ac5670)
>>> at helper_thread.c:121
>>> #2  0xffff80010063ba04 in start_thread (arg=0xffff80011025b910) at
>>> pthread_create.c:335
>>> #3  0xffff800100944f58 in __thread_start () at
>>> ../sysdeps/unix/sysv/linux/sparc/sparc64/clone.S:93
>>> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>>> (gdb)
>>
>>
>> Does this help?
>>
>> diff --git a/stat.c b/stat.c
>> index 552d88dde067..74c2686c660c 100644
>> --- a/stat.c
>> +++ b/stat.c
>> @@ -2457,12 +2457,12 @@ int calc_log_samples(void)
>>                         next = min(td->o.iops_avg_time, td->o.bw_avg_time);
>>                         continue;
>>                 }
>> -               if (!per_unit_log(td->bw_log)) {
>> +               if (td->bw_log && !per_unit_log(td->bw_log)) {
>>                         tmp = add_bw_samples(td, &now);
>>                         if (tmp < next)
>>                                 next = tmp;
>>                 }
>> -               if (!per_unit_log(td->iops_log)) {
>> +               if (td->iops_log && !per_unit_log(td->iops_log)) {
>>                         tmp = add_iops_samples(td, &now);
>>                         if (tmp < next)
>>                                 next = tmp;
>>
>
>
> Jens,
>
> yes, this patch fixed sigbus. Thanks.

Great, thanks for reporting. I have committed the fix.

-- 
Jens Axboe

  reply	other threads:[~2016-08-22 19:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20 15:19 [sparc64] fio bus error Anatoly Pugachev
2016-08-20 15:19 ` Anatoly Pugachev
2016-08-22 17:32 ` Jens Axboe
2016-08-22 17:32   ` Jens Axboe
2016-08-22 19:17   ` Anatoly Pugachev
2016-08-22 19:17     ` Anatoly Pugachev
2016-08-22 19:24     ` Jens Axboe [this message]
2016-08-22 19:24       ` Jens Axboe

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=4155a143-a703-2eed-776e-9766dcd87d86@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=debian-sparc@lists.debian.org \
    --cc=fio@vger.kernel.org \
    --cc=matorola@gmail.com \
    --cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.