From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Cc: 100336-forwarded@bugs.debian.org, debian-hppa@lists.debian.org,
joy@debian.org
Subject: Re: hppa problems
Date: Sun, 10 Jun 2001 20:19:20 -0400 [thread overview]
Message-ID: <20010610201920.A18831@dman.com> (raw)
In-Reply-To: <20010610191043.A17968@dman.com>; from clint@zsh.org on Sun, Jun 10, 2001 at 07:10:43PM -0400
> I'll investigate the sigsuspend test shortly.
--sigsus.c--
#include <signal.h>
#include <unistd.h>
int child=0;
void handler(sig)
int sig;
{if(sig==SIGCHLD) child=1;}
main() {
struct sigaction act;
sigset_t set;
int pid, ret;
act.sa_handler = &handler;
sigfillset(&act.sa_mask);
act.sa_flags = 0;
sigaction(SIGCHLD, &act, 0);
sigfillset(&set);
sigprocmask(SIG_SETMASK, &set, 0);
pid=fork();
if(pid==0) return 0;
if(pid>0) {
sigemptyset(&set);
ret=sigsuspend(&set);
exit(child==0);
}
}
--end sigsus.c--
--strace -ff output--
execve("./sigsuspendtest", ["./sigsuspendtest"], [/* 16 vars */]) = 0
newuname({sys="Linux", node="paer", ...}) = 0
brk(0) = 0x21000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
idle() = 0
mmap(NULL, 14827, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001b000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\17\0\0\0\1\0\2\210"..., 1024) = 1024
idle() = 0
mmap(NULL, 1351200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002b000
mprotect(0x40158000, 118304, PROT_NONE) = 0
mmap(0x40167000, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x12c000) = 0x40167000
mmap(0x40172000, 11808, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40172000
close(3) = 0
munmap(0x4001b000, 14827) = 0
getpid() = 17711
rt_sigaction(SIGCHLD, {0x20952, ~[], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], NULL, 8) = 0
fork() = 17712
rt_sigsuspend([]--- SIGCHLD (Child exited) ---
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
--end strace -ff output--
--strace -ff child output--
exit(0) = ?
--end strace -ff child output--
next prev parent reply other threads:[~2001-06-11 0:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-10 11:07 PATCH: config.{guess,sub} upgrade Clint Adams
2001-06-10 12:10 ` hppa problems Clint Adams
2001-06-10 16:34 ` Bart Schaefer
2001-06-10 23:10 ` Clint Adams
2001-06-11 0:19 ` Clint Adams [this message]
2001-06-11 3:04 ` Bart Schaefer
2001-06-11 13:59 ` Clint Adams
2001-06-11 5:35 ` Andrej Borsenkow
2001-06-11 5:50 ` Bart Schaefer
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=20010610201920.A18831@dman.com \
--to=clint@zsh.org \
--cc=100336-forwarded@bugs.debian.org \
--cc=debian-hppa@lists.debian.org \
--cc=joy@debian.org \
--cc=zsh-workers@sunsite.dk \
/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/zsh/
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).