unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Guile User <guile-user@gnu.org>
Subject: readlink system calls
Date: Tue, 22 Aug 2023 17:22:21 +0100	[thread overview]
Message-ID: <87edjvvyem.fsf@cbaines.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 3744 bytes --]

When looking at strace for various Guile things, I'm seeing a lot of
readlink system calls for directories in the load path, e.g.

readlink("/gnu", 0x7fff8738f430, 1023)  = -1 EINVAL (Invalid argument)
readlink("/gnu/store", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/lkx2k8hy40a6s3vz94287g8fr2sxs7h0-profile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/lkx2k8hy40a6s3vz94287g8fr2sxs7h0-profile/share", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/lkx2k8hy40a6s3vz94287g8fr2sxs7h0-profile/share/guile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/lkx2k8hy40a6s3vz94287g8fr2sxs7h0-profile/share/guile/site", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/lkx2k8hy40a6s3vz94287g8fr2sxs7h0-profile/share/guile/site/3.0", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu", 0x7fff8738f430, 1023)  = -1 EINVAL (Invalid argument)
readlink("/gnu/store", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile/3.0", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu", 0x7fff8738f430, 1023)  = -1 EINVAL (Invalid argument)
readlink("/gnu/store", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile/site", 0x7fff8738f430, 1023) = -1 ENOENT (No such file or directory)
readlink("/gnu", 0x7fff8738f430, 1023)  = -1 EINVAL (Invalid argument)
readlink("/gnu/store", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile/site", 0x7fff8738f430, 1023) = -1 ENOENT (No such file or directory)
readlink("/gnu", 0x7fff8738f430, 1023)  = -1 EINVAL (Invalid argument)
readlink("/gnu/store", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)
readlink("/gnu/store/2429gbw7plqmyb78h2yg67gaqwapv7gm-guile-next-3.0.9-0.aa2cfe7/share/guile", 0x7fff8738f430, 1023) = -1 EINVAL (Invalid argument)


Any idea what leads to this behaviour?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

             reply	other threads:[~2023-08-22 16:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 16:22 Christopher Baines [this message]
2023-08-22 19:03 ` readlink system calls Olivier Dion
2023-08-24 15:40   ` Maxime Devos

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=87edjvvyem.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guile-user@gnu.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).