Hi, is there a DD-accessible porterbox somewhere (slow would be ok, as this is smallish software) with an up-to-date sid (enough to install the recently-built libklibc-dev 2.0~rc5-1 and all other B-D of mksh 40.9.20120518-1, as well as strace and gdb-minimal)? Similarily to http://www.zytor.com/pipermail/klibc/2012-May/003229.html I found klibc-compiled programmes on Alpha to fail (SIGSEGV though, not SIGILL like on sh4) and would take a look myself first and defer to you if I can?t find anything, unless you want to peek first, in which case just say so, and I?ll give a how-to-debug. bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns out it beats the living hell out of ksh93 in that respect. I'd even consider it for my daily use if I hadn't wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh
On 26/05/12 06:02, Thorsten Glaser wrote:> is there a DD-accessible porterbox somewhere (slow would be ok, > as this is smallish software) with an up-to-date sidThe DSA supported porterbox has been decommissioned, but I have an Alpha with an up to date sid chroot that can be made available to DDs. At the moment it's building webkit (since webkit FTBFS due to memory/kernel issues on the buildds) so won't be available for another day at least. In the meantime if you send me your ssh public key I can set up a login for you. Cheers Michael.
Thorsten Glaser
2012-May-27 17:16 UTC
[klibc] [PATCH] fix signal handler setup on DEC Alpha
we need a five-argument rt_sigaction syscall form with a hidden argument but that can be NULL as the kernel sets it up for us better than we can (easily) do, at speed cost Signed-off-by: Thorsten Glaser <tg at mirbsd.org> --- usr/klibc/SYSCALLS.def | 3 ++- usr/klibc/sigaction.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index 0463df8..9b07aa2 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -202,8 +202,9 @@ ssize_t sendfile64,sendfile::sendfile(int, int, off_t *, size_t, off_t); * sanitizing <signal.h> for all architectures, sigh. See <klibc/config.h>. */ #if _KLIBC_USE_RT_SIG -<!sparc,sparc64> int rt_sigaction::__rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t); +<!sparc,sparc64,alpha> int rt_sigaction::__rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t); <sparc,sparc64> int rt_sigaction::__rt_sigaction(int, const struct sigaction *, struct sigaction *, void *, size_t); +<alpha> int rt_sigaction::__rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t, void *); int rt_sigsuspend::__rt_sigsuspend(const sigset_t *, size_t); int rt_sigpending::__rt_sigpending(sigset_t *, size_t); int rt_sigprocmask::__rt_sigprocmask(int, const sigset_t *, sigset_t *, size_t); diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c index 658c3ad..19a8a54 100644 --- a/usr/klibc/sigaction.c +++ b/usr/klibc/sigaction.c @@ -11,6 +11,9 @@ __extern int __sigaction(int, const struct sigaction *, struct sigaction *); #ifdef __sparc__ __extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, void (*)(void), size_t); +#elif defined(__alpha__) +__extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, + size_t, void *); #else __extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, size_t); @@ -43,6 +46,8 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) : NULL; rv = __rt_sigaction(sig, act, oact, restorer, sizeof(sigset_t)); } +# elif defined(__alpha__) + rv = __rt_sigaction(sig, act, oact, sizeof(sigset_t), NULL); # else rv = __rt_sigaction(sig, act, oact, sizeof(sigset_t)); # endif -- 1.7.10
Michael Cree dixit:> You should be able to log into it at electro.phys.waikato.ac.nz.Yes, thanks, that worked just fine. I?ve managed to get a patch and now mksh?s testsuite fully passes (both statically and dyna- mically linked).>Let me know when you are done as I will probably resume trying to get >webkit built.My condolence ;-) I?m done. If you need to make space, feel free to drop my account; in any case I?ve cleaned up behind me. bye, //mirabilos -- 13:37??Natureshadow? Deep inside, I hate mirabilos. I mean, he's a good guy. But he's always right! In every fsckin' situation, he's right. Even with his deeply perverted taste in software and borked ambition towards broken OSes - in the end, he's damn right about it :(! [?] works in mksh
maximilian attems
2012-May-29 17:10 UTC
[klibc] [PATCH] fix signal handler setup on DEC Alpha
On Sun, May 27, 2012 at 05:16:48PM +0000, Thorsten Glaser wrote:> we need a five-argument rt_sigaction syscall form with a hidden > argument but that can be NULL as the kernel sets it up for us > better than we can (easily) do, at speed cost > > Signed-off-by: Thorsten Glaser <tg at mirbsd.org> > --- > usr/klibc/SYSCALLS.def | 3 ++- > usr/klibc/sigaction.c | 5 +++++ > 2 files changed, 7 insertions(+), 1 deletion(-) >thank you applied together with marking alpha as working! (: -- maks
Seemingly Similar Threads
- [PATCH 1/2] ia64: Fix invalid memory access in vfork
- [klibc:ia64-signal-fix] signal: Move rt_sigaction() argument mangling to arch directories
- [klibc:master] alpha: fix signal handler setup on DEC Alpha
- [PATCH 0/5] resubmitting pending patches
- [klibc:master] alpha: Pass restorer to rt_sigaction() and disable executable stack