Bug 412408 - unhandled arm-linux syscall: 124 - adjtime - on arm-linux
Summary: unhandled arm-linux syscall: 124 - adjtime - on arm-linux
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.15 SVN
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-27 22:06 UTC by Rob Bresalier
Modified: 2020-01-22 10:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Bresalier 2019-09-27 22:06:23 UTC
SUMMARY

adjtime system call is not supported on arm-linux. I was able to get it to work in my system by locally patching syswrap-arm-linux.c and uncommenting the line:

//zz    LINXY(__NR_adjtimex,          sys_adjtimex),       // 124

Looks like this has been commented out since at least 2010 for arm-linux. I could not find the reason.

STEPS TO REPRODUCE
1. Build an arm-linux (32bit) program and have it call adjtime()
2. Run it under valgrind

OBSERVED RESULT

--2040-- WARNING: unhandled arm-linux syscall: 124
--2040-- You may be able to write your own handler.
--2040-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--2040-- Nevertheless we consider this a bug.  Please report
--2040-- it at http://valgrind.org/support/bug_reports.html.

EXPECTED RESULT

adjtime should be supported

SOFTWARE/OS VERSIONS

Valgrind 3.15.0 
Embedded system running BusyBox linux distribution
Linux version: 3.4.91-WR5.0.1.40_standard+

ADDITIONAL INFORMATION
Comment 1 Julian Seward 2020-01-22 10:04:44 UTC
Fixed, dad7f1d7174d2e5e4bc16eac09653c55ab6eb7e5.