Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2021 15:14:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 256199] truss: lseek() decoded incorrectly on armv7
Message-ID:  <bug-256199-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256199

            Bug ID: 256199
           Summary: truss: lseek() decoded incorrectly on armv7
           Product: Base System
           Version: 13.0-STABLE
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: fuz@fuz.su

Running a binary that does these two calls:

        lseek(fd, 5, SEEK_SET);
        pos =3D lseek(fd, 0, SEEK_HOLE);

truss reports:

lseek(3,0x500000003,SEEK_SET)                    =3D 5 (0x5)
lseek(3,0x0,SEEK_SET)                            =3D 10 (0xa)


which is clearly wrong.  Isn't lseek one of these calls that have a shuffled
argument order due to 64 bit arguments?  Perhaps the decoding tables in tru=
ss
need to be fixed to account for this.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256199-227>