From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
Date: Tue, 25 Feb 2020 03:31:33 -0500 (EST) [thread overview]
Message-ID: <768964483.8786340.1582619493789.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <MAXPR0101MB14681EB0C7F8BBC970B19ED9EEED0@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
[adding back LTP list] Please keep the list CC-ed, you might get more responses
from other members.
----- Original Message -----
> (gdb) bt
> #0 0x0000003fe1713b92 in __vfscanf_internal (s=0x23000, format=<optimized
> out>, argptr=<optimized out>, mode_flags=<optimized out>) at
> vfscanf-internal.c:345
> Backtrace stopped: Cannot access memory at address 0xfffffffffffffff9
Which is unfortunate.
Only place I see child reaching vfscanf is via check_monitor -> get_sys_tune,
but per test output it's not check_monitor child, but eatup_mem one.
I don't see why it would crash here, and why it happens on RISCV only.
I can only recommend to try simplify the testcase to see what triggers it.
Is this the only LTP test you see crashing?
Is it built natively on RISCV or is it cross-compiled in other environment?
> (gdb) where
> #0 0x0000003fe1713b92 in __vfscanf_internal (s=0x23000, format=<optimized
> out>, argptr=<optimized out>, mode_flags=<optimized out>) at
> vfscanf-internal.c:345
> Backtrace stopped: Cannot access memory at address 0xfffffffffffffff9
>
> (gdb) info registers
> ra 0x16438 0x16438 <safe_waitpid+40>
> sp 0x3fffd94850 0x3fffd94850
> gp 0x29f10 0x29f10 <ipc_path+544>
> tp 0x3fe16cd720 0x3fe16cd720
> t0 0xffffffffffffffff -1
> t1 0x1366c 79468
> t2 0x1000 4096
> fp 0x1 0x1
> s1 0x180 384
> a0 0x180 384
> a1 0x3fffd948c4 274875369668
> a2 0xa 10
> a3 0x0 0
> a4 0x3fffd948c4 274875369668
> a5 0xffffffffffffffff -1
> a6 0x1 1
> a7 0x104 260
> s2 0x3fffd948c4 274875369668
> s3 0xa 10
> s4 0x79 121
> s5 0x3fe17e6008 274366095368
> s6 0x21ad0 137936
> s7 0x22000 139264
> s8 0x22000 139264
> s9 0x22000 139264
> s10 0x23000 143360
> s11 0x1fed70 2092400
> t3 0x3fe17e5790 274366093200
> t4 0x3fe17a2070 274365816944
> t5 0x3fe17a2970 274365819248
> t6 0x5 5
> pc 0x3fe1713b92 0x3fe1713b92 <__vfscanf_internal+1126>
> (gdb)
>
> ________________________________
> Sent: Tuesday, February 25, 2020 1:03 PM
> Subject: Re: [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed:
> 139
>
> ----- Original Message -----
>
> > Hi Jan,
> > i have tried to collect the core through GDB this is the result i
> > found??what
> > i should conclude from this??
>
> Can you paste the output of backtrace? ('bt' command in gdb)
>
>
> > root@exaleapsemi:~/pankaj_ltpn/ltp/testcases/kernel/mem/tunable# gdb
> > ./min_free_kbytes core.378
> > GNU gdb (GDB) 8.3.1
> > Copyright (C) 2019 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 "riscv64-oe-linux".
> > Type "show configuration" for configuration details.
> > For bug reporting instructions, please see:
> > <http://www.gnu.org/software/gdb/bugs/>.
> > Find the GDB manual and other documentation resources online at:
> > <http://www.gnu.org/software/gdb/documentation/>.
>
> > For help, type "help".
> > Type "apropos word" to search for commands related to "word"...??
> > Reading symbols from ./min_free_kbytes...
> > [New LWP 378]
> > [Thread debugging using libthread_db enabled]
> > Using host libthread_db library "/lib/libthread_db.so.1".
> > Core was generated by `./min_free_kbytes'.
> > Program terminated with signal SIGSEGV, Segmentation fault.
> > #0 0x0000003fe1713b92 in __vfscanf_internal (s=0x23000, format=<optimized
> > out>, argptr=<optimized out>, mode_flags=<optimized out>) at
> > vfscanf-internal.c:345
>
next prev parent reply other threads:[~2020-02-25 8:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-13 12:13 [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139 Pankaj Vinadrao Joshi
2020-02-17 11:56 ` Jan Stancek
[not found] ` <MAXPR0101MB1468A92491FB531F33F10A36EE160@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
2020-02-17 12:24 ` Jan Stancek
[not found] ` <MAXPR0101MB1468DB8754551B9C84AF3C0CEE160@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
2020-02-17 14:28 ` Jan Stancek
[not found] ` <MAXPR0101MB14685FEB7F52C97C8835B106EE110@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
[not found] ` <558576867.8097569.1582098912792.JavaMail.zimbra@redhat.com>
[not found] ` <BM1PR0101MB14596D9D318FF13C32724A32EE100@BM1PR0101MB1459.INDPRD01.PROD.OUTLOOK.COM>
[not found] ` <732362668.8105497.1582103304747.JavaMail.zimbra@redhat.com>
[not found] ` <MAXPR0101MB1468CAB5F98BE95E3170E7A3EEED0@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
[not found] ` <641229800.8775991.1582616022386.JavaMail.zimbra@redhat.com>
[not found] ` <MAXPR0101MB14681EB0C7F8BBC970B19ED9EEED0@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
2020-02-25 8:31 ` Jan Stancek [this message]
2020-02-25 10:03 ` Pankaj Vinadrao Joshi
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=768964483.8786340.1582619493789.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox