[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24526] Crash on x86_64 when a program is started with argument tha

From: Richard Frith-Macdonald
Subject: [bug #24526] Crash on x86_64 when a program is started with argument that is invalid property list
Date: Wed, 15 Oct 2008 05:17:51 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

Follow-up Comment #1, bug #24526 (project gnustep):

Is this simply a case of using an old version of GNUstep?

The bug report mentioned is for a segmentation fault whent he gcc builtin
function to retrieve stack frame info crashes (which it does sometimes) ...
and current/recent gnustep code installs a signal handler to catch such

unsigned NSCountFrames(void)
  jbuf_type     *env;

  env = jbuf();
  if (setjmp(env->buf) == 0)
      env->segv = signal(SIGSEGV, recover);
      env->bus = signal(SIGBUS, recover);
      env->addr = 0;

#define _NS_COUNT_HACK(X) if (__builtin_frame_address(X + 1) == 0) 
        goto done; else env->addr = (void*)(X + 1);


      signal(SIGSEGV, env->segv);
      signal(SIGBUS, env->bus);
      env = jbuf();
      signal(SIGSEGV, env->segv);
      signal(SIGBUS, env->bus);

  return (unsigned)(uintptr_t)env->addr;

So unless I'm missing something, if the code is crashing, either it's an old
version. or the operating system's impelementation of signal() is not


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]