ubuntu_ltp_kernel_misc:zram01 fails on focal with division by zero error

Bug #2032643 reported by Roxana Nicolescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Flaky tests seen on kernel-P10d-LPAR00 with 5.4.09-162 focal kernel.

      17305 zram01 1 TINFO: timeout per run is 0h 5m 0s
      17306 tst_supported_fs_types.c:89: TINFO: Kernel supports ext2
      17307 tst_supported_fs_types.c:54: TINFO: mkfs.ext2 does exist
      17308 tst_supported_fs_types.c:89: TINFO: Kernel supports ext3
      17309 tst_supported_fs_types.c:54: TINFO: mkfs.ext3 does exist
      17310 tst_supported_fs_types.c:89: TINFO: Kernel supports ext4
      17311 tst_supported_fs_types.c:54: TINFO: mkfs.ext4 does exist
      17312 tst_supported_fs_types.c:89: TINFO: Kernel supports xfs
      17313 tst_supported_fs_types.c:54: TINFO: mkfs.xfs does exist
      17314 tst_supported_fs_types.c:89: TINFO: Kernel supports btrfs
      17315 tst_supported_fs_types.c:54: TINFO: mkfs.btrfs does exist
      17316 tst_supported_fs_types.c:89: TINFO: Kernel supports vfat
      17317 tst_supported_fs_types.c:54: TINFO: mkfs.vfat does exist
      17318 tst_supported_fs_types.c:89: TINFO: Kernel supports exfat
      17319 tst_supported_fs_types.c:50: TINFO: mkfs.exfat does not exist
      17320 tst_supported_fs_types.c:156: TINFO: Skipping tmpfs as requested by the test
      17321 zram01 1 TINFO: timeout per run is 0h 45m 0s
      17322 zram01 1 TINFO: create '6' zram device(s)
      17323 zram01 1 TPASS: all zram devices (/dev/zram0~5) successfully created
      17324 zram01 1 TCONF: The device attribute max_comp_streams was introduced in kernel 3.15 and deprecated in 4.7
      17325 zram01 2 TINFO: test that we can set compression algorithm
      17326 zram01 2 TINFO: supported algs: lzo lzo-rle lz4 lz4hc 842 zstd
      17327 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = 'lzo'
      17328 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = 'lzo-rle'
      17329 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = 'lz4'
      17330 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = 'lz4hc'
      17331 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = '842'
      17332 zram01 2 TINFO: /sys/block/zram0/comp_algorithm = 'zstd'
      17333 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = 'lzo'
      17334 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = 'lzo-rle'
      17335 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = 'lz4'
      17336 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = 'lz4hc'
      17337 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = '842'
      17338 zram01 2 TINFO: /sys/block/zram1/comp_algorithm = 'zstd'
      17339 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = 'lzo'
      17340 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = 'lzo-rle'
      17341 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = 'lz4'
      17342 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = 'lz4hc'
      17343 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = '842'
      17344 zram01 2 TINFO: /sys/block/zram2/comp_algorithm = 'zstd'
      17345 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = 'lzo'
      17346 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = 'lzo-rle'
      17347 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = 'lz4'
      17348 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = 'lz4hc'
      17349 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = '842'
      17350 zram01 2 TINFO: /sys/block/zram3/comp_algorithm = 'zstd'
      17351 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = 'lzo'
      17352 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = 'lzo-rle'
      17353 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = 'lz4'
      17354 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = 'lz4hc'
      17355 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = '842'
      17356 zram01 2 TINFO: /sys/block/zram4/comp_algorithm = 'zstd'
      17357 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = 'lzo'
      17358 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = 'lzo-rle'
      17359 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = 'lz4'
      17360 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = 'lz4hc'
      17361 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = '842'
      17362 zram01 2 TINFO: /sys/block/zram5/comp_algorithm = 'zstd'
      17363 zram01 2 TPASS: test succeeded
      17364 zram01 3 TINFO: set disk size to zram device(s)
      17365 zram01 3 TINFO: /sys/block/zram0/disksize = '26214400'
      17366 zram01 3 TINFO: /sys/block/zram1/disksize = '26214400'
      17367 zram01 3 TINFO: /sys/block/zram2/disksize = '26214400'
      17368 zram01 3 TINFO: /sys/block/zram3/disksize = '314572800'
      17369 zram01 3 TINFO: /sys/block/zram4/disksize = '402653184'
      17370 zram01 3 TINFO: /sys/block/zram5/disksize = '26214400'
      17371 zram01 3 TPASS: test succeeded
      17372 zram01 4 TINFO: set memory limit to zram device(s)
      17373 zram01 4 TINFO: /sys/block/zram0/mem_limit = '25M'
      17374 zram01 4 TINFO: /sys/block/zram1/mem_limit = '25M'
      17375 zram01 4 TINFO: /sys/block/zram2/mem_limit = '25M'
      17376 zram01 4 TINFO: /sys/block/zram3/mem_limit = '300M'
      17377 zram01 4 TINFO: /sys/block/zram4/mem_limit = '384M'
      17378 zram01 4 TINFO: /sys/block/zram5/mem_limit = '25M'
      17379 zram01 4 TPASS: test succeeded
      17380 zram01 5 TINFO: make ext2 filesystem on /dev/zram0
      17381 zram01 5 TINFO: make ext3 filesystem on /dev/zram1
      17382 zram01 5 TINFO: make ext4 filesystem on /dev/zram2
      17383 zram01 5 TINFO: make xfs filesystem on /dev/zram3
      17384 zram01 5 TINFO: make btrfs filesystem on /dev/zram4
      17385 zram01 5 TINFO: make vfat filesystem on /dev/zram5
      17386 zram01 5 TPASS: zram_makefs succeeded
      17387 zram01 6 TINFO: mount /dev/zram0
      17388 zram01 6 TINFO: mount /dev/zram1
      17389 zram01 6 TINFO: mount /dev/zram2
      17390 zram01 6 TINFO: mount /dev/zram3
      17391 zram01 6 TINFO: mount /dev/zram4
      17392 zram01 6 TINFO: mount /dev/zram5
      17393 zram01 6 TPASS: mount of zram device(s) succeeded
      17394 zram01 7 TINFO: filling zram0 (it can take long time)
      17395 zram01 7 TPASS: zram0 was filled with '24724' KB
      17396 zram01 7 TPASS: compression ratio: 42.92:1
      17397 zram01 7 TINFO: filling zram1 (it can take long time)
      17398 zram01 7 TPASS: zram1 was filled with '20628' KB
      17399 zram01 7 TPASS: compression ratio: 40.28:1
      17400 zram01 7 TINFO: filling zram2 (it can take long time)
      17401 zram01 7 TPASS: zram2 was filled with '20140' KB
      17402 zram01 7 TPASS: compression ratio: 104.89:1
      17403 zram01 7 TINFO: filling zram3 (it can take long time)
      17404 zram01 7 TPASS: zram3 was filled with '284508' KB
      17405 zram01 7 TPASS: compression ratio: 635.06:1
      17406 zram01 7 TINFO: filling zram4 (it can take long time)
      17407 zram01 7 TPASS: zram4 was filled with '330305' KB
      17408 zram01 7 TPASS: compression ratio: 1290.25:1
      17409 zram01 7 TINFO: filling zram5 (it can take long time)
      17410 zram01 7 TPASS: zram5 was filled with '25568' KB
      17411 /opt/ltp/testcases/bin/zram01.sh: 137: arithmetic expression: division by zero: "100 * 1024 * 25568 / 0"
      17412 INFO: ltp-pan reported some tests FAIL
      17413 LTP Version: 20230516
      17414 INFO: Test end time: Mon Aug 14 20:26:35 UTC 2023
      17415 stderr:
      17416 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram0': Device or resource busy
      17417 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram5': Device or resource busy
      17418 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram2': Device or resource busy
      17419 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram3': Device or resource busy
      17420 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram4': Device or resource busy
      17421 rm: cannot remove '/tmp/ltp-uXeiHk764e/LTP_zram01.vj8A6kAyot/zram1': Device or resource busy
      17422 20:26:35 ERROR| child process failed
      17423 20:26:35 DEBUG| Traceback (most recent call last):
      17424 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start
      17425 20:26:35 DEBUG| l()
      17426 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 505, in
      17427 20:26:35 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
      17428 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 125, in runtest
      17429 20:26:35 DEBUG| job.sysinfo.log_after_each_iteration)
      17430 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
      17431 20:26:35 DEBUG| mytest._exec(args, dargs)
      17432 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
      17433 20:26:35 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
      17434 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
      17435 20:26:35 DEBUG| return func(*args, **dargs)
      17436 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
      17437 20:26:35 DEBUG| postprocess_profiled_run, args, dargs)
      17438 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
      17439 20:26:35 DEBUG| self.run_once(*args, **dargs)
      17440 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_ltp_kernel_misc/ubuntu_ltp_kernel_misc.py", line 112, in run_once
      17441 20:26:35 DEBUG| print(utils.system_output(cmd, verbose=False))
      17442 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 1271, in system_output
      17443 20:26:35 DEBUG| verbose=verbose, args=args).stdout
      17444 20:26:35 DEBUG| File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
      17445 20:26:35 DEBUG| "Command returned non-zero exit status")
      17446 20:26:35 DEBUG| CmdError: Command failed, rc=1, Command returned non-zero exit status
      17447 20:26:35 DEBUG| * Command:
      17448 20:26:35 DEBUG| /opt/ltp/runltp -f /tmp/target -q -C /dev/null -l /dev/null -T /dev/null
      17449 20:26:35 DEBUG| Exit status: 1
      17450 20:26:35 DEBUG| Duration: 401.015519142
      17451 20:26:35 DEBUG|

Tags: sru-20230807
tags: added: sru-20230807
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.