sachinpc / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

server dead lock #482

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

const wchar_t kPipeName[] = L"\\\\.\\Pipe\\anndmpipe";

 if (crash_server) {
    return;
  }

  std::wstring dump_path = L".";
  crash_server = new CrashGenerationServer(kPipeName,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    true,
    &dump_path);

  if (!crash_server->Start()) {
    delete crash_server;
    crash_server = NULL;
  }
this my code for new process mode when i debug it
it alwarys dead lock in !crash_server->Start())
  if (!RegisterWaitForSingleObject(&pipe_wait_handle_,
                                   overlapped_.hEvent,
                                   OnPipeConnected,
                                   this,
                                   INFINITE,
                                   kPipeIOThreadFlags)) {
why it dead lock??

Original issue reported on code.google.com by calflov...@gmail.com on 6 Jun 2012 at 9:28