public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tons of cygserver errors
@ 2014-04-01 14:25 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2014-04-02  8:53 ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2014-04-01 14:25 UTC (permalink / raw)
  To: cygwin

Hi,

Event Log on my PC is full (literally) of these, recorded every 5 seconds or so, and
usually coming in in pairs (2 of the same, then 5 sec pause, then another 2, and so on)

Could someone please explain what do they mean?  I am not running with Admin
privs (although, cygserver is).  My apps do use SYSV shmem and sems.

The description for Event ID 0 from source cygserver cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

cygserver: PID 1916: cygserver: error getting signal_arrived to server (6)

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Tons of cygserver errors
@ 2014-04-05  2:36 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2014-04-07  0:59 ` Christopher Faylor
  2014-04-07  9:57 ` Corinna Vinschen
  0 siblings, 2 replies; 11+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2014-04-05  2:36 UTC (permalink / raw)
  To: cygwin

>> 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-04-07 14:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 14:25 Tons of cygserver errors Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-04-02  8:53 ` Corinna Vinschen
2014-04-02 16:26   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-04-03  8:28     ` Corinna Vinschen
2014-04-05  2:36 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-04-07  0:59 ` Christopher Faylor
2014-04-07  2:33   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2014-04-07  3:12     ` Christopher Faylor
2014-04-07  9:57 ` Corinna Vinschen
2014-04-07 11:45   ` Corinna Vinschen
2014-04-07 14:31     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]

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 read-only IMAP folder(s) and NNTP newsgroup(s).