On Tue, Nov 10, 2020 at 06:45:10PM +0100, Jakub Bogusz wrote:
> `strace -f /usr/lib64/jvm/icedtea8-3.17.0/bin/javac -help` shows something 
> strange:
> 
> | # src  : 
> https://buildlogs.pld-linux.org/pld/th/x86_64/FAIL/command,bd4d8466-aafa-4f38-ab38-45d3dd906832.bz2
> | # date   : 2020/11/10 18:21:26
> | execve("/usr/lib64/jvm/icedtea8-3.17.0/bin/javac", 
> ["/usr/lib64/jvm/icedtea8-3.17.0/b"..., "-help"], 0x7ffd2c6b3340 /* 33 vars 
> */) = 0
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> | brk(NULL)                               = 0x56350d9df000
> | arch_prctl(0x3001 /* ARCH_??? */, 0x7fff5b7713e0) = -1 EINVAL (Invalid 
> argument)
> | readlink("/proc/self/exe", "/usr/bin/rsync", 4096) = 14
>                              ^^^^^^^^^^^^^^^^ ???
> | mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
> 0x7f6f30ec0000
> | access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
> directory)
> | openat(AT_FDCWD, "/usr/bin/../lib/amd64/jli/tls/x86_64/x86_64/libjli.so", 
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>                     ^^^^^^^^
> | stat("/usr/bin/../lib/amd64/jli/tls/x86_64/x86_64", 0x7fff5b770580) = -1 
> ENOENT (No such file or directory)
>         ^^^^^^^^
> 
> execve shows proper path, but why readlink("/proc/self/exe") returns
> "/usr/bin/rsync" and $ORIGIN is resolved as /usr/bin instead of
> /usr/lib64/jvm/icedtea8-3.17.0/bin ???

Problem solved by `mount -t proc proc /proc`.
There were some stale /proc contents, most likely rsynced from some live
system in 2009 (that's why /proc/self/exe points to rsync).

But missing e-mail logs still remain.


-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to