[GRASS-dev] [GRASS GIS] #1321: DebCheck QA: Passing value -1 to sqrt() leads to undefined result

#1321: DebCheck QA: Passing value -1 to sqrt() leads to undefined result
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Vector | Version: 6.4.0
Keywords: v.mapcalc | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
(see #1311)

  * ./vector/v.mapcalc/vector.c:127 [error] - Passing value -1 to sqrt()
leads to undefined result

(v.mapcalc? anyone ever play with this code??)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1321&gt;
GRASS GIS <http://grass.osgeo.org>

#1321: DebCheck QA: Passing value -1 to sqrt() leads to undefined result
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Vector | Version: 6.4.0
Keywords: v.mapcalc | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by neteler):

v.mapcalc should be svn moved out to GRASS Addons.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1321#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1321: DebCheck QA: Passing value -1 to sqrt() leads to undefined result
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.2
Component: Vector | Version: 6.4.0
Keywords: v.mapcalc | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hamish):

sqrt(-1) to set nan value replaced by 0.0/0.0 in devbr6 and trunk with
r50193-5.

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1321#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1321: DebCheck QA: Passing value -1 to sqrt() leads to undefined result
---------------------+------------------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.4
Component: Vector | Version: 6.4.0
Resolution: fixed | Keywords: v.mapcalc
  Platform: Linux | Cpu: Unspecified
---------------------+------------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed
  * milestone: 6.4.2 => 6.4.4

Comment:

nan creation backported to relbr64 in r57770, closing ticket.

Some more fixes applied so now it builds in all branches (need to run
`make` twice in 6.x as it's missing some Makefile target prereq).

Unless someone wants to take it up, recommend to move trunk's v.mapcalc
code into addons svn since the module remains a work in progress.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1321#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>