Port-vax archive

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

Re: Libm core dump with SIGILL



Paul Koning skrev den 2015-08-21 16:26:
On Aug 21, 2015, at 10:13 AM, Anders Magnusson <ragge%ludd.ltu.se@localhost> wrote:

Paul Koning skrev den 2015-08-21 16:10:
On Aug 21, 2015, at 10:01 AM, Anders Magnusson <ragge%ludd.ltu.se@localhost> wrote:
...
So, it is following the specs... :-)
But SIGILL means illegal instruction, not reserved operand.  Isn't EMODD an optional instruction?  I wonder if the issue is that it's not recognized on Greg's platform so he ends up with the wrong exception.

And what signal is reserved operand on an Unix system? :-)

 From trap.c:
        case T_RESOPFLT|T_USER:
                sig = SIGILL;
                code = ILL_ILLOPC;
                break;
Oh.  Sorry, I assumed the manpage was telling the truth.  Silly me.

Well, it is telling the truth.
But more interesting is the manpage for infnan that mentions the ability to replace infnan() by something else, depending on the needs in the program.
This may be usable for Greg's tests I assume?

-- Ragge


Home | Main Index | Thread Index | Old Index