Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch meas_astrom v11.0 to prevent a.d.n SIGSEVs #22

Merged
merged 1 commit into from
Feb 23, 2016

Commits on Feb 23, 2016

  1. patch meas_astrom v11.0 to prevent a.d.n SIGSEVs

    W/o this patch, astrometry.net will SIGSEV under some circumstances (*) when
    running the SDSS demo.
    
    By default a.d.n is built with optimizations turned on, which (among other
    things) disables checking of assert statements. That would've caught the
    fact we were calling healpixDistance() with healpix=-1, which is illegal.
    
    This patch changes the test in isWithinRange() to test for healpix == -1
    (instead of nside == 0) when deciding whether it's permissible to call
    healpixDistance().
    
    (*) This bug was discovered when the stack was built on CentOS 5 and the
    generated binaries were executed on CentOS 6 (with different glibc).
    Running CentOS5-built binaries on CentOS 5 (and CentOS 6 binaries on CentOS
    6) did not reveal it.  Demonstrates how testing in different environments
    can reveal subtle bugs (**).
    
    (**) This bug would've been caught immediately if assertions weren't turned
    off in astrometry.net.  We should turn them back on for our builds.
    mjuric authored and jhoblitt committed Feb 23, 2016
    Configuration menu
    Copy the full SHA
    56eee04 View commit details
    Browse the repository at this point in the history