[Top][All Lists]

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

[Octave-bug-tracker] [bug #30685] Segmentation fault in ./run-octave [si

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #30685] Segmentation fault in ./run-octave [sigemptyset() in liboctinterp-3.3.52.so]
Date: Fri, 18 Mar 2011 02:19:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100721 Iceweasel/3.5.11 (like Firefox/3.5.11)

Follow-up Comment #42, bug #30685 (project octave):

In the sighandlers.ii file you uploaded, I see the following:


# 213 "/usr/include/signal.h" 2 3 4


extern int sigemptyset (sigset_t *__set) throw () __attribute__ ((__nonnull__


# 441 "../libgnu/signal.h" 3
namespace gnulib { static int (*sigemptyset) (sigset_t *set) = ::sigemptyset;
} extern "C" int _gl_cxxalias_dummy;


sig_handler *
octave_set_signal_handler (int sig, sig_handler *handler,
                           bool restart_syscalls)
  struct sigaction act, oact;

  act.__sigaction_handler.sa_handler = handler;
  act.sa_flags = 0;

  if (sig == 14)

      act.sa_flags |= 0x20000000;



  if (restart_syscalls)
    act.sa_flags |= 0x10000000;

  gnulib::sigemptyset (&act.sa_mask);
  gnulib::sigemptyset (&oact.sa_mask);
  gnulib::sigaction (sig, &act, &oact);

  return oact.__sigaction_handler.sa_handler;


so it looks to me like sigemptyset is declared in the system signal.h file,
then a function pointer that refers to it is created in the gnulib namespace,
then that is used in the octave_set_signal_handler function.  I don't see
anything wrong with this code.

I see that you are using GCC 4.1.2.  Does this problem happen with other
versions of GCC on your system, or only with GCC 4.1.2?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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