Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #4793
Closed
Open
Issue created Apr 23, 2009 by Peter Bortas@zinoOwner

Workaround needed for silent kill() failure in OS X

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4793

Reported by Jonas Wallden jonasw@roxen.com

Test 349 from modules/testsuite seems to hang intermittently on OS X. A distilled test case:

class Fnord {

  int gnapp(int t)
  {
    int e;

    werror("#%d: STARTING\n", t);
    for (e = 0; e < 7; e++) {
      for (int d = 0; d < 150; d++) {
	object o = Process.create_process( ({ "/bin/sleep", "99999" }) );
	int err = kill(o->pid(), 9);
	o->wait();
      }
    }
    werror("#%d: DONE\n", t);
    return -1;
  }
  
  array start()
  {
    array a = ({ });
    for (int e = 0; e < 10; e++)
      a += ({ thread_create(gnapp, e) });
    return a;
  }
};


void main()
{
  werror("starting...\n");
  array res = Fnord()->start()->wait() - ({ -1 });
  werror("res: %O\n", res);
}

With tracing enabled in signal_handler.c we've determined that the kill() call in f_kill() returns without error but doesn't terminate the targeted process. The problem has yet to be reduced to a standalone C program, but one hypothesis is that the forked /bin/sleep has not yet started completely before the SIGKILL signal is delivered and that the OS X kernel therefore disregards the signal.

Assignee
Assign to
Time tracking