Bug 27852 - strace update for kernel 5.10
Summary: strace update for kernel 5.10
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-12-16 15:59 CET by David Walser
Modified: 2020-12-20 15:44 CET (History)
3 users (show)

See Also:
Source RPM: strace-5.9-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2020-12-16 15:59:52 CET
Advisory:
----------------------------------------

The strace package has been updated to version 5.10 to support the
newest features in the 5.10 kernel and fix a few bugs.

References:
https://lists.strace.io/pipermail/strace-devel/2020-December/010295.html
----------------------------------------

Updated packages in core/updates_testing:
----------------------------------------
strace-5.10-1.mga7

from strace-5.10-1.mga7.src.rpm
Comment 1 Len Lawrence 2020-12-17 19:15:48 CET
mga7, x64

Updated strace and ran some simple commands copied from a previous test.  Testing support for new features in the kernel is a matter for developers.

$ strace -o abi.trace abiword
$ grep t1 abi.trace
openat(AT_FDCWD, "/lib64/libt1.so.5", O_RDONLY|O_CLOEXEC) = 24
inotify_init1(IN_CLOEXEC)               = 22

$ strace -o wakeup sleep 555
^C
$ cat wakeup
execve("/usr/bin/sleep", ["sleep", "555"], 0x7ffe1dca18f8 /* 85 vars */) = 0
brk(NULL)                               = 0x1cfe000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
[...]
nanosleep({tv_sec=555, tv_nsec=0}, NULL) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
+++ killed by SIGINT +++

$ strace ls -l /dev/null
execve("/usr/bin/ls", ["ls", "-l", "/dev/null"], 0x7ffe2481d4a0 /* 85 vars */) = 0
brk(NULL)                               = 0xed6000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
[...]
close(2)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

$ strace -o trace.ls ls -l /etc/passwd
-rw-r--r-- 1 root root 3007 Dec  8 18:30 /etc/passwd
$ cat trace.ls
execve("/usr/bin/ls", ["ls", "-l", "/etc/passwd"], 0x7ffea103b880 /* 85 vars */) = 0
[...]
close(2)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

$ strace -o trace.wv wv 900
--2020-12-17 18:02:21--  ftp://tgftp.nws.noaa.gov/data/observations/metar/decoded/EGPH.TXT
           => ‘EGPH.TXT’
Resolving tgftp.nws.noaa.gov (tgftp.nws.noaa.gov)... 140.90.101.79
Connecting to tgftp.nws.noaa.gov (tgftp.nws.noaa.gov)|140.90.101.79|:21... connected.
Logging in as anonymous ... Logged in!
....

Killed the gui before the trace got too big.  
$ cat trace.wv
execve("/home/lcl/bin/wv", ["wv", "900"], 0x7ffcfbfc97d8 /* 85 vars */) = 0
brk(NULL)                               = 0x1363000
[...]
execve("/home/lcl/.rbenv/shims/ruby", ["ruby", "/home/lcl/bin/wv", "900"], 0x7ffd34482390 /* 85 vars */) = -1 ENOENT (No such file or directory)
execve("/home/lcl/.rbenv/bin/ruby", ["ruby", "/home/lcl/bin/wv", "900"], 0x7ffd34482390 /* 85 vars */) = -1 ENOENT (No such file or directory)
execve("/usr/local/bin/ruby", ["ruby", "/home/lcl/bin/wv", "900"], 0x7ffd34482390 /* 85 vars */) = -1 ENOENT (No such file or directory)
[...]
getegid()                               = 1000
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/share/ruby", 0x7ffeae1b6d70) = -1 ENOENT (No such file or dir
ectory)
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/lib64/ruby", 0x7ffeae1b6d70) = -1 ENOENT (No such file or directory)
[...]
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f6914402af0}, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f6914402af0}, 8) = 0
close(4)                                = 0
close(6)                                = 0
munmap(0x7f6913b4a000, 1052672)         = 0
exit_group(0)                           = ?
+++ exited with 0 +++

At this superficial level strace works.  It might be worth somebody with knowledge of system internals checking out more complex issues.

CC: (none) => tarazed25

Len Lawrence 2020-12-18 08:27:57 CET

Whiteboard: (none) => MGA7-64-OK

Comment 2 Aurelien Oudelet 2020-12-19 16:30:16 CET
Validating
Advisory pushed to SVN.

CC: (none) => ouaurelien, sysadmin-bugs
Keywords: (none) => advisory, validated_update

Comment 3 Mageia Robot 2020-12-20 15:44:36 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0248.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.