Author njs
Recipients Dima Pasechnik, mark.dickinson, ncoghlan, njs
Date 2017-05-17.22:42:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495060951.0.0.370243445232.issue29137@psf.upfronthosting.co.za>
In-reply-to
Content
@Dima:
> @njs: to point out that usefulness of this module is not just wishful thinking. I just used it to locate, up to the line in a Python extension module written in C, a bug in Sagemath (that has perhaps 20 FPU-using extensions, some of them as large as numpy).  (Without using it we were pulling out our hair for weeks over this)

That's pretty cool :-). But from skimming your link, it sounds like it would have been sufficient in your case to add a call to "fesetmask(FP_X_INV)" using C or Cython or ctypes (or directly in gdb), and then running the program under gdb to get a backtrace where the SIGFPE was delivered? Is that correct? Or did your debugging depend on the specific fpectl machinery for responding to that signal?

> PS. I would volunteer to fix it and maintain it, assuming I have some modest funding to support such an activity.

I'm not personally aware of any funding sources for this, if that's the question.
History
Date User Action Args
2017-05-17 22:42:31njssetrecipients: + njs, mark.dickinson, ncoghlan, Dima Pasechnik
2017-05-17 22:42:31njssetmessageid: <1495060951.0.0.370243445232.issue29137@psf.upfronthosting.co.za>
2017-05-17 22:42:30njslinkissue29137 messages
2017-05-17 22:42:30njscreate