* Plain "./fio" segfaults on FreeBSD
@ 2015-02-25 22:50 Bruce Cran
2015-02-26 22:32 ` Jens Axboe
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Cran @ 2015-02-25 22:50 UTC (permalink / raw)
To: fio
The latest code from git (built using clang) causes a segfault after
printing the usage text when "./fio" is run:
[New LWP 100111]
No jobs(s) defined
fio-2.2.5-28-g93eeb
[usage text]
[New Thread 801c06400 (LWP 100111/fio)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 801c06400 (LWP 100111/fio)]
flist_empty (head=0x802000040) at flist.h:119
119 return head->next == head;
Current language: auto; currently minimal
(gdb) p head
$1 = (const struct flist_head *) 0x802000040
Also, could we update -std=gnu99 to -std=c11 and use _Static_assert in
compiler.h? Currently, turning optimizations off in the Makefile causes
linker failures such as "fio/libfio.c:308: undefined reference to
`__compiletime_assert_308'".
--
Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Plain "./fio" segfaults on FreeBSD
2015-02-25 22:50 Plain "./fio" segfaults on FreeBSD Bruce Cran
@ 2015-02-26 22:32 ` Jens Axboe
2015-02-26 22:40 ` Jens Axboe
0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2015-02-26 22:32 UTC (permalink / raw)
To: Bruce Cran, fio
On 02/25/2015 03:50 PM, Bruce Cran wrote:
> The latest code from git (built using clang) causes a segfault after
> printing the usage text when "./fio" is run:
>
> [New LWP 100111]
> No jobs(s) defined
>
> fio-2.2.5-28-g93eeb
> [usage text]
> [New Thread 801c06400 (LWP 100111/fio)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 801c06400 (LWP 100111/fio)]
> flist_empty (head=0x802000040) at flist.h:119
> 119 return head->next == head;
> Current language: auto; currently minimal
> (gdb) p head
> $1 = (const struct flist_head *) 0x802000040
I can reproduce this, very strange... I'll debug it.
> Also, could we update -std=gnu99 to -std=c11 and use _Static_assert in
> compiler.h? Currently, turning optimizations off in the Makefile causes
> linker failures such as "fio/libfio.c:308: undefined reference to
> `__compiletime_assert_308'".
I think it'd be more bullet proof (considering other platforms) to just
not do the compile time asserts at all if optimizations aren't enabled.
I'd be happy to take a patch for that...
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Plain "./fio" segfaults on FreeBSD
2015-02-26 22:32 ` Jens Axboe
@ 2015-02-26 22:40 ` Jens Axboe
0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2015-02-26 22:40 UTC (permalink / raw)
To: Bruce Cran, fio
On 02/26/2015 03:32 PM, Jens Axboe wrote:
> On 02/25/2015 03:50 PM, Bruce Cran wrote:
>> The latest code from git (built using clang) causes a segfault after
>> printing the usage text when "./fio" is run:
>>
>> [New LWP 100111]
>> No jobs(s) defined
>>
>> fio-2.2.5-28-g93eeb
>> [usage text]
>> [New Thread 801c06400 (LWP 100111/fio)]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 801c06400 (LWP 100111/fio)]
>> flist_empty (head=0x802000040) at flist.h:119
>> 119 return head->next == head;
>> Current language: auto; currently minimal
>> (gdb) p head
>> $1 = (const struct flist_head *) 0x802000040
>
> I can reproduce this, very strange... I'll debug it.
This should fix it:
http://git.kernel.dk/?p=fio.git;a=commit;h=3d0e3417997d9caa27cf97462e15ba437d285d29
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-26 22:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 22:50 Plain "./fio" segfaults on FreeBSD Bruce Cran
2015-02-26 22:32 ` Jens Axboe
2015-02-26 22:40 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox