mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: glibc vs musl sizeof types
Date: Tue, 11 Mar 2014 20:49:33 +0100	[thread overview]
Message-ID: <20140311194933.GU7372@port70.net> (raw)
In-Reply-To: <531F6432.3050006@barfooze.de>

* John Spencer <maillist-musl@barfooze.de> [2014-03-11 20:29:54 +0100]:
> src/api/sys_socket.c: In function ?f?:
> src/api/sys_socket.c:3:24: error: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
>  #define F(t,n) {t *y = &x.n;}
>                         ^
> src/api/sys_socket.c:23:1: note: in expansion of macro ?F?
>  F(socklen_t,msg_namelen)
>  ^
> src/api/sys_socket.c:3:24: error: initialization from incompatible
> pointer type
>  #define F(t,n) {t *y = &x.n;}
>                         ^
> src/api/sys_socket.c:25:1: note: in expansion of macro ?F?
>  F(int,msg_iovlen)
>  ^
> src/api/sys_socket.c:3:24: error: initialization from incompatible
> pointer type
>  #define F(t,n) {t *y = &x.n;}
>                         ^
> src/api/sys_socket.c:27:1: note: in expansion of macro ?F?
>  F(socklen_t,msg_controllen)
>  ^
> src/api/sys_socket.c:3:24: error: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
>  #define F(t,n) {t *y = &x.n;}
>                         ^
> src/api/sys_socket.c:28:1: note: in expansion of macro ?F?
>  F(int,msg_flags)
>  ^

these are relevant api errors (struct msghdr fields)

> src/functional/ipc_msg.c:60: qid_ds.msg_perm.mode & 0x1ff == 0666
> failed: got 750, want 666
> src/functional/ipc_msg.c:128: child exit status: 256
> FAIL ./src/functional/ipc_msg-static.exe [status 1]
> src/functional/ipc_msg.c:60: qid_ds.msg_perm.mode & 0x1ff == 0666
> failed: got 750, want 666
> src/functional/ipc_msg.c:128: child exit status: 256
> FAIL ./src/functional/ipc_msg.exe [status 1]
> FAIL ./src/functional/ipc_sem-static.exe [signal Segmentation fault]
> FAIL ./src/functional/ipc_sem.exe [signal Segmentation fault]
> src/functional/ipc_shm.c:52: shmctl(shmid, IPC_STAT, &shmid_ds)
> failed: Bad address
> src/functional/ipc_shm.c:53: shmid_ds.shm_perm.cuid == geteuid()
> failed: got 0, want 1000
> src/functional/ipc_shm.c:55: shmid_ds.shm_perm.cgid == getegid()
> failed: got 134217728, want 1000
> src/functional/ipc_shm.c:57: shmid_ds.shm_perm.mode & 0x1ff == 0666
> failed: got 144, want 666
> src/functional/ipc_shm.c:58: shmid_ds.shm_segsz == 100 failed: got
> 0, want 100
> src/functional/ipc_shm.c:60: shmid_ds.shm_cpid == getpid() failed:
> got 0, want 11121
> src/functional/ipc_shm.c:62: (long)shmid_ds.shm_atime == 0 failed:
> got 22, want 0
> src/functional/ipc_shm.c:65: shmid_ds.shm_ctime >= t failed: got 0,
> want >= 1394565501
> src/functional/ipc_shm.c:72: shmctl(shmid, IPC_STAT, &shmid_ds)
> failed: Bad address
> src/functional/ipc_shm.c:73: (int)shmid_ds.shm_nattch == 1 failed:
> got 0, want 1
> src/functional/ipc_shm.c:74: shmid_ds.shm_lpid == getpid() failed:
> got 0, want 11121
> src/functional/ipc_shm.c:76: shm_atime is 22 want >= 1394565501
> src/functional/ipc_shm.c:118: child exit status: 256
> FAIL ./src/functional/ipc_shm-static.exe [status 1]
> src/functional/ipc_shm.c:52: shmctl(shmid, IPC_STAT, &shmid_ds)
> failed: Bad address
> src/functional/ipc_shm.c:53: shmid_ds.shm_perm.cuid == geteuid()
> failed: got 100, want 1000
> src/functional/ipc_shm.c:54: shmid_ds.shm_perm.uid == geteuid()
> failed: got 0, want 1000
> src/functional/ipc_shm.c:55: shmid_ds.shm_perm.cgid == getegid()
> failed: got 0, want 1000
> src/functional/ipc_shm.c:56: shmid_ds.shm_perm.gid == getegid()
> failed: got 134217728, want 1000
> src/functional/ipc_shm.c:57: shmid_ds.shm_perm.mode & 0x1ff == 0666
> failed: got 40, want 666
> src/functional/ipc_shm.c:58: shmid_ds.shm_segsz == 100 failed: got
> 0, want 100
> src/functional/ipc_shm.c:60: shmid_ds.shm_cpid == getpid() failed:
> got 0, want 10043
> src/functional/ipc_shm.c:65: shmid_ds.shm_ctime >= t failed: got 0,
> want >= 1394565498
> src/functional/ipc_shm.c:72: shmctl(shmid, IPC_STAT, &shmid_ds)
> failed: Bad address
> src/functional/ipc_shm.c:73: (int)shmid_ds.shm_nattch == 1 failed:
> got 0, want 1
> src/functional/ipc_shm.c:74: shmid_ds.shm_lpid == getpid() failed:
> got 0, want 10043
> src/functional/ipc_shm.c:76: shm_atime is 0 want >= 1394565498
> src/functional/ipc_shm.c:118: child exit status: 256
> FAIL ./src/functional/ipc_shm.exe [status 1]

sysvipc errors


> FAIL ./src/functional/pthread_cancel-static.exe [signal RT33]
> FAIL ./src/functional/pthread_cancel.exe [signal RT33]

probably qemu-ppc failure

> FAIL ./src/functional/pthread_mutex-static.exe [timed out]
> src/functional/pthread_mutex.c:138: PTHREAD_MUTEX_ERRORCHECK relock
> did not return EDEADLK, got deadlock
> FAIL ./src/functional/pthread_mutex.exe [timed out]
> FAIL ./src/functional/pthread_robust-static.exe [timed out]
> FAIL ./src/functional/pthread_robust.exe [timed out]

[...]

removed known math errors
(drem failed because of implicit declaration.. old math.h)

> src/math/special/llrint.h:18: bad fp exception: RN
> llrint(0x1p+100)=0, want INVALID got INEXACT
[..]

probably qemu-ppc failure (to raise invalid on invalid int conversion)

> nextafter(0x1p-1074,-inf)=0x0p+0, want INEXACT|UNDERFLOW got
> UNDERFLOW
[..]

ditto

> FAIL ./src/regression/raise-race-static.exe [signal Segmentation fault]
> FAIL ./src/regression/raise-race.exe [signal Segmentation fault]

qemu-ppc failure most likely


      reply	other threads:[~2014-03-11 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11 12:16 Szabolcs Nagy
2014-03-11 18:26 ` Rich Felker
2014-03-11 19:29   ` John Spencer
2014-03-11 19:49     ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140311194933.GU7372@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).