[GRASS-dev] [GRASS GIS] #791: g.region -n fails for non-LL

#791: g.region -n fails for non-LL
--------------------------------+-------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Keywords: g.region | Platform: Linux
      Cpu: x86-32 |
--------------------------------+-------------------------------------------
Hi,

`g.region -n` is failing for non-LL projections. It always returns
90.00000 as the convergence angle (angle to true north at center of
region).

seen in recent grass65.svn with proj 4.6.0 on Debian/Lenny.

?,
Hamish

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Comment (by neteler):

No such problem here (Mandriva, 64bit):

{{{
GRASS 6.5.svn (spearfish60):~/grass65 > g.region -dn
convergence angle: 0.875266
}}}

Markus

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Comment (by neteler):

Tested again on a new laptop and different location:
{{{
GRASS 6.4.0svn (nc_spm_08):~ > g.region -dn
convergence angle: 0.519740
}}}

Still a(n) (Debian) issue?

Markus

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Comment (by hamish):

This still fails for me on two Debian/Lenny machines, one 32bit with proj
4.6.1-5~bpo50+1 (from backports.org), the other 64bit with a stock proj
4.6.0-2.

But on that 64bit Lenny build it -does work- for 6.5svn but fails for
6.4svn and trunk. And I can swear that the first time I tried it in 6.4svn
after rebuilding the latest svn that it worked, but I can't reproduce that
now.

by "fail" I mean that it returns "`converge_angle=0.000000`" or 90.0 on
the Lenny 32bit.

Works for me on a 32bit Debian/Etch with proj 4.6.0-1~bpo40+1, both 6.4svn
and 6.5svn.

Works for me on Ubuntu 9.04 32bit + 6.4.0rc5 ubuntuGIS backport package.

Works for me on WinGRASS XP 32bit + 6.4.0svn40456 build.

Due to the weirdness of it, I'm guessing it's a memory error.

pj_factors() returns 0 in both working and failing cases.

The valgrind log indicates that a variable (fact.conv?) may be being used
uninitialised.

{{{
G645> CMD="g.region -ng"
G64> valgrind --tool=memcheck --leak-check=yes --show-reachable=yes $CMD

==22078== Memcheck, a memory error detector.
==22078== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==22078== Using LibVEX rev 1854, a library for dynamic binary translation.
==22078== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==22078== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==22078== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==22078== For more details, rerun with: -v
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x6F8958D: pj_factors (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x406DF6: print_window (printwindow.c:573)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x6F895D7: pj_factors (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x406DF6: print_window (printwindow.c:573)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x6F895F7: pj_factors (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x406DF6: print_window (printwindow.c:573)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x6F89650: pj_factors (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x406DF6: print_window (printwindow.c:573)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x6F89683: pj_factors (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x406DF6: print_window (printwindow.c:573)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7469266: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x74695DF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746313D: (within /lib/libc-2.7.so)
==22078== by 0x7469B01: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7463147: (within /lib/libc-2.7.so)
==22078== by 0x7469B01: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7463153: (within /lib/libc-2.7.so)
==22078== by 0x7469B01: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746316C: (within /lib/libc-2.7.so)
==22078== by 0x7469B01: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x74620E3: (within /lib/libc-2.7.so)
==22078== by 0x746AE31: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7462145: (within /lib/libc-2.7.so)
==22078== by 0x746AE31: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7462120: (within /lib/libc-2.7.so)
==22078== by 0x746AE31: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746AE6A: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AE78: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746AE97: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AEBE: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AECB: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AEF3: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AEFF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AF28: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AF50: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746AF6A: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461DDA: (within /lib/libc-2.7.so)
==22078== by 0x746AFA5: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461E04: (within /lib/libc-2.7.so)
==22078== by 0x746AFA5: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461E19: (within /lib/libc-2.7.so)
==22078== by 0x746AFA5: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AFB9: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746ADF2: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746AE07: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462459: (within /lib/libc-2.7.so)
==22078== by 0x74620F5: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x74624C9: (within /lib/libc-2.7.so)
==22078== by 0x74620F5: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x74624E1: (within /lib/libc-2.7.so)
==22078== by 0x74620F5: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462470: (within /lib/libc-2.7.so)
==22078== by 0x74620F5: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462106: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746101C: (within /lib/libc-2.7.so)
==22078== by 0x7462155: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461093: (within /lib/libc-2.7.so)
==22078== by 0x7462155: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x74610AD: (within /lib/libc-2.7.so)
==22078== by 0x7462155: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461030: (within /lib/libc-2.7.so)
==22078== by 0x7462155: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462156: (within /lib/libc-2.7.so)
==22078== by 0x746B021: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461D2C: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461D35: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461D50: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461D6C: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461D77: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461D8F: (within /lib/libc-2.7.so)
==22078== by 0x746B5AF: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746B5C4: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746B02D: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462459: (within /lib/libc-2.7.so)
==22078== by 0x746B04B: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x74624C9: (within /lib/libc-2.7.so)
==22078== by 0x746B04B: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x74624E1: (within /lib/libc-2.7.so)
==22078== by 0x746B04B: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7462470: (within /lib/libc-2.7.so)
==22078== by 0x746B04B: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746B078: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x746B099: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746B0A4: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461DDA: (within /lib/libc-2.7.so)
==22078== by 0x746B4E7: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7461E04: (within /lib/libc-2.7.so)
==22078== by 0x746B4E7: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Use of uninitialised value of size 8
==22078== at 0x7461E19: (within /lib/libc-2.7.so)
==22078== by 0x746B4E7: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x7469F88: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078== Conditional jump or move depends on uninitialised value(s)
==22078== at 0x746A01F: __printf_fp (in /lib/libc-2.7.so)
==22078== by 0x7465F76: vfprintf (in /lib/libc-2.7.so)
==22078== by 0x746DBC7: fprintf (in /lib/libc-2.7.so)
==22078== by 0x406E94: print_window (printwindow.c:583)
==22078== by 0x404BA7: main (main.c:844)
convergence angle: 0.000000
==22078==
==22078== ERROR SUMMARY: 322 errors from 60 contexts (suppressed: 10 from
1)
==22078== malloc/free: in use at exit: 5,831 bytes in 106 blocks.
==22078== malloc/free: 520 allocs, 414 frees, 26,794 bytes allocated.
==22078== For counts of detected errors, rerun with: -v
==22078== searching for pointers to 106 not-freed blocks.
==22078== checked 2,822,352 bytes.
==22078==
==22078==
==22078== 50 bytes in 3 blocks are definitely lost in loss record 1 of 5
==22078== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==22078== by 0x52984E2: G__malloc (alloc.c:41)
==22078== by 0x52B555C: G__location_path (location.c:80)
==22078== by 0x52B54BC: G_location_path (location.c:41)
==22078== by 0x52B0BB0: G__gisinit (gisinit.c:58)
==22078== by 0x4025FB: main (main.c:59)
==22078==
==22078==
==22078== 168 bytes in 1 blocks are still reachable in loss record 2 of 5
==22078== at 0x4C22741: realloc (vg_replace_malloc.c:429)
==22078== by 0x52985CE: G__realloc (alloc.c:111)
==22078== by 0x52A741E: set_env (env.c:156)
==22078== by 0x52A718A: read_env (env.c:104)
==22078== by 0x52A7A6C: G__getenv (env.c:317)
==22078== by 0x52A79CC: G_getenv (env.c:271)
==22078== by 0x52B5509: G_location (location.c:63)
==22078== by 0x52B5521: G__location_path (location.c:78)
==22078== by 0x52B54BC: G_location_path (location.c:41)
==22078== by 0x52B0BB0: G__gisinit (gisinit.c:58)
==22078== by 0x4025FB: main (main.c:59)
==22078==
==22078==
==22078== 489 bytes in 11 blocks are indirectly lost in loss record 3 of 5
==22078== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==22078== by 0x6F8AAD7: pj_malloc (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6F8B806: pj_mkparam (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6F89FC1: pj_init (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6D550B4: pj_get_kv (get_proj.c:228)
==22078== by 0x406A0D: print_window (printwindow.c:494)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078==
==22078== 1,041 (552 direct, 489 indirect) bytes in 2 blocks are
definitely lost in loss record 4 of 5
==22078== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==22078== by 0x6F8AAD7: pj_malloc (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6F7A141: pj_utm (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6F8A0CA: pj_init (in /usr/lib/libproj.so.0.5.4)
==22078== by 0x6D550B4: pj_get_kv (get_proj.c:228)
==22078== by 0x406A0D: print_window (printwindow.c:494)
==22078== by 0x404BA7: main (main.c:844)
==22078==
==22078==
==22078== 4,572 bytes in 89 blocks are still reachable in loss record 5 of
5
==22078== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==22078== by 0x52984E2: G__malloc (alloc.c:41)
==22078== by 0x52CFB75: G_store (store.c:36)
==22078== by 0x52C422B: G_set_program_name (progrm_nme.c:52)
==22078== by 0x52B0B86: G__gisinit (gisinit.c:51)
==22078== by 0x4025FB: main (main.c:59)
==22078==
==22078== LEAK SUMMARY:
==22078== definitely lost: 602 bytes in 5 blocks.
==22078== indirectly lost: 489 bytes in 11 blocks.
==22078== possibly lost: 0 bytes in 0 blocks.
==22078== still reachable: 4,740 bytes in 90 blocks.
==22078== suppressed: 0 bytes in 0 blocks.
}}}

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

#791: g.region -n fails for non-LL
--------------------------------+-------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Keywords: g.region | Platform: Linux
      Cpu: x86-32 |
--------------------------------+-------------------------------------------

Comment(by hamish):

see also #1500

make sure to run `g.rehion -d` first and ensure region is valid for the
given CRS.
(ensure that `g.region -l` gives sane lat/lons)

Hamish

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: fixed | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

Comment:

working for me right now in debian/squeeze, amd64 grass 643svn and devbr6,
w/ proj package 4.7.0-1.

shrug. reopen if it happens again...

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Changes (by hamish):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

still happens on ubuntu 12.04 64bit with official proj4 package 4.7.0-1.

spearfish default region reports 0.0000 conv. angle.

re-closing as a dupe of #1500 though.

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

#791: g.region -n fails for non-LL
---------------------------------+------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Projections/Datums | Version: svn-develbranch6
Resolution: duplicate | Keywords: g.region
  Platform: Linux | Cpu: x86-32
---------------------------------+------------------------------------------
Changes (by hamish):

  * status: reopened => closed
  * resolution: => duplicate

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