[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hurd-amd64] ibus test failures
From: |
Diego Nieto Cid |
Subject: |
Re: [hurd-amd64] ibus test failures |
Date: |
Tue, 31 Dec 2024 02:02:53 +0000 |
On Sun, Dec 29, 2024 at 11:33:47PM +0100, Samuel Thibault wrote:
>
> See the error test, it's about G_CREDENTIALS_NATIVE_SIZE, see its
> definition:
>
> #define G_CREDENTIALS_NATIVE_SIZE (sizeof (struct cmsgcred))
>
> And the definition of struct cmsgcred in bits/socket.h
>
I wrote a little test-case (attached) that compares several sizes of the objects
involved in the GBus authentication.
Here are the results for `hurd-amd64`:
$ cc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-gnu/glib-2.0/include \
-pthread cred_size.c -lgio-2.0 -lgobject-2.0 -lglib-2.0 \
-o cred_size
$ ./cred_size
sizeof (int): 4
sizeof(struct cmsgcred): 84
CMSG_LEN(sizeof (int)): 20
CMSG_LEN(g_socket_control_message_get_size (scm)): 100
and here the results for `hurd-i386`:
$ ./cred_size
sizeof (int): 4
sizeof(struct cmsgcred): 84
CMSG_LEN(sizeof (int)): 16
CMSG_LEN(g_socket_control_message_get_size (scm)): 96
So, it seems CMSG_LEN generates sizes that are off by 4 bytes.
I'll check the macro next, to see if I can pinpoint that extra 4 bytes.
Thanks
cred_size.c
Description: Text Data
- [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/29
- Re: [hurd-amd64] ibus test failures, Samuel Thibault, 2024/12/29
- Re: [hurd-amd64] ibus test failures,
Diego Nieto Cid <=
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/30
- Re: [hurd-amd64] ibus test failures, Samuel Thibault, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Samuel Thibault, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/31
- Re: [hurd-amd64] ibus test failures, Diego Nieto Cid, 2024/12/31