From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/signal06: fix test for regression with earlier version of gcc and kernel
Date: Mon, 10 Oct 2016 15:15:29 +0200 [thread overview]
Message-ID: <20161010131529.GA1684@rei> (raw)
In-Reply-To: <57FB3DD2.1070809@cn.fujitsu.com>
Hi!
> Yes, I guess this is the kernel's bug, but sorry I didn't look into
> the real reason of the segfault issue much.
>
> [root@RHEL5U11ga_Intel64 signal]# gdb ./signal06 core.18623
> GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5)
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /root/ltp/testcases/kernel/syscalls/signal/signal06...done.
> [New Thread 18623]
> [New Thread 18625]
> Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
> [Thread debugging using libthread_db enabled]
> Loaded symbols for /lib64/libpthread.so.0
> Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib64/libc.so.6
> Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib64/ld-linux-x86-64.so.2
>
> warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffe3384000
> Core was generated by `./signal06'.
> Program terminated with signal 11, Segmentation fault.
> #0 test (d=123.456) at signal06.c:71
> 71 while (D == d && loop < LOOPS) {
> (gdb) bt
> #0 test (d=123.456) at signal06.c:71
> #1 0x0000000000402bb7 in main (ac=<value optimized out>, av=<value optimized out>) at signal06.c:151
So it segfaults in the test() function, we aren't doing anything wrong
there. So this really looks like a bug itself.
Supposedly this causes the test segfault on a system where the original
bug cannot be reproduced, right?
> >> By current LOOPS(10000), most of the time, the buggy kernel can be
> >> reproduced, but there is still a chance(about 0.5% in my environment)
> >> to miss.
> >
> > Hmm, what about increasing it twice or four times? What is the
> > probability of missing the bug then?
> >
>
> 2 times(20000 loops): 99.9% reproducible
> 4 times(40000 loops): 100% reproducible
>
> Is it acceptable to increase it four times?
That is 2.5 times better :)
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2016-10-10 13:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-05 6:58 [LTP] [PATCH] syscalls/signal06: fix test for regression with earlier version of gcc and kernel Guangwen Feng
2016-08-08 8:44 ` Li Wang
2016-08-16 3:08 ` Guangwen Feng
2016-09-20 9:59 ` Guangwen Feng
2016-10-05 13:43 ` Cyril Hrubis
2016-10-06 10:31 ` Guangwen Feng
2016-10-06 11:15 ` Cyril Hrubis
2016-10-10 7:05 ` Guangwen Feng
2016-10-10 13:15 ` Cyril Hrubis [this message]
2016-10-11 7:17 ` Guangwen Feng
2016-11-16 8:14 ` [LTP] [PATCH v2] " Guangwen Feng
2017-02-09 9:00 ` Guangwen Feng
2017-02-09 16:19 ` Cyril Hrubis
2017-02-13 3:38 ` Guangwen Feng
2017-02-13 9:12 ` Cyril Hrubis
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=20161010131529.GA1684@rei \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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.