[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libzstd :: non-regular file test failure
From: |
Sergey Bugaev |
Subject: |
Re: libzstd :: non-regular file test failure |
Date: |
Wed, 4 Dec 2024 06:21:13 +0300 |
On Wed, Dec 4, 2024 at 12:11 AM Diego Nieto Cid <dnietoc@gmail.com> wrote:
> 52<--47(pid1044)->io_write_request ("Hello World!\n" -1) = 0 15
On Wed, Dec 4, 2024 at 4:50 AM Diego Nieto Cid <dnietoc@gmail.com> wrote:
> I traced it to the function `io_write` from `libhurduser.so.3` which
> is returning 1.
On Wed, Dec 4, 2024 at 6:09 AM Diego Nieto Cid <dnietoc@gmail.com> wrote:
> (gdb) p *nbytes
> $23 = 13
> (gdb) p wrote
> $24 = 15
> (gdb) p err
> $25 = ESUCCESS
> (gdb)
> --->8-------->8----
>
> It's odd that the written bytes are greater than the requested to
> write bytes. Although I still don't know if that's the culprit.
That's it, great catch! And after that, _IO_new_file_write must be
trying to write out the remaining -2 bytes, and that fails. 1 is
likely KERN_INVALID_ADDRESS; the RPC doesn't go out which is why we
don't see it in rpctrace.
zero_write leaves *amount unset; its UB.
Sergey
- Re: libzstd :: non-regular file test failure, (continued)
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/03
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/03
- Re: libzstd :: non-regular file test failure,
Sergey Bugaev <=
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/04
- Re: libzstd :: non-regular file test failure, Sergey Bugaev, 2024/12/04
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/04
- Re: libzstd :: non-regular file test failure, Diego Nieto Cid, 2024/12/04
- Re: libzstd :: non-regular file test failure, Samuel Thibault, 2024/12/28