[Top][All Lists]

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

sigprocmask.c appears to be incompatible w/ system headers

From: Keith Godfrey
Subject: sigprocmask.c appears to be incompatible w/ system headers
Date: Mon, 14 Mar 2011 01:15:21 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101226 Icedove/3.0.11


I recently compiled octave on RedHat Enterprise 5.4 and it produced a
segfault on startup. Investigation as to why suggests that there is an
incompatibility between gnulib and the system headers.

Specifically, sigset_t in /usr/include is a struct containing an array.
However gnulib's sigprocmask.c looks to treat it as an integer, with the
same prototype as defined in gnulib's signal.h. Octave crashes when
calling the functions defined in sigprocmask.c (e.g.,
libgnu::sigemptyset() and libgnu::sigprocmask()), presumably because
these functions are receiving a structure pointer instead of an int
pointer. Commenting out the entirety of sigprocmask.c and recompiling
(forcing calls to these functions to link w/ the system library)
produces a stable octave build.

I really don't understand these matters as this is my first interaction
w/ both octave and gnulib, but the octave maintainer(s) suggest that
this is a bug in gnulib. Their argument seems reasonable.

octave bug:

Thank you very much, and best regards,

reply via email to

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