Menu ▾ ▴

#482 psrstat segfaults

next release
closed-fixed
None
5
2024-07-10
2024-07-10
No

psrstat is segfaulting on many (but not all) psrfits files again, when run with no options other than the filename. I have not yet dug into what is going on. The same example file that was attached to issue 451 for a similar problem a few years ago also shows the current problem.

https://sourceforge.net/p/psrchive/bugs/451/

Discussion

  • Paul Demorest

    Paul Demorest - 2024-07-10
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     psrstat is segfaulting on many (but not all) psrfits files again, when run with no options other than the filename.  I have not yet dug into what is going on.  The same example file that was attached to issue 451 for a similar problem a few years ago also shows the current problem.
    +
    +https://sourceforge.net/p/psrchive/bugs/451/
    
     
  • Willem van Straten

    • status: open --> closed-fixed
    • assigned_to: Willem van Straten
     
  • Willem van Straten

    Hi Paul, sorry about the bug. I've checked in a fix:

    [master c33bf2843] bugs/482 template function median returns nan if input array is empty

     
    • Paul Demorest

      Paul Demorest - 2024-07-10

      Thanks for the quick fix, Willem. I can confirm that it fixes the issue on my system.

       

Log in to post a comment.