canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #07998
[Bug 2129843] [NEW] madvise in ubuntu_stress_smoke_test fails because of concurrent access to MADV_GUARD_INSTALL madvised memory
Public bug reported:
madvise test introduced MADV_GUARD_INSTALL support from kernel 6.13, but
the stress_random_advise's change to MADV normal to avoid SIGSEGV is
unprotected. Adding a mlock solves the issue. As example
diff --git a/stress-madvise.c b/stress-madvise.c
index 6bbefda..aa7a778 100644
--- a/stress-madvise.c
+++ b/stress-madvise.c
@@ -258,6 +258,8 @@ static int stress_random_advise(
#endif
#endif
+ stress_random_small_sleep();
+
#if defined(MADV_HWPOISON)
if (advise == MADV_HWPOISON) {
if (hwpoison) {
@@ -367,6 +369,9 @@ static void *stress_madvise_pages(void *arg)
void *ptr = (void *)(((uint8_t *)buf) + n);
const int advise = stress_random_advise(args, ptr, page_size, ctxt->hwpoison);
+ if (advise == MADV_GUARD_INSTALL)
+ shim_mlock(ptr, page_size);
+
(void)shim_madvise(ptr, page_size, advise);
#if defined(MADV_FREE)
if (advise == MADV_FREE)
@@ -376,6 +381,7 @@ static void *stress_madvise_pages(void *arg)
/* avoid segfaults by setting back to normal */
if (advise == MADV_GUARD_INSTALL)
(void)shim_madvise(ptr, page_size, MADV_NORMAL);
+ shim_munlock(ptr, page_size);
#endif
(void)shim_msync(ptr, page_size, MS_ASYNC);
}
Full log:
7511 18:37:59 INFO | START ubuntu_stress_smoke_test.madvise ubuntu_stress_smoke_test.madvise timeout=2100 timestamp=1760985479 localtime=Oct 20 18:37:59
7512 18:37:59 DEBUG| Persistent state client._record_indent now set to 2
7513 18:37:59 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_stress_smoke_test.madvise', 'ubuntu_stress_smoke_test.madvise')
7514 18:37:59 DEBUG| Waiting for pid 181056 for 2100 seconds
7515 18:37:59 WARNI| System python is too old, crash handling disabled
7516 18:37:59 DEBUG| Running '/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_single_smoke_test.sh madvise'
7517 18:37:59 DEBUG| [stdout] Free memory: 30605 MB
7518 18:37:59 DEBUG| [stdout] Memory used: 27544 MB
7519 18:37:59 DEBUG| [stdout] Using cgroup version 2
7520 18:37:59 DEBUG| [stdout]
7521 18:37:59 DEBUG| [stdout] Machine Configuration
7522 18:37:59 DEBUG| [stdout] Physical Pages: 8214419
7523 18:37:59 DEBUG| [stdout] Pages available: 7834864
7524 18:37:59 DEBUG| [stdout] Page Size: 4096
7525 18:37:59 DEBUG| [stdout] Zswap enabled: Y
7526 18:37:59 DEBUG| [stdout]
7527 18:37:59 DEBUG| [stdout] Free memory:
7528 18:37:59 DEBUG| [stdout] total used free shared buff/cache available
7529 18:37:59 DEBUG| [stdout] Mem: 32857676 1180964 31339156 744 665284 31676712
7530 18:37:59 DEBUG| [stdout] Swap: 9437176 0 9437176
7531 18:37:59 DEBUG| [stdout]
7532 18:37:59 DEBUG| [stdout] Number of CPUs: 380
7533 18:37:59 DEBUG| [stdout] Number of CPUs Online: 8
7534 18:37:59 DEBUG| [stdout]
7535 18:37:59 DEBUG| [stdout] Maximum bogo ops: 3000
7536 18:37:59 DEBUG| [stdout]
7537 18:37:59 DEBUG| [stdout] madvise STARTING
7538 18:38:00 DEBUG| [stdout] madvise RETURNED 2
7539 18:38:00 DEBUG| [stdout] madvise FAILED
7540 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7541 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7542 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7543 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7544 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7545 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] 8 processors online, 380 processors configured
7546 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] setting to a 5 secs run per stressor
7547 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7548 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7549 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7550 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] dispatching hogs: 4 madvise
7551 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] starting stressors
7552 18:38:00 DEBUG| [stdout] stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7553 18:38:00 DEBUG| [stdout] stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7554 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] 4 stressors started
7555 18:38:00 DEBUG| [stdout] stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7556 18:38:00 DEBUG| [stdout] stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7557 18:38:00 DEBUG| [stdout] stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7558 18:38:00 DEBUG| [stdout] stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7559 18:38:00 DEBUG| [stdout] stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7560 18:38:00 DEBUG| [stdout] stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7561 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7562 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7563 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7564 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7565 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7566 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7567 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181082] terminated (success)
7568 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181083] terminated (success)
7569 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7570 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] skipped: 0
7571 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] passed: 2: madvise (2)
7572 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] failed: 2: madvise (2)
7573 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] metrics untrustworthy: 0
7574 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7575 18:38:00 DEBUG| [stdout]
7576 18:38:00 DEBUG| [stdout]
7577 18:38:00 DEBUG| [stdout]
7578 18:38:00 DEBUG| [stdout] Summary:
7579 18:38:00 DEBUG| [stdout] Stressors run: 1
7580 18:38:00 DEBUG| [stdout] Skipped: 0,
7581 18:38:00 DEBUG| [stdout] Failed: 1, madvise
7582 18:38:00 DEBUG| [stdout] Oopsed: 0,
7583 18:38:00 DEBUG| [stdout] Oomed: 0,
7584 18:38:00 DEBUG| [stdout] Passed: 0,
7585 18:38:00 DEBUG| [stdout] Badret: 0,
7586 18:38:00 DEBUG| [stdout]
7587 18:38:00 DEBUG| [stdout] Tests took 1 seconds to run
7588 18:38:00 ERROR| Exception escaping from test:
7589 Traceback (most recent call last):
7590 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7591 _call_test_function(self.execute, *p_args, **p_dargs)
7592 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7593 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7594 return func(*args, **dargs)
7595 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7596 self._call_run_once(constraints, profile_only,
7597 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7598 postprocess_profiled_run, args, dargs)
7599 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7600 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7601 self.run_once(*args, **dargs)
7602 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7603 File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7604 self.results = utils.system_output(cmd, retain_output=True)
7605 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7606 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7607 out = run(command, timeout=timeout, ignore_status=ignore_status,
7608 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7609 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7610 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7611 verbose=verbose, args=args).stdout
7612 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7613 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7614 raise error.CmdError(command, bg_job.result,
7615 "Command returned non-zero exit status")
7616 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7617 * Command:
7618 /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7619 _single_smoke_test.sh madvise
7620 Exit status: 1
7621 Duration: 1.2382481098175049
7622
7623 stdout:
7624 Free memory: 30605 MB
7625 Memory used: 27544 MB
7626 Using cgroup version 2
7627
7628 Machine Configuration
7629 Physical Pages: 8214419
7630 Pages available: 7834864
7631 Page Size: 4096
7632 Zswap enabled: Y
7633
7634 Free memory:
7635 total used free shared buff/cache available
7636 Mem: 32857676 1180964 31339156 744 665284 31676712
7637 Swap: 9437176 0 9437176
7638
7639 Number of CPUs: 380
7640 Number of CPUs Online: 8
7641
7642 Maximum bogo ops: 3000
7643
7644 madvise STARTING
7645 madvise RETURNED 2
7646 madvise FAILED
7647 stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7648 stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7649 stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7650 stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7651 stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7652 stress-ng: debug: [181079] 8 processors online, 380 processors configured
7653 stress-ng: info: [181079] setting to a 5 secs run per stressor
7654 stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7655 stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7656 stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7657 stress-ng: info: [181079] dispatching hogs: 4 madvise
7658 stress-ng: debug: [181079] starting stressors
7659 stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7660 stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7661 stress-ng: debug: [181079] 4 stressors started
7662 stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7663 stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7664 stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7665 stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7666 stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7667 stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7668 stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7669 stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7670 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7671 stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7672 stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7673 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7674 stress-ng: debug: [181079] madvise: [181082] terminated (success)
7675 stress-ng: debug: [181079] madvise: [181083] terminated (success)
7676 stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7677 stress-ng: info: [181079] skipped: 0
7678 stress-ng: info: [181079] passed: 2: madvise (2)
7679 stress-ng: info: [181079] failed: 2: madvise (2)
7680 stress-ng: info: [181079] metrics untrustworthy: 0
7681 stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7682
7683
7684
7685 Summary:
7686 Stressors run: 1
7687 Skipped: 0,
7688 Failed: 1, madvise
7689 Oopsed: 0,
7690 Oomed: 0,
7691 Passed: 0,
7692 Badret: 0,
7693
7694 Tests took 1 seconds to run
7695 18:38:00 ERROR| child process failed
7696 18:38:00 DEBUG| Traceback (most recent call last):
7697 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7698 18:38:00 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
7699 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7700 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7701 18:38:00 DEBUG| return func(*args, **dargs)
7702 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7703 18:38:00 DEBUG| self._call_run_once(constraints, profile_only,
7704 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7705 18:38:00 DEBUG| postprocess_profiled_run, args, dargs)
7706 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7707 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7708 18:38:00 DEBUG| self.run_once(*args, **dargs)
7709 18:38:00 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7710 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7711 18:38:00 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
7712 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7713 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7714 18:38:00 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
7715 18:38:00 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7716 18:38:00 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7717 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7718 18:38:00 DEBUG| verbose=verbose, args=args).stdout
7719 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7720 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7721 18:38:00 DEBUG| raise error.CmdError(command, bg_job.result,
7722 18:38:00 DEBUG| "Command returned non-zero exit status")
7723 18:38:00 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7724 18:38:00 DEBUG| * Command:
7725 18:38:00 DEBUG| /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7726 18:38:00 DEBUG| _single_smoke_test.sh madvise
7727 18:38:00 DEBUG| Exit status: 1
7728 18:38:00 DEBUG| Duration: 1.2382481098175049
7729 18:38:00 DEBUG|
7730 18:38:00 DEBUG| stdout:
7731 18:38:00 DEBUG| Free memory: 30605 MB
7732 18:38:00 DEBUG| Memory used: 27544 MB
7733 18:38:00 DEBUG| Using cgroup version 2
7734 18:38:00 DEBUG|
7735 18:38:00 DEBUG| Machine Configuration
7736 18:38:00 DEBUG| Physical Pages: 8214419
7737 18:38:00 DEBUG| Pages available: 7834864
7738 18:38:00 DEBUG| Page Size: 4096
7739 18:38:00 DEBUG| Zswap enabled: Y
7740 18:38:00 DEBUG|
7741 18:38:00 DEBUG| Free memory:
7742 18:38:00 DEBUG| total used free shared buff/cache available
7743 18:38:00 DEBUG| Mem: 32857676 1180964 31339156 744 665284 31676712
7744 18:38:00 DEBUG| Swap: 9437176 0 9437176
7745 18:38:00 DEBUG|
7746 18:38:00 DEBUG| Number of CPUs: 380
7747 18:38:00 DEBUG| Number of CPUs Online: 8
7748 18:38:00 DEBUG|
7749 18:38:00 DEBUG| Maximum bogo ops: 3000
7750 18:38:00 DEBUG|
7751 18:38:00 DEBUG| madvise STARTING
7752 18:38:00 DEBUG| madvise RETURNED 2
7753 18:38:00 DEBUG| madvise FAILED
7754 18:38:00 DEBUG| stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7755 18:38:00 DEBUG| stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7756 18:38:00 DEBUG| stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7757 18:38:00 DEBUG| stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7758 18:38:00 DEBUG| stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7759 18:38:00 DEBUG| stress-ng: debug: [181079] 8 processors online, 380 processors configured
7760 18:38:00 DEBUG| stress-ng: info: [181079] setting to a 5 secs run per stressor
7761 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7762 18:38:00 DEBUG| stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7763 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7764 18:38:00 DEBUG| stress-ng: info: [181079] dispatching hogs: 4 madvise
7765 18:38:00 DEBUG| stress-ng: debug: [181079] starting stressors
7766 18:38:00 DEBUG| stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7767 18:38:00 DEBUG| stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7768 18:38:00 DEBUG| stress-ng: debug: [181079] 4 stressors started
7769 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7770 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7771 18:38:00 DEBUG| stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7772 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7773 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7774 18:38:00 DEBUG| stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7775 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7776 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7777 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7778 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7779 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7780 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7781 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181082] terminated (success)
7782 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181083] terminated (success)
7783 18:38:00 DEBUG| stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7784 18:38:00 DEBUG| stress-ng: info: [181079] skipped: 0
7785 18:38:00 DEBUG| stress-ng: info: [181079] passed: 2: madvise (2)
7786 18:38:00 DEBUG| stress-ng: info: [181079] failed: 2: madvise (2)
7787 18:38:00 DEBUG| stress-ng: info: [181079] metrics untrustworthy: 0
7788 18:38:00 DEBUG| stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7789 18:38:00 DEBUG|
7790 18:38:00 DEBUG|
7791 18:38:00 DEBUG|
7792 18:38:00 DEBUG| Summary:
7793 18:38:00 DEBUG| Stressors run: 1
7794 18:38:00 DEBUG| Skipped: 0,
7795 18:38:00 DEBUG| Failed: 1, madvise
7796 18:38:00 DEBUG| Oopsed: 0,
7797 18:38:00 DEBUG| Oomed: 0,
7798 18:38:00 DEBUG| Passed: 0,
7799 18:38:00 DEBUG| Badret: 0,
7800 18:38:00 DEBUG|
7801 18:38:00 DEBUG| Tests took 1 seconds to run
7802 18:38:00 DEBUG|
7803 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7804 18:38:00 DEBUG|
7805 18:38:00 DEBUG| Traceback (most recent call last):
7806 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
7807 18:38:00 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
7808 18:38:00 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
7809 18:38:00 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7810 18:38:00 DEBUG|
7811 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7812 18:38:00 DEBUG|
7813 18:38:00 DEBUG| Traceback (most recent call last):
7814 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start
7815 18:38:00 DEBUG| l()
7816 18:38:00 DEBUG| ~^^
7817 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 506, in
7818 18:38:00 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
7819 18:38:00 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7820 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 121, in runtest
7821 18:38:00 DEBUG| common_test.runtest(job, url, tag, args, dargs, locals(), globals(),
7822 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7823 18:38:00 DEBUG| job.sysinfo.log_before_each_test,
7824 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7825 18:38:00 DEBUG| job.sysinfo.log_after_each_test,
7826 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7827 18:38:00 DEBUG| job.sysinfo.log_before_each_iteration,
7828 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7829 18:38:00 DEBUG| job.sysinfo.log_after_each_iteration)
7830 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7831 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
7832 18:38:00 DEBUG| mytest._exec(args, dargs)
7833 18:38:00 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^
7834 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 455, in _exec
7835 18:38:00 DEBUG| raise error.UnhandledTestError(e)
7836 18:38:00 DEBUG| autotest.client.shared.error.UnhandledTestError: Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7837 18:38:00 DEBUG| Traceback (most recent call last):
7838 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7839 18:38:00 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
7840 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7841 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7842 18:38:00 DEBUG| return func(*args, **dargs)
7843 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7844 18:38:00 DEBUG| self._call_run_once(constraints, profile_only,
7845 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7846 18:38:00 DEBUG| postprocess_profiled_run, args, dargs)
7847 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7848 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7849 18:38:00 DEBUG| self.run_once(*args, **dargs)
7850 18:38:00 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7851 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7852 18:38:00 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
7853 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7854 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7855 18:38:00 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
7856 18:38:00 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7857 18:38:00 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7858 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7859 18:38:00 DEBUG| verbose=verbose, args=args).stdout
7860 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7861 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7862 18:38:00 DEBUG| raise error.CmdError(command, bg_job.result,
7863 18:38:00 DEBUG| "Command returned non-zero exit status")
7864 18:38:00 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7865 18:38:00 DEBUG| * Command:
7866 18:38:00 DEBUG| /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7867 18:38:00 DEBUG| _single_smoke_test.sh madvise
7868 18:38:00 DEBUG| Exit status: 1
7869 18:38:00 DEBUG| Duration: 1.2382481098175049
7870 18:38:00 DEBUG|
7871 18:38:00 DEBUG| stdout:
7872 18:38:00 DEBUG| Free memory: 30605 MB
7873 18:38:00 DEBUG| Memory used: 27544 MB
7874 18:38:00 DEBUG| Using cgroup version 2
7875 18:38:00 DEBUG|
7876 18:38:00 DEBUG| Machine Configuration
7877 18:38:00 DEBUG| Physical Pages: 8214419
7878 18:38:00 DEBUG| Pages available: 7834864
7879 18:38:00 DEBUG| Page Size: 4096
7880 18:38:00 DEBUG| Zswap enabled: Y
7881 18:38:00 DEBUG|
7882 18:38:00 DEBUG| Free memory:
7883 18:38:00 DEBUG| total used free shared buff/cache available
7884 18:38:00 DEBUG| Mem: 32857676 1180964 31339156 744 665284 31676712
7885 18:38:00 DEBUG| Swap: 9437176 0 9437176
7886 18:38:00 DEBUG|
7887 18:38:00 DEBUG| Number of CPUs: 380
7888 18:38:00 DEBUG| Number of CPUs Online: 8
7889 18:38:00 DEBUG|
7890 18:38:00 DEBUG| Maximum bogo ops: 3000
7891 18:38:00 DEBUG|
7892 18:38:00 DEBUG| madvise STARTING
7893 18:38:00 DEBUG| madvise RETURNED 2
7894 18:38:00 DEBUG| madvise FAILED
7895 18:38:00 DEBUG| stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7896 18:38:00 DEBUG| stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7897 18:38:00 DEBUG| stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7898 18:38:00 DEBUG| stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7899 18:38:00 DEBUG| stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7900 18:38:00 DEBUG| stress-ng: debug: [181079] 8 processors online, 380 processors configured
7901 18:38:00 DEBUG| stress-ng: info: [181079] setting to a 5 secs run per stressor
7902 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7903 18:38:00 DEBUG| stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7904 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7905 18:38:00 DEBUG| stress-ng: info: [181079] dispatching hogs: 4 madvise
7906 18:38:00 DEBUG| stress-ng: debug: [181079] starting stressors
7907 18:38:00 DEBUG| stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7908 18:38:00 DEBUG| stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7909 18:38:00 DEBUG| stress-ng: debug: [181079] 4 stressors started
7910 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7911 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7912 18:38:00 DEBUG| stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7913 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7914 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7915 18:38:00 DEBUG| stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7916 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7917 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7918 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7919 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7920 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7921 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7922 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181082] terminated (success)
7923 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181083] terminated (success)
7924 18:38:00 DEBUG| stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7925 18:38:00 DEBUG| stress-ng: info: [181079] skipped: 0
7926 18:38:00 DEBUG| stress-ng: info: [181079] passed: 2: madvise (2)
7927 18:38:00 DEBUG| stress-ng: info: [181079] failed: 2: madvise (2)
7928 18:38:00 DEBUG| stress-ng: info: [181079] metrics untrustworthy: 0
7929 18:38:00 DEBUG| stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7930 18:38:00 DEBUG|
7931 18:38:00 DEBUG|
7932 18:38:00 DEBUG|
7933 18:38:00 DEBUG| Summary:
7934 18:38:00 DEBUG| Stressors run: 1
7935 18:38:00 DEBUG| Skipped: 0,
7936 18:38:00 DEBUG| Failed: 1, madvise
7937 18:38:00 DEBUG| Oopsed: 0,
7938 18:38:00 DEBUG| Oomed: 0,
7939 18:38:00 DEBUG| Passed: 0,
7940 18:38:00 DEBUG| Badret: 0,
7941 18:38:00 DEBUG|
7942 18:38:00 DEBUG| Tests took 1 seconds to run
7943 18:38:00 DEBUG|
7944 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7945 18:38:00 DEBUG|
7946 18:38:00 DEBUG| Traceback (most recent call last):
7947 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
7948 18:38:00 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
7949 18:38:00 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
7950 18:38:00 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7951 18:38:00 DEBUG|
7952 18:38:01 INFO | ERROR ubuntu_stress_smoke_test.madvise ubuntu_stress_smoke_test.madvise timestamp=1760985481 localtime=Oct 20 18:38:01 Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7953 Traceback (most recent call last):
7954 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7955 _call_test_function(self.execute, *p_args, **p_dargs)
7956 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7957 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7958 return func(*args, **dargs)
7959 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7960 self._call_run_once(constraints, profile_only,
7961 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7962 postprocess_profiled_run, args, dargs)
7963 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7964 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7965 self.run_once(*args, **dargs)
7966 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7967 File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7968 self.results = utils.system_output(cmd, retain_output=True)
7969 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7970 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7971 out = run(command, timeout=timeout, ignore_status=ignore_status,
7972 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7973 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7974 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7975 verbose=verbose, args=args).stdout
7976 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7977 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7978 raise error.CmdError(command, bg_job.result,
7979 "Command returned non-zero exit status")
7980 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7981 * Command:
7982 /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7983 _single_smoke_test.sh madvise
7984 Exit status: 1
7985 Duration: 1.2382481098175049
7986
7987 stdout:
7988 Free memory: 30605 MB
7989 Memory used: 27544 MB
7990 Using cgroup version 2
7991
7992 Machine Configuration
7993 Physical Pages: 8214419
7994 Pages available: 7834864
7995 Page Size: 4096
7996 Zswap enabled: Y
7997
7998 Free memory:
7999 total used free shared buff/cache available
8000 Mem: 32857676 1180964 31339156 744 665284 31676712
8001 Swap: 9437176 0 9437176
8002
8003 Number of CPUs: 380
8004 Number of CPUs Online: 8
8005
8006 Maximum bogo ops: 3000
8007
8008 madvise STARTING
8009 madvise RETURNED 2
8010 madvise FAILED
8011 stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
8012 stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
8013 stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
8014 stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
8015 stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
8016 stress-ng: debug: [181079] 8 processors online, 380 processors configured
8017 stress-ng: info: [181079] setting to a 5 secs run per stressor
8018 stress-ng: debug: [181079] cache allocate: using cache maximum level L2
8019 stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
8020 stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
8021 stress-ng: info: [181079] dispatching hogs: 4 madvise
8022 stress-ng: debug: [181079] starting stressors
8023 stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
8024 stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
8025 stress-ng: debug: [181079] 4 stressors started
8026 stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
8027 stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
8028 stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
8029 stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
8030 stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
8031 stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
8032 stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
8033 stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
8034 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
8035 stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
8036 stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
8037 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
8038 stress-ng: debug: [181079] madvise: [181082] terminated (success)
8039 stress-ng: debug: [181079] madvise: [181083] terminated (success)
8040 stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
8041 stress-ng: info: [181079] skipped: 0
8042 stress-ng: info: [181079] passed: 2: madvise (2)
8043 stress-ng: info: [181079] failed: 2: madvise (2)
8044 stress-ng: info: [181079] metrics untrustworthy: 0
8045 stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
8046
8047
8048
8049 Summary:
8050 Stressors run: 1
8051 Skipped: 0,
8052 Failed: 1, madvise
8053 Oopsed: 0,
8054 Oomed: 0,
8055 Passed: 0,
8056 Badret: 0,
8057
8058 Tests took 1 seconds to run
8059
8060 During handling of the above exception, another exception occurred:
8061
8062 Traceback (most recent call last):
8063 File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
8064 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
8065 ~~~~~~~~~~~^^^^^^^^^^^^^
8066 TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
8067
8068 18:38:01 INFO | END ERROR ubuntu_stress_smoke_test.madvise
ubuntu_stress_smoke_test.madvise timestamp=1760985481 localtime=Oct 20
18:38:01
** Affects: ubuntu-kernel-tests
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2129843
Title:
madvise in ubuntu_stress_smoke_test fails because of concurrent access
to MADV_GUARD_INSTALL madvised memory
Status in ubuntu-kernel-tests:
New
Bug description:
madvise test introduced MADV_GUARD_INSTALL support from kernel 6.13,
but the stress_random_advise's change to MADV normal to avoid SIGSEGV
is unprotected. Adding a mlock solves the issue. As example
diff --git a/stress-madvise.c b/stress-madvise.c
index 6bbefda..aa7a778 100644
--- a/stress-madvise.c
+++ b/stress-madvise.c
@@ -258,6 +258,8 @@ static int stress_random_advise(
#endif
#endif
+ stress_random_small_sleep();
+
#if defined(MADV_HWPOISON)
if (advise == MADV_HWPOISON) {
if (hwpoison) {
@@ -367,6 +369,9 @@ static void *stress_madvise_pages(void *arg)
void *ptr = (void *)(((uint8_t *)buf) + n);
const int advise = stress_random_advise(args, ptr, page_size, ctxt->hwpoison);
+ if (advise == MADV_GUARD_INSTALL)
+ shim_mlock(ptr, page_size);
+
(void)shim_madvise(ptr, page_size, advise);
#if defined(MADV_FREE)
if (advise == MADV_FREE)
@@ -376,6 +381,7 @@ static void *stress_madvise_pages(void *arg)
/* avoid segfaults by setting back to normal */
if (advise == MADV_GUARD_INSTALL)
(void)shim_madvise(ptr, page_size, MADV_NORMAL);
+ shim_munlock(ptr, page_size);
#endif
(void)shim_msync(ptr, page_size, MS_ASYNC);
}
Full log:
7511 18:37:59 INFO | START ubuntu_stress_smoke_test.madvise ubuntu_stress_smoke_test.madvise timeout=2100 timestamp=1760985479 localtime=Oct 20 18:37:59
7512 18:37:59 DEBUG| Persistent state client._record_indent now set to 2
7513 18:37:59 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_stress_smoke_test.madvise', 'ubuntu_stress_smoke_test.madvise')
7514 18:37:59 DEBUG| Waiting for pid 181056 for 2100 seconds
7515 18:37:59 WARNI| System python is too old, crash handling disabled
7516 18:37:59 DEBUG| Running '/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_single_smoke_test.sh madvise'
7517 18:37:59 DEBUG| [stdout] Free memory: 30605 MB
7518 18:37:59 DEBUG| [stdout] Memory used: 27544 MB
7519 18:37:59 DEBUG| [stdout] Using cgroup version 2
7520 18:37:59 DEBUG| [stdout]
7521 18:37:59 DEBUG| [stdout] Machine Configuration
7522 18:37:59 DEBUG| [stdout] Physical Pages: 8214419
7523 18:37:59 DEBUG| [stdout] Pages available: 7834864
7524 18:37:59 DEBUG| [stdout] Page Size: 4096
7525 18:37:59 DEBUG| [stdout] Zswap enabled: Y
7526 18:37:59 DEBUG| [stdout]
7527 18:37:59 DEBUG| [stdout] Free memory:
7528 18:37:59 DEBUG| [stdout] total used free shared buff/cache available
7529 18:37:59 DEBUG| [stdout] Mem: 32857676 1180964 31339156 744 665284 31676712
7530 18:37:59 DEBUG| [stdout] Swap: 9437176 0 9437176
7531 18:37:59 DEBUG| [stdout]
7532 18:37:59 DEBUG| [stdout] Number of CPUs: 380
7533 18:37:59 DEBUG| [stdout] Number of CPUs Online: 8
7534 18:37:59 DEBUG| [stdout]
7535 18:37:59 DEBUG| [stdout] Maximum bogo ops: 3000
7536 18:37:59 DEBUG| [stdout]
7537 18:37:59 DEBUG| [stdout] madvise STARTING
7538 18:38:00 DEBUG| [stdout] madvise RETURNED 2
7539 18:38:00 DEBUG| [stdout] madvise FAILED
7540 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7541 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7542 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7543 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7544 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7545 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] 8 processors online, 380 processors configured
7546 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] setting to a 5 secs run per stressor
7547 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7548 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7549 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7550 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] dispatching hogs: 4 madvise
7551 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] starting stressors
7552 18:38:00 DEBUG| [stdout] stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7553 18:38:00 DEBUG| [stdout] stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7554 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] 4 stressors started
7555 18:38:00 DEBUG| [stdout] stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7556 18:38:00 DEBUG| [stdout] stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7557 18:38:00 DEBUG| [stdout] stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7558 18:38:00 DEBUG| [stdout] stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7559 18:38:00 DEBUG| [stdout] stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7560 18:38:00 DEBUG| [stdout] stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7561 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7562 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7563 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7564 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7565 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7566 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7567 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181082] terminated (success)
7568 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] madvise: [181083] terminated (success)
7569 18:38:00 DEBUG| [stdout] stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7570 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] skipped: 0
7571 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] passed: 2: madvise (2)
7572 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] failed: 2: madvise (2)
7573 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] metrics untrustworthy: 0
7574 18:38:00 DEBUG| [stdout] stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7575 18:38:00 DEBUG| [stdout]
7576 18:38:00 DEBUG| [stdout]
7577 18:38:00 DEBUG| [stdout]
7578 18:38:00 DEBUG| [stdout] Summary:
7579 18:38:00 DEBUG| [stdout] Stressors run: 1
7580 18:38:00 DEBUG| [stdout] Skipped: 0,
7581 18:38:00 DEBUG| [stdout] Failed: 1, madvise
7582 18:38:00 DEBUG| [stdout] Oopsed: 0,
7583 18:38:00 DEBUG| [stdout] Oomed: 0,
7584 18:38:00 DEBUG| [stdout] Passed: 0,
7585 18:38:00 DEBUG| [stdout] Badret: 0,
7586 18:38:00 DEBUG| [stdout]
7587 18:38:00 DEBUG| [stdout] Tests took 1 seconds to run
7588 18:38:00 ERROR| Exception escaping from test:
7589 Traceback (most recent call last):
7590 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7591 _call_test_function(self.execute, *p_args, **p_dargs)
7592 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7593 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7594 return func(*args, **dargs)
7595 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7596 self._call_run_once(constraints, profile_only,
7597 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7598 postprocess_profiled_run, args, dargs)
7599 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7600 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7601 self.run_once(*args, **dargs)
7602 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7603 File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7604 self.results = utils.system_output(cmd, retain_output=True)
7605 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7606 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7607 out = run(command, timeout=timeout, ignore_status=ignore_status,
7608 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7609 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7610 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7611 verbose=verbose, args=args).stdout
7612 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7613 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7614 raise error.CmdError(command, bg_job.result,
7615 "Command returned non-zero exit status")
7616 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7617 * Command:
7618 /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7619 _single_smoke_test.sh madvise
7620 Exit status: 1
7621 Duration: 1.2382481098175049
7622
7623 stdout:
7624 Free memory: 30605 MB
7625 Memory used: 27544 MB
7626 Using cgroup version 2
7627
7628 Machine Configuration
7629 Physical Pages: 8214419
7630 Pages available: 7834864
7631 Page Size: 4096
7632 Zswap enabled: Y
7633
7634 Free memory:
7635 total used free shared buff/cache available
7636 Mem: 32857676 1180964 31339156 744 665284 31676712
7637 Swap: 9437176 0 9437176
7638
7639 Number of CPUs: 380
7640 Number of CPUs Online: 8
7641
7642 Maximum bogo ops: 3000
7643
7644 madvise STARTING
7645 madvise RETURNED 2
7646 madvise FAILED
7647 stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7648 stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7649 stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7650 stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7651 stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7652 stress-ng: debug: [181079] 8 processors online, 380 processors configured
7653 stress-ng: info: [181079] setting to a 5 secs run per stressor
7654 stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7655 stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7656 stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7657 stress-ng: info: [181079] dispatching hogs: 4 madvise
7658 stress-ng: debug: [181079] starting stressors
7659 stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7660 stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7661 stress-ng: debug: [181079] 4 stressors started
7662 stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7663 stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7664 stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7665 stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7666 stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7667 stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7668 stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7669 stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7670 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7671 stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7672 stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7673 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7674 stress-ng: debug: [181079] madvise: [181082] terminated (success)
7675 stress-ng: debug: [181079] madvise: [181083] terminated (success)
7676 stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7677 stress-ng: info: [181079] skipped: 0
7678 stress-ng: info: [181079] passed: 2: madvise (2)
7679 stress-ng: info: [181079] failed: 2: madvise (2)
7680 stress-ng: info: [181079] metrics untrustworthy: 0
7681 stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7682
7683
7684
7685 Summary:
7686 Stressors run: 1
7687 Skipped: 0,
7688 Failed: 1, madvise
7689 Oopsed: 0,
7690 Oomed: 0,
7691 Passed: 0,
7692 Badret: 0,
7693
7694 Tests took 1 seconds to run
7695 18:38:00 ERROR| child process failed
7696 18:38:00 DEBUG| Traceback (most recent call last):
7697 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7698 18:38:00 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
7699 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7700 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7701 18:38:00 DEBUG| return func(*args, **dargs)
7702 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7703 18:38:00 DEBUG| self._call_run_once(constraints, profile_only,
7704 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7705 18:38:00 DEBUG| postprocess_profiled_run, args, dargs)
7706 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7707 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7708 18:38:00 DEBUG| self.run_once(*args, **dargs)
7709 18:38:00 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7710 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7711 18:38:00 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
7712 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7713 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7714 18:38:00 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
7715 18:38:00 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7716 18:38:00 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7717 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7718 18:38:00 DEBUG| verbose=verbose, args=args).stdout
7719 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7720 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7721 18:38:00 DEBUG| raise error.CmdError(command, bg_job.result,
7722 18:38:00 DEBUG| "Command returned non-zero exit status")
7723 18:38:00 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7724 18:38:00 DEBUG| * Command:
7725 18:38:00 DEBUG| /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7726 18:38:00 DEBUG| _single_smoke_test.sh madvise
7727 18:38:00 DEBUG| Exit status: 1
7728 18:38:00 DEBUG| Duration: 1.2382481098175049
7729 18:38:00 DEBUG|
7730 18:38:00 DEBUG| stdout:
7731 18:38:00 DEBUG| Free memory: 30605 MB
7732 18:38:00 DEBUG| Memory used: 27544 MB
7733 18:38:00 DEBUG| Using cgroup version 2
7734 18:38:00 DEBUG|
7735 18:38:00 DEBUG| Machine Configuration
7736 18:38:00 DEBUG| Physical Pages: 8214419
7737 18:38:00 DEBUG| Pages available: 7834864
7738 18:38:00 DEBUG| Page Size: 4096
7739 18:38:00 DEBUG| Zswap enabled: Y
7740 18:38:00 DEBUG|
7741 18:38:00 DEBUG| Free memory:
7742 18:38:00 DEBUG| total used free shared buff/cache available
7743 18:38:00 DEBUG| Mem: 32857676 1180964 31339156 744 665284 31676712
7744 18:38:00 DEBUG| Swap: 9437176 0 9437176
7745 18:38:00 DEBUG|
7746 18:38:00 DEBUG| Number of CPUs: 380
7747 18:38:00 DEBUG| Number of CPUs Online: 8
7748 18:38:00 DEBUG|
7749 18:38:00 DEBUG| Maximum bogo ops: 3000
7750 18:38:00 DEBUG|
7751 18:38:00 DEBUG| madvise STARTING
7752 18:38:00 DEBUG| madvise RETURNED 2
7753 18:38:00 DEBUG| madvise FAILED
7754 18:38:00 DEBUG| stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7755 18:38:00 DEBUG| stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7756 18:38:00 DEBUG| stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7757 18:38:00 DEBUG| stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7758 18:38:00 DEBUG| stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7759 18:38:00 DEBUG| stress-ng: debug: [181079] 8 processors online, 380 processors configured
7760 18:38:00 DEBUG| stress-ng: info: [181079] setting to a 5 secs run per stressor
7761 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7762 18:38:00 DEBUG| stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7763 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7764 18:38:00 DEBUG| stress-ng: info: [181079] dispatching hogs: 4 madvise
7765 18:38:00 DEBUG| stress-ng: debug: [181079] starting stressors
7766 18:38:00 DEBUG| stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7767 18:38:00 DEBUG| stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7768 18:38:00 DEBUG| stress-ng: debug: [181079] 4 stressors started
7769 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7770 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7771 18:38:00 DEBUG| stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7772 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7773 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7774 18:38:00 DEBUG| stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7775 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7776 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7777 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7778 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7779 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7780 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7781 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181082] terminated (success)
7782 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181083] terminated (success)
7783 18:38:00 DEBUG| stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7784 18:38:00 DEBUG| stress-ng: info: [181079] skipped: 0
7785 18:38:00 DEBUG| stress-ng: info: [181079] passed: 2: madvise (2)
7786 18:38:00 DEBUG| stress-ng: info: [181079] failed: 2: madvise (2)
7787 18:38:00 DEBUG| stress-ng: info: [181079] metrics untrustworthy: 0
7788 18:38:00 DEBUG| stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7789 18:38:00 DEBUG|
7790 18:38:00 DEBUG|
7791 18:38:00 DEBUG|
7792 18:38:00 DEBUG| Summary:
7793 18:38:00 DEBUG| Stressors run: 1
7794 18:38:00 DEBUG| Skipped: 0,
7795 18:38:00 DEBUG| Failed: 1, madvise
7796 18:38:00 DEBUG| Oopsed: 0,
7797 18:38:00 DEBUG| Oomed: 0,
7798 18:38:00 DEBUG| Passed: 0,
7799 18:38:00 DEBUG| Badret: 0,
7800 18:38:00 DEBUG|
7801 18:38:00 DEBUG| Tests took 1 seconds to run
7802 18:38:00 DEBUG|
7803 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7804 18:38:00 DEBUG|
7805 18:38:00 DEBUG| Traceback (most recent call last):
7806 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
7807 18:38:00 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
7808 18:38:00 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
7809 18:38:00 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7810 18:38:00 DEBUG|
7811 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7812 18:38:00 DEBUG|
7813 18:38:00 DEBUG| Traceback (most recent call last):
7814 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start
7815 18:38:00 DEBUG| l()
7816 18:38:00 DEBUG| ~^^
7817 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 506, in
7818 18:38:00 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
7819 18:38:00 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7820 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 121, in runtest
7821 18:38:00 DEBUG| common_test.runtest(job, url, tag, args, dargs, locals(), globals(),
7822 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7823 18:38:00 DEBUG| job.sysinfo.log_before_each_test,
7824 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7825 18:38:00 DEBUG| job.sysinfo.log_after_each_test,
7826 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7827 18:38:00 DEBUG| job.sysinfo.log_before_each_iteration,
7828 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7829 18:38:00 DEBUG| job.sysinfo.log_after_each_iteration)
7830 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7831 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
7832 18:38:00 DEBUG| mytest._exec(args, dargs)
7833 18:38:00 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^
7834 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 455, in _exec
7835 18:38:00 DEBUG| raise error.UnhandledTestError(e)
7836 18:38:00 DEBUG| autotest.client.shared.error.UnhandledTestError: Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7837 18:38:00 DEBUG| Traceback (most recent call last):
7838 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7839 18:38:00 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
7840 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7841 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7842 18:38:00 DEBUG| return func(*args, **dargs)
7843 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7844 18:38:00 DEBUG| self._call_run_once(constraints, profile_only,
7845 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7846 18:38:00 DEBUG| postprocess_profiled_run, args, dargs)
7847 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7848 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7849 18:38:00 DEBUG| self.run_once(*args, **dargs)
7850 18:38:00 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7851 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7852 18:38:00 DEBUG| self.results = utils.system_output(cmd, retain_output=True)
7853 18:38:00 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7854 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7855 18:38:00 DEBUG| out = run(command, timeout=timeout, ignore_status=ignore_status,
7856 18:38:00 DEBUG| ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7857 18:38:00 DEBUG| stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7858 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7859 18:38:00 DEBUG| verbose=verbose, args=args).stdout
7860 18:38:00 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7861 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7862 18:38:00 DEBUG| raise error.CmdError(command, bg_job.result,
7863 18:38:00 DEBUG| "Command returned non-zero exit status")
7864 18:38:00 DEBUG| autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7865 18:38:00 DEBUG| * Command:
7866 18:38:00 DEBUG| /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7867 18:38:00 DEBUG| _single_smoke_test.sh madvise
7868 18:38:00 DEBUG| Exit status: 1
7869 18:38:00 DEBUG| Duration: 1.2382481098175049
7870 18:38:00 DEBUG|
7871 18:38:00 DEBUG| stdout:
7872 18:38:00 DEBUG| Free memory: 30605 MB
7873 18:38:00 DEBUG| Memory used: 27544 MB
7874 18:38:00 DEBUG| Using cgroup version 2
7875 18:38:00 DEBUG|
7876 18:38:00 DEBUG| Machine Configuration
7877 18:38:00 DEBUG| Physical Pages: 8214419
7878 18:38:00 DEBUG| Pages available: 7834864
7879 18:38:00 DEBUG| Page Size: 4096
7880 18:38:00 DEBUG| Zswap enabled: Y
7881 18:38:00 DEBUG|
7882 18:38:00 DEBUG| Free memory:
7883 18:38:00 DEBUG| total used free shared buff/cache available
7884 18:38:00 DEBUG| Mem: 32857676 1180964 31339156 744 665284 31676712
7885 18:38:00 DEBUG| Swap: 9437176 0 9437176
7886 18:38:00 DEBUG|
7887 18:38:00 DEBUG| Number of CPUs: 380
7888 18:38:00 DEBUG| Number of CPUs Online: 8
7889 18:38:00 DEBUG|
7890 18:38:00 DEBUG| Maximum bogo ops: 3000
7891 18:38:00 DEBUG|
7892 18:38:00 DEBUG| madvise STARTING
7893 18:38:00 DEBUG| madvise RETURNED 2
7894 18:38:00 DEBUG| madvise FAILED
7895 18:38:00 DEBUG| stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
7896 18:38:00 DEBUG| stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
7897 18:38:00 DEBUG| stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
7898 18:38:00 DEBUG| stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
7899 18:38:00 DEBUG| stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
7900 18:38:00 DEBUG| stress-ng: debug: [181079] 8 processors online, 380 processors configured
7901 18:38:00 DEBUG| stress-ng: info: [181079] setting to a 5 secs run per stressor
7902 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: using cache maximum level L2
7903 18:38:00 DEBUG| stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
7904 18:38:00 DEBUG| stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
7905 18:38:00 DEBUG| stress-ng: info: [181079] dispatching hogs: 4 madvise
7906 18:38:00 DEBUG| stress-ng: debug: [181079] starting stressors
7907 18:38:00 DEBUG| stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
7908 18:38:00 DEBUG| stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
7909 18:38:00 DEBUG| stress-ng: debug: [181079] 4 stressors started
7910 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
7911 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
7912 18:38:00 DEBUG| stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
7913 18:38:00 DEBUG| stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
7914 18:38:00 DEBUG| stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
7915 18:38:00 DEBUG| stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
7916 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
7917 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
7918 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
7919 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
7920 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
7921 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
7922 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181082] terminated (success)
7923 18:38:00 DEBUG| stress-ng: debug: [181079] madvise: [181083] terminated (success)
7924 18:38:00 DEBUG| stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
7925 18:38:00 DEBUG| stress-ng: info: [181079] skipped: 0
7926 18:38:00 DEBUG| stress-ng: info: [181079] passed: 2: madvise (2)
7927 18:38:00 DEBUG| stress-ng: info: [181079] failed: 2: madvise (2)
7928 18:38:00 DEBUG| stress-ng: info: [181079] metrics untrustworthy: 0
7929 18:38:00 DEBUG| stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
7930 18:38:00 DEBUG|
7931 18:38:00 DEBUG|
7932 18:38:00 DEBUG|
7933 18:38:00 DEBUG| Summary:
7934 18:38:00 DEBUG| Stressors run: 1
7935 18:38:00 DEBUG| Skipped: 0,
7936 18:38:00 DEBUG| Failed: 1, madvise
7937 18:38:00 DEBUG| Oopsed: 0,
7938 18:38:00 DEBUG| Oomed: 0,
7939 18:38:00 DEBUG| Passed: 0,
7940 18:38:00 DEBUG| Badret: 0,
7941 18:38:00 DEBUG|
7942 18:38:00 DEBUG| Tests took 1 seconds to run
7943 18:38:00 DEBUG|
7944 18:38:00 DEBUG| During handling of the above exception, another exception occurred:
7945 18:38:00 DEBUG|
7946 18:38:00 DEBUG| Traceback (most recent call last):
7947 18:38:00 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
7948 18:38:00 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
7949 18:38:00 DEBUG| ~~~~~~~~~~~^^^^^^^^^^^^^
7950 18:38:00 DEBUG| TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7951 18:38:00 DEBUG|
7952 18:38:01 INFO | ERROR ubuntu_stress_smoke_test.madvise ubuntu_stress_smoke_test.madvise timestamp=1760985481 localtime=Oct 20 18:38:01 Unhandled TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
7953 Traceback (most recent call last):
7954 File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
7955 _call_test_function(self.execute, *p_args, **p_dargs)
7956 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7957 File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
7958 return func(*args, **dargs)
7959 File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
7960 self._call_run_once(constraints, profile_only,
7961 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
7962 postprocess_profiled_run, args, dargs)
7963 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7964 File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
7965 self.run_once(*args, **dargs)
7966 ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
7967 File "/home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress_smoke_test.py", line 111, in run_once
7968 self.results = utils.system_output(cmd, retain_output=True)
7969 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
7970 File "/home/ubuntu/autotest/client/shared/utils.py", line 1265, in system_output
7971 out = run(command, timeout=timeout, ignore_status=ignore_status,
7972 ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7973 stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS,
7974 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7975 verbose=verbose, args=args).stdout
7976 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7977 File "/home/ubuntu/autotest/client/shared/utils.py", line 916, in run
7978 raise error.CmdError(command, bg_job.result,
7979 "Command returned non-zero exit status")
7980 autotest.client.shared.error.CmdError: Command failed, rc=1, Command returned non-zero exit status
7981 * Command:
7982 /home/ubuntu/autotest/client/tests/ubuntu_stress_smoke_test/ubuntu_stress
7983 _single_smoke_test.sh madvise
7984 Exit status: 1
7985 Duration: 1.2382481098175049
7986
7987 stdout:
7988 Free memory: 30605 MB
7989 Memory used: 27544 MB
7990 Using cgroup version 2
7991
7992 Machine Configuration
7993 Physical Pages: 8214419
7994 Pages available: 7834864
7995 Page Size: 4096
7996 Zswap enabled: Y
7997
7998 Free memory:
7999 total used free shared buff/cache available
8000 Mem: 32857676 1180964 31339156 744 665284 31676712
8001 Swap: 9437176 0 9437176
8002
8003 Number of CPUs: 380
8004 Number of CPUs Online: 8
8005
8006 Maximum bogo ops: 3000
8007
8008 madvise STARTING
8009 madvise RETURNED 2
8010 madvise FAILED
8011 stress-ng: debug: [181079] invoked with './stress-ng -v -t 5 --madvise 4 --madvise-ops 3000 --ignite-cpu --syslog --verbose --verify --oomable' by user 0 'root'
8012 stress-ng: debug: [181079] stress-ng 0.19.03 g20e0f48cf0ca
8013 stress-ng: debug: [181079] system: Linux kernel0a 6.17.0-7-generic #7-Ubuntu SMP Sat Oct 18 09:07:31 UTC 2025 s390x, gcc 14.3.0, glibc 2.42, big endian
8014 stress-ng: debug: [181079] RAM total: 31.3G, RAM free: 29.9G, swap free: 9.0G
8015 stress-ng: debug: [181079] temporary file path: '/home/ubuntu/autotest/client/tmp/ubuntu_stress_smoke_test/src/stress-ng', filesystem type: ext4 (1467516869 blocks available, KCM61VUL6T40)
8016 stress-ng: debug: [181079] 8 processors online, 380 processors configured
8017 stress-ng: info: [181079] setting to a 5 secs run per stressor
8018 stress-ng: debug: [181079] cache allocate: using cache maximum level L2
8019 stress-ng: debug: [181079] CPU data cache: L1: 128K, L2: 4096K
8020 stress-ng: debug: [181079] cache allocate: shared cache buffer size: 4096K
8021 stress-ng: info: [181079] dispatching hogs: 4 madvise
8022 stress-ng: debug: [181079] starting stressors
8023 stress-ng: debug: [181080] madvise: [181080] started (instance 0 on CPU 7)
8024 stress-ng: debug: [181081] madvise: [181081] started (instance 1 on CPU 4)
8025 stress-ng: debug: [181079] 4 stressors started
8026 stress-ng: debug: [181082] madvise: [181082] started (instance 2 on CPU 1)
8027 stress-ng: debug: [181083] madvise: [181083] started (instance 3 on CPU 7)
8028 stress-ng: info: [181081] stressor terminated with unexpected signal 11 'SIGSEGV'
8029 stress-ng: debug: [181082] madvise: [181082] exited (instance 2 on CPU 3)
8030 stress-ng: debug: [181083] madvise: [181083] exited (instance 3 on CPU 5)
8031 stress-ng: info: [181080] stressor terminated with unexpected signal 11 'SIGSEGV'
8032 stress-ng: debug: [181079] madvise: [181080] aborted via a termination signal
8033 stress-ng: debug: [181079] madvise: [181080] terminated (killed by signal)
8034 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181080-0
8035 stress-ng: debug: [181079] madvise: [181081] aborted via a termination signal
8036 stress-ng: debug: [181079] madvise: [181081] terminated (killed by signal)
8037 stress-ng: debug: [181079] madvise: removing temporary files in ./tmp-stress-ng-madvise-181081-1
8038 stress-ng: debug: [181079] madvise: [181082] terminated (success)
8039 stress-ng: debug: [181079] madvise: [181083] terminated (success)
8040 stress-ng: debug: [181079] metrics-check: all stressor metrics validated and sane
8041 stress-ng: info: [181079] skipped: 0
8042 stress-ng: info: [181079] passed: 2: madvise (2)
8043 stress-ng: info: [181079] failed: 2: madvise (2)
8044 stress-ng: info: [181079] metrics untrustworthy: 0
8045 stress-ng: info: [181079] unsuccessful run completed in 1.13 sec
8046
8047
8048
8049 Summary:
8050 Stressors run: 1
8051 Skipped: 0,
8052 Failed: 1, madvise
8053 Oopsed: 0,
8054 Oomed: 0,
8055 Passed: 0,
8056 Badret: 0,
8057
8058 Tests took 1 seconds to run
8059
8060 During handling of the above exception, another exception occurred:
8061
8062 Traceback (most recent call last):
8063 File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
8064 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
8065 ~~~~~~~~~~~^^^^^^^^^^^^^
8066 TypeError: CmdError.__init__() missing 1 required positional argument: 'result_obj'
8067
8068 18:38:01 INFO | END ERROR ubuntu_stress_smoke_test.madvise
ubuntu_stress_smoke_test.madvise timestamp=1760985481 localtime=Oct 20
18:38:01
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2129843/+subscriptions