Re: kern/141956: [libc] signal(3): siginfo->

看板FB_bugs作者時間16年前 (2010/01/30 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
The following reply was made to PR kern/141956; it has been noted by GNATS. From: BERTRAND Joel <joel.bertrand@systella.fr> To: Bruno Ducrot <ducrot@echo.fr> Cc: bug-followup@FreeBSD.org Subject: Re: kern/141956: [libc] signal(3): siginfo-&gt;si_pid null in signal handler [regression] Date: Fri, 29 Jan 2010 15:53:59 +0100 Bruno Ducrot a 嶰rit : > Hi, > > With this test : > #include <stdio.h> > #include <stdlib.h> > #include <signal.h> > #include <unistd.h> > > > void > handler(int signal, siginfo_t *siginfo, void *context) > { > int i; > char *p = (char *)siginfo; > > printf("si_pid: %d (%d)\n", siginfo->si_pid, getpid()); > printf("si_uid: %d\n", siginfo->si_uid); > > _exit(1); > } > > int > main(void) > { > struct sigaction sa; > > sa.sa_sigaction = handler; > sa.sa_flags = SA_SIGINFO; > sigemptyset(&sa.sa_mask); > > sigaction(SIGABRT, &sa, NULL); > abort(); > return 0; > } > > I can indeed reproduce the same behaviour with RELENG_8_0 at least. > > But it seems this has been fixed by kid@ under CURRENT (SVN rev 199355). > > There is a MFC (SVN rev 200729), and therefore I can't reproduce anymore > this misbehaviour with RELENG_8 as of yesterday. > > Could you please confirm your software (RPL/2) work now as expected with > latest RELENG_8 ? I can of course, but I have to upgrade my FreeBSD installation. I think if shall be impossible until next week. Regards, JKB _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1BOo9dti (FB_bugs)
文章代碼(AID): #1BOo9dti (FB_bugs)