Skip to content

Conversation

@ngie-eign
Copy link
Member

  • Use setpgid instead of setpgrp as setpgrp is deprecated.
  • Add *BSD support.
  • Mute some -Wuninitialized warnings.
  • Mute some clang warnings.
  • Add a simple script for printing out the overall run summary.

Sponsored-by: EMC / Isilon Storage Division

Garrett Cooper added 3 commits July 2, 2014 19:55
- Use setpgid instead of setpgrp
- Add *BSD support
- Mute some -Wuninitialized warnings
- Mute some clang warnings
- Add a simple script for printing out the overall run summary

Sponsored-by: EMC / Isilon Storage Division
metan-ucw added a commit that referenced this pull request Jul 3, 2014
@metan-ucw metan-ucw merged commit 649ebe9 into linux-test-project:master Jul 3, 2014
@ngie-eign
Copy link
Member Author

Thanks :)

jstancek added a commit that referenced this pull request May 22, 2017
Only newlib testcases support SAFE macros in cleanup().
When SAFE_UNLINK fails, it creates infinite loop between
tst_brk_ and cleanup:

 #0  tst_res__ at tst_res.c:153
 #1  0x0000000000407ba8 in tst_brk__ at tst_res.c:480
 #2  0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #3  0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #4  0x0000000000404abd in cleanup () at pipeio.c:497
 #5  0x0000000000407bc7 in tst_brk__ at tst_res.c:498
 #6  0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #7  0x000000000040c1d6 in def_handler at tst_sig.c:231
 #8  <signal handler called>
 #9  0x00007f29c2cbd1f7 in __GI_raise at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #10 0x00007f29c2cbe8e8 in __GI_abort () at abort.c:90
 #11 0x00000000004081af in tst_brkm_ at tst_res.c:581
 #12 0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #13 0x0000000000404abd in cleanup () at pipeio.c:497
 #14 0x0000000000407bc7 in tst_brk__ at tst_res.c:498
 #15 0x00000000004081fe in tst_brkm_ at tst_res.c:577
 #16 0x000000000040c1d6 in def_handler at tst_sig.c:231
 #17 <signal handler called>
 #18 0x00007f29c2cbd1f7 in __GI_raise at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 #19 0x00007f29c2cbe8e8 in __GI_abort () at abort.c:90
 #20 0x00000000004081af in tst_brkm_ at tst_res.c:581
 #21 0x000000000040a7c9 in safe_unlink at safe_macros.c:358
 #22 0x0000000000404abd in cleanup () at pipeio.c:497
 ...

Signed-off-by: Jan Stancek <jstancek@redhat.com>
pevik pushed a commit to pevik/ltp that referenced this pull request Jan 31, 2022
Test started failing with recent glibc (glibc-2.34.9000-38.fc36),
which detects that buffer in pread is potentially too small:
  tst_test.c:1431: TINFO: Timeout per run is 0h 05m 00s
  *** buffer overflow detected ***: terminated
  tst_test.c:1484: TBROK: Test killed by SIGIOT/SIGABRT!

(gdb) bt
  #0  __pthread_kill_implementation at pthread_kill.c:44
  linux-test-project#1  0x00007ffff7e46f73 in __pthread_kill_internal at pthread_kill.c:78
  linux-test-project#2  0x00007ffff7df6a36 in __GI_raise at ../sysdeps/posix/raise.c:26
  linux-test-project#3  0x00007ffff7de082f in __GI_abort () at abort.c:79
  linux-test-project#4  0x00007ffff7e3b01e in __libc_message at ../sysdeps/posix/libc_fatal.c:155
  linux-test-project#5  0x00007ffff7ed945a in __GI___fortify_fail at fortify_fail.c:26
  linux-test-project#6  0x00007ffff7ed7dc6 in __GI___chk_fail () at chk_fail.c:28
  linux-test-project#7  0x00007ffff7ed8214 in __pread_chk at pread_chk.c:26
  linux-test-project#8  0x0000000000404d1a in pread at /usr/include/bits/unistd.h:74
  linux-test-project#9  verify_pread (n=<optimized out>) at pread02.c:44
  linux-test-project#10 0x000000000040dc19 in run_tests () at tst_test.c:1246
  linux-test-project#11 testrun () at tst_test.c:1331
  linux-test-project#12 fork_testrun () at tst_test.c:1462
  linux-test-project#13 0x000000000040e9a1 in tst_run_tcases
  linux-test-project#14 0x0000000000404bde in main

Extend it to number of bytes we are trying to read from fd.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Petr Vorel <pvorel@suse.cz>
jstancek added a commit that referenced this pull request Feb 1, 2022
Test started failing with recent glibc (glibc-2.34.9000-38.fc36),
which detects that buffer in pread is potentially too small:
  tst_test.c:1431: TINFO: Timeout per run is 0h 05m 00s
  *** buffer overflow detected ***: terminated
  tst_test.c:1484: TBROK: Test killed by SIGIOT/SIGABRT!

(gdb) bt
  #0  __pthread_kill_implementation at pthread_kill.c:44
  #1  0x00007ffff7e46f73 in __pthread_kill_internal at pthread_kill.c:78
  #2  0x00007ffff7df6a36 in __GI_raise at ../sysdeps/posix/raise.c:26
  #3  0x00007ffff7de082f in __GI_abort () at abort.c:79
  #4  0x00007ffff7e3b01e in __libc_message at ../sysdeps/posix/libc_fatal.c:155
  #5  0x00007ffff7ed945a in __GI___fortify_fail at fortify_fail.c:26
  #6  0x00007ffff7ed7dc6 in __GI___chk_fail () at chk_fail.c:28
  #7  0x00007ffff7ed8214 in __pread_chk at pread_chk.c:26
  #8  0x0000000000404d1a in pread at /usr/include/bits/unistd.h:74
  #9  verify_pread (n=<optimized out>) at pread02.c:44
  #10 0x000000000040dc19 in run_tests () at tst_test.c:1246
  #11 testrun () at tst_test.c:1331
  #12 fork_testrun () at tst_test.c:1462
  #13 0x000000000040e9a1 in tst_run_tcases
  #14 0x0000000000404bde in main

Extend it to number of bytes we are trying to read from fd.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants