All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
@ 2020-02-13 12:13 Pankaj Vinadrao Joshi
  2020-02-17 11:56 ` Jan Stancek
       [not found] ` <MAXPR0101MB14685FEB7F52C97C8835B106EE110@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
  0 siblings, 2 replies; 6+ messages in thread
From: Pankaj Vinadrao Joshi @ 2020-02-13 12:13 UTC (permalink / raw)
  To: ltp

Hi,
i am running min_free_kbytes test,6 test cases are failing with error message min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139.
i am attaching the test result
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200213/3afc186c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-02-13 14-11-14.png
Type: image/png
Size: 291776 bytes
Desc: Screenshot from 2020-02-13 14-11-14.png
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200213/3afc186c/attachment-0001.png>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
  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>
       [not found] ` <MAXPR0101MB14685FEB7F52C97C8835B106EE110@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
  1 sibling, 1 reply; 6+ messages in thread
From: Jan Stancek @ 2020-02-17 11:56 UTC (permalink / raw)
  To: ltp


----- Original Message -----
> Hi,
> i am running min_free_kbytes test,6 test cases are failing with error message
> min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139.
> i am attaching the test result

Hi,

for future, can you just paste the test output to email, instead of sending screenshots of text?

You're not providing much information, such as LTP version, kernel, architecture or distro.
Or if it worked previously and started failing only now. So it's difficult for anyone to
try reproduce your steps.

Output is unusual, status codes suggest child running into SIGSEGV and SIGILL at some
point after eatup_mem(). Did you try to run this with gdb, strace or look at core files?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
       [not found]   ` <MAXPR0101MB1468A92491FB531F33F10A36EE160@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
@ 2020-02-17 12:24     ` Jan Stancek
       [not found]       ` <MAXPR0101MB1468DB8754551B9C84AF3C0CEE160@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Stancek @ 2020-02-17 12:24 UTC (permalink / raw)
  To: ltp

----- Original Message -----

> Hi,
> sure! i will remeber
> Jan i am using linux 5.4.3 with custom Yocto distribution on RISC v
> architecture.Actually i tried with strace but i didnt got clue for it..

What LTP version is it? This one has different line numbers. 

> This is result with strace

Trace child processes as well: -f 

> root@exaleapsemi:~/pankaj_ltp_new/ltp/testcases/kernel/mem/tunable# strace
> ./min_free_kbytes
> execve("./min_free_kbytes", ["./min_free_kbytes"], 0x3fffaabc80 /* 15 vars
> */) = 0
> brk(NULL) = 0x2c000
> uname({sysname="Linux", nodename="exaleapsemi", ...}) = 0
> faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
> directory)
> openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=66866, ...}) = 0
> mmap(NULL, 66866, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3fbe84f000
> close(3) = 0
> openat(AT_FDCWD, "/usr/lib/libnuma.so.1", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\2002\0\0\0\0\0\0"...,
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=35664, ...}) = 0
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x3fbe84d000
> mmap(NULL, 54992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
> 0x3fbe83f000
> mprotect(0x3fbe846000, 4096, PROT_NONE) = 0
> mmap(0x3fbe847000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x3fbe847000
> mmap(0x3fbe849000, 14032, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3fbe849000
> close(3) = 0
> openat(AT_FDCWD, "/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\204p\0\0\0\0\0\0"...,
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=89264, ...}) = 0
> mmap(NULL, 107632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
> 0x3fbe824000
> mprotect(0x3fbe838000, 4096, PROT_NONE) = 0
> mmap(0x3fbe839000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x3fbe839000
> mmap(0x3fbe83b000, 13424, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3fbe83b000
> close(3) = 0
> openat(AT_FDCWD, "/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\2005\2\0\0\0\0\0"...,
> 832) = 832
> fstat(3, {st_mode=S_IFREG|0755, st_size=1061392, ...}) = 0
> mmap(NULL, 1072656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
> 0x3fbe71e000
> mmap(0x3fbe81b000, 24576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xfc000) = 0x3fbe81b000
> mmap(0x3fbe821000, 11792, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3fbe821000
> close(3) = 0
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x3fbe71c000
> mprotect(0x3fbe81b000, 12288, PROT_READ) = 0
> mprotect(0x3fbe839000, 4096, PROT_READ) = 0
> mprotect(0x3fbe847000, 4096, PROT_READ) = 0
> mprotect(0x28000, 4096, PROT_READ) = 0
> mprotect(0x3fbe879000, 4096, PROT_READ) = 0
> munmap(0x3fbe84f000, 66866) = 0
> set_tid_address(0x3fbe71c0e0) = 15895
> set_robust_list(0x3fbe71c0f0, 24) = 0
> rt_sigaction(SIGRTMIN, {sa_handler=0x3fbe82ac52, sa_mask=[],
> sa_flags=SA_SIGINFO}, NULL, 8) = 0
> rt_sigaction(SIGRT_1, {sa_handler=0x3fbe82acd2, sa_mask=[],
> sa_flags=SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
> prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024,
> rlim_max=RLIM64_INFINITY}) = 0
> brk(NULL) = 0x2c000
> brk(0x4d000) = 0x4d000
> openat(AT_FDCWD, "/proc/self/status", O_RDONLY) = 3
> fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> read(3, "Name:\tmin_free_kbytes\nUmask:\t002"..., 1024) = 960
> read(3, "", 1024) = 0
> close(3) = 0
> get_mempolicy(0x3fffcd0b6c, 0x2c920, 33, NULL, 0) = -1 ENOSYS (Function not
> implemented)
> openat(AT_FDCWD, "/sys/devices/system/node",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or
> directory)
> sched_getaffinity(0, 512, [0, 1, 2, 3]) = 8
> openat(AT_FDCWD, "/sys/devices/system/cpu",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
> fstat(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> getdents64(3, /* 14 entries */, 32768) = 400
> getdents64(3, /* 0 entries */, 32768) = 0
> close(3) = 0
> openat(AT_FDCWD, "/proc/self/status", O_RDONLY) = 3
> fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> read(3, "Name:\tmin_free_kbytes\nUmask:\t002"..., 1024) = 960
> read(3, "", 1024) = 0
> close(3) = 0
> getpid() = 15895
> geteuid() = 0
> faccessat(AT_FDCWD, "/dev/shm", F_OK) = 0
> getpid() = 15895
> openat(AT_FDCWD, "/dev/shm/ltp_min_free_kbytes_15895", O_RDWR|O_CREAT|O_EXCL,
> 0600) = 3
> fchmodat(AT_FDCWD, "/dev/shm/ltp_min_free_kbytes_15895", 0666) = 0
> ftruncate(3, 4096) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x3fbe85f000
> unlinkat(AT_FDCWD, "/dev/shm/ltp_min_free_kbytes_15895", 0) = 0
> close(3) = 0
> rt_sigaction(SIGALRM, {sa_handler=0x14f90, sa_mask=[ALRM],
> sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
> rt_sigaction(SIGUSR1, {sa_handler=0x14e74, sa_mask=[USR1],
> sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
> ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> write(2, "tst_test.c:1206: \33[1;34mINFO: \33["..., 62tst_test.c:1206: INFO:
> Timeout per run is disabled
> ) = 62
> rt_sigaction(SIGINT, {sa_handler=0x14f54, sa_mask=[INT],
> sa_flags=SA_RESTART}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
> clone(child_stack=NULL,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0x3fbe71c0e0) = 15897
> wait4(15897, 0x3fffcd09c8, 0, NULL) = ? ERESTARTSYS (To be restarted if
> SA_RESTART is set)
> --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=15897, si_uid=0} ---
> setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}) = 0
> rt_sigreturn({mask=[]}mem.c:817: INFO: set overcommit_memory to 2
> mem.c:817: INFO: set min_free_kbytes to 163644
> ) = 15897
> wait4(15897, memfree is 7983108 kB before eatup mem
> memfree is 4128232 kB after eatup mem
> mem.c:817: INFO: set min_free_kbytes to 327288
> memfree is 7982824 kB before eatup mem
> memfree is 4133524 kB after eatup mem
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 7982076 kB before eatup mem
> memfree is 4133776 kB after eatup mem
> mem.c:817: INFO: set overcommit_memory to 0
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 7981320 kB before eatup mem
> min_free_kbytes.c:170: FAIL: child unexpectedly failed: 256
> mem.c:817: INFO: set min_free_kbytes to 327288
> memfree is 8052960 kB before eatup mem
> min_free_kbytes.c:170: FAIL: child unexpectedly failed: 256
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 8052960 kB before eatup mem
> min_free_kbytes.c:170: FAIL: child unexpectedly failed: 256
> mem.c:817: INFO: set overcommit_memory to 1
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 8056456 kB before eatup mem
> min_free_kbytes.c:158: FAIL: child unexpectedly failed: 11
> mem.c:817: INFO: set min_free_kbytes to 327288
> memfree is 8055044 kB before eatup mem
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 8052000 kB before eatup mem
> min_free_kbytes.c:106: PASS: min_free_kbytes test pass
> mem.c:817: INFO: set min_free_kbytes to 163644
> mem.c:817: INFO: set overcommit_memory to 1
> 0x3fffcd09c8, 0, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
> --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=15897, si_uid=0} ---
> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15897, si_uid=0,
> si_status=0, si_utime=0, si_stime=2} ---
> setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}) = 0
> rt_sigreturn({mask=[]}) = 15897
> wait4(15897, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 15897
> setitimer(ITIMER_REAL, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}, {it_interval={tv_sec=0, tv_usec=0},
> it_value={tv_sec=0, tv_usec=0}}) = 0
> rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[INT],
> sa_flags=SA_RESTART}, {sa_handler=0x14f54, sa_mask=[INT],
> sa_flags=SA_RESTART}, 8) = 0
> fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0), ...}) = 0
> write(1, "\n", 1
> ) = 1
> write(1, "Summary:\n", 9Summary:
> ) = 9
> write(1, "passed 1\n", 11passed 1
> ) = 11
> write(1, "failed 4\n", 11failed 4
> ) = 11
> write(1, "skipped 0\n", 11skipped 0
> ) = 11
> write(1, "warnings 0\n", 11warnings 0
> ) = 11
> faccessat(AT_FDCWD, "/dev/shm/ltp_min_free_kbytes_15895", F_OK) = -1 ENOENT
> (No such file or directory)
> msync(0x3fbe85f000, 4096, MS_SYNC) = 0
> munmap(0x3fbe85f000, 4096) = 0
> exit_group(1) = ?
> +++ exited with 1 +++

> From: Jan Stancek <jstancek@redhat.com>
> Sent: Monday, February 17, 2020 5:26 PM
> To: Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com>
> Cc: ltp@lists.linux.it <ltp@lists.linux.it>
> Subject: Re: [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed:
> 139

> ----- Original Message -----
> > Hi,
> > i am running min_free_kbytes test,6 test cases are failing with error
> > message
> > min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139.
> > i am attaching the test result

> Hi,

> for future, can you just paste the test output to email, instead of sending
> screenshots of text?

> You're not providing much information, such as LTP version, kernel,
> architecture or distro.
> Or if it worked previously and started failing only now. So it's difficult
> for anyone to
> try reproduce your steps.

> Output is unusual, status codes suggest child running into SIGSEGV and SIGILL
> at some
> point after eatup_mem(). Did you try to run this with gdb, strace or look at
> core files?

> [EXT]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200217/9908c894/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
       [not found]       ` <MAXPR0101MB1468DB8754551B9C84AF3C0CEE160@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
@ 2020-02-17 14:28         ` Jan Stancek
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Stancek @ 2020-02-17 14:28 UTC (permalink / raw)
  To: ltp

[adding back LTP list to CC]

----- Original Message -----
> //***************************   This is the result of strace -f
> 
> 
> pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18a08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18908000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18808000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18708000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18608000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18508000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18408000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18308000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18208000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18108000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e18008000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17f08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17e08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17d08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17c08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17b08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17a08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17908000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17808000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17708000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17608000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17508000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17408000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17308000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17208000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17108000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e17008000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e16f08000
> [pid 48522] mmap(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3e16e08000
> Segmentation fault

Ok, so we are in eatup_mem loop. mmap() suceeded, and then we seem to crash
on write to allocated area via memset(). My guess would be kernel bug.

To double-check, can you capture a core file and see where exactly child hits SIGSEGV?

> root@exaleapsemi:~/pankaj_ltp_new/ltp/testcases/kernel/mem/tunable#
> min_free_kbytes.c:173: FAIL: child unexpectedly failed: 11
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 8048240 kB before eatup mem
> min_free_kbytes.c:173: FAIL: child unexpectedly failed: 11
> mem.c:817: INFO: set overcommit_memory to 1
> mem.c:817: INFO: set min_free_kbytes to 327288
> memfree is 8047972 kB before eatup mem
> min_free_kbytes.c:155: FAIL: child unexpectedly failed: 11
> mem.c:817: INFO: set min_free_kbytes to 654576
> memfree is 8047800 kB before eatup mem
> min_free_kbytes.c:155: FAIL: child unexpectedly failed: 11
> mem.c:817: INFO: set min_free_kbytes to 163644
> memfree is 8039996 kB before eatup mem
> min_free_kbytes.c:155: FAIL: child unexpectedly failed: 11
> min_free_kbytes.c:103: PASS: min_free_kbytes test pass
> mem.c:817: INFO: set min_free_kbytes to 327288
> mem.c:817: INFO: set overcommit_memory to 1
> 
> Summary:
> passed   1
> failed   7
> skipped  0
> warnings 0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
       [not found]             ` <MAXPR0101MB14681EB0C7F8BBC970B19ED9EEED0@MAXPR0101MB1468.INDPRD01.PROD.OUTLOOK.COM>
@ 2020-02-25  8:31               ` Jan Stancek
  2020-02-25 10:03                 ` Pankaj Vinadrao Joshi
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Stancek @ 2020-02-25  8:31 UTC (permalink / raw)
  To: ltp

[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
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139
  2020-02-25  8:31               ` Jan Stancek
@ 2020-02-25 10:03                 ` Pankaj Vinadrao Joshi
  0 siblings, 0 replies; 6+ messages in thread
From: Pankaj Vinadrao Joshi @ 2020-02-25 10:03 UTC (permalink / raw)
  To: ltp

LTP is built natively,atleast for now i seeing crash for this particular test only. I am also not able to get how and that is failing there?


________________________________
From: Jan Stancek <jstancek@redhat.com>
Sent: Tuesday, February 25, 2020 2:01 PM
To: Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com>
Cc: LTP Mailing List <ltp@lists.linux.it>
Subject: Re: [LTP] min_free_kbytes.c:134: FAIL: child unexpectedly failed: 139

[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
>

[EXT]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200225/6ab897c4/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-25 10:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2020-02-25 10:03                 ` Pankaj Vinadrao Joshi

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.