octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #59623] [octave forge] (image) bwdist for quas


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #59623] [octave forge] (image) bwdist for quasi-euclidean case fails on i386
Date: Fri, 4 Dec 2020 14:14:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59623>

                 Summary: [octave forge] (image) bwdist for quasi-euclidean
case fails on i386
                 Project: GNU Octave
            Submitted by: rlaboiss
            Submitted on: Fri 04 Dec 2020 07:14:07 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: other
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The unit tests in file src/bwdist.cc involving the "quasi-euclidean" distance
fail on a i386 system.  This was detected in the i386 autobuilder of Debian,
as can be seen in this build log
<https://buildd.debian.org/status/fetch.php?pkg=octave-image&arch=i386&ver=2.12.0-5&stamp=1606751200&raw=0>.

The build enters a infinite loop when exercising the unit test:


assert (bwdist (bw, "quasi-euclidean"), out, 0.0001);


The patch attached to this bug report fixes the problem.  It simply replaces
abs() by fabs() in function quasi_euclidean of file src/bwdist.cc.  I have no
idea why this is necessary for i386, but the proposed patch works on all
architectures.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 04 Dec 2020 07:14:07 PM UTC  Name: fix-bwdist-on-i386.patch  Size:
917B   By: rlaboiss

<http://savannah.gnu.org/bugs/download.php?file_id=50404>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59623>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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