| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:to:subject:date:message-id:content-type | |
| :content-transfer-encoding:mime-version; q=dns; s=default; b=DDH | |
| BVLAAo8v86Dy0dBweahHU8gRmZuehzn1hS36CSzoosxhIuY4554Rl+tfxXhhn+0P | |
| JbKX8ZofiU1ZAsrpC3t9Gmkqi6zPrthfDH1pyL/QUBY9Y2KST6OjUEKO1fNhNu1D | |
| 9+xhHUuWtcVnzZuEDYmkH3UPskTnvxIvT0vktcBg= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:to:subject:date:message-id:content-type | |
| :content-transfer-encoding:mime-version; s=default; bh=ELIkrvDsF | |
| BiBZrBl1x+CKI4s7Gg=; b=IQnJHYLGRhPfVuXdGJvZkDQ6X3eHbyPoAQmfr4huQ | |
| jGpQoGvaME9XCcKfiqjuYCSIdCkS5V1cxOLDlHi/lVhCHEUFgvbv7eY+62kRoGoM | |
| ePJ7FRmqnh3YXbG2S05Li5EF1kywi3sxYmRjlX7c76X1FhItl4yIFDOagjh0ktBn | |
| Vg= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-0.3 required=5.0 tests=AWL,BAYES_50,MIME_BASE64_BLANKS,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
| X-HELO: | nihxway6out.hub.nih.gov |
| X-IronPortListener: | Outbound_SMTP |
| X-IronPort-Anti-Spam-Filtered: | true |
| X-IronPort-Anti-Spam-Result: | AhYFAPZqP1OcKEen/2dsb2JhbABZgwaBEoMKvXmDDhmBCRZ0giUBAQEDARIREUoNAQgNDQIGIAIEHRMVAgEOAQQbGodPCJ4ohHqKIqJgF4EpjRcWgxE1gRQEjwKQUotGgzCCKw |
| From: | "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Subject: | RE: Tons of cygserver errors |
| Date: | Sat, 5 Apr 2014 02:35:59 +0000 |
| Message-ID: | <5F8AAC04F9616747BC4CC0E803D5907D0C8ADCB0@MLBXv04.nih.gov> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id s352aDIA032289 |
>> I can’t push this through your list spam filter. Another attempt...
I was trying a few times, and finally deleted the strace attachment. Let's see if this will go through.
Excuse me for being a bit straightforward, but the spam filter this list is using is *really* stupid!
> Still, you're missing the cygcheck log,
Cygcheck log was attached to an earlier message from today (thread: exe.stackdump is always empty).
> and a simple testcase would be helpful
Here you go:
$ cat sem.c
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/wait.h>
int main(void)
{
int ids = semget(0xdeadbeef, 1, IPC_CREAT | 0777);
int idm = shmget(0xdeadbeef, 4096*100, IPC_CREAT | 0777);
char* addr = shmat(idm, 0, 0);
int i;
struct sembuf sb;
sigset_t blocked;
struct sigaction sa;
sigfillset(&blocked);
sigdelset(&blocked, SIGCHLD);
memset(&sa, 0, sizeof(sa));
sa.sa_flags = SA_NOCLDSTOP;
sa.sa_handler = SIG_DFL;
sigaction(SIGCHLD, &sa, 0);
sigprocmask(SIG_BLOCK, &blocked, 0);
for (i = 0; i < 10; i++) {
pid_t pid = fork();
if (!pid) {
execl("/usr/bin/true", "true", NULL);
} else {
int status;
printf("%d\n", i);
sb.sem_num = 0;
sb.sem_op = 0;
sb.sem_flg = 0;
semop(ids, &sb, 1);
waitpid(pid, &status, 0);
sleep(1);
*addr = (char) i;
}
}
return 0;
}
$ gcc -Wall sem.c
$ ./a.exe
0
1
2
3
4
5
6
7
8
9
Windows event log immediately recorded 10 new events, like so:
Error 4/4/2014 10:02:34 PM cygserver 0 None
Error 4/4/2014 10:02:33 PM cygserver 0 None
Error 4/4/2014 10:02:32 PM cygserver 0 None
Error 4/4/2014 10:02:31 PM cygserver 0 None
Error 4/4/2014 10:02:30 PM cygserver 0 None
Error 4/4/2014 10:02:29 PM cygserver 0 None
Error 4/4/2014 10:02:28 PM cygserver 0 None
Error 4/4/2014 10:02:27 PM cygserver 0 None
Error 4/4/2014 10:02:26 PM cygserver 0 None
Error 4/4/2014 10:02:25 PM cygserver 0 None
(each having exactly the same message: cygserver: PID 1944: cygserver: error getting signal_arrived to server (6))
Strace is also attached.
Please let me know if you need anything else.
Anton Lavrentiev
Contractor NIH/NLM/NCBI
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |