Details Ticket 4079


Comment | Reply | Take | Open


Serial Number 4079
Subject Malloc errors with nviz elev=elevation.dem vect=roads
Area grass6
Queue grass
Requestors phil@pjkelly.net
Owner none
Status resolved
Last User Contact Sun Feb 19 17:31:02 2006 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Fri Mar 17 07:18:02 2006 (2 yr ago)
Created Sun Feb 12 06:34:51 2006 (3 yr ago)

Transaction History Ticket 4079


Sun, Feb 12 2006 06:34:51    Request created by guest  
Subject: Malloc errors with nviz elev=elevation.dem vect=roads

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: Grass-OSX-6.1.cvs-060204.dmg

Phil Kelly
I'm new to GRASS and GIS, so take these reports with a grain of salt, but feel
free to contact me with questions.
I launched the new install and tried to follow the instructions in the neteler_grass6_nutshell2005.p
df.
I chose the spearfish60 dataset, and tried to create a new Mapset (with my user
id (pwkelly).  Grass appeared to exit (which may be another bug).  I quit X11
and relaunched GRASS.  I now saw my "pwkelly" in the list with user1 and PERMANENT,
and chose it and entered GRASS.
I then entered the NVIZ command shown in the log below.

Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c
If required, restart the graphical user interface with: d.m &
When ready to quit enter:                exit
GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
Loading Data
Update elev null mask
Loading Data
translating colors
Vector file roads loaded.
Total vect memory = 69 Kbytes
recalculating normals...
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x31d
edc8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x31e
6c88; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x31e
2f88; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x32b
b4c8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x33f
4708; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x33f
7448; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x33f
76c8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x33f
edc8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
% 
Sun, Feb 12 2006 17:52:23    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 12 Feb 2006 09:52:16 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [GRASS5] [bug #4079] (grass) Malloc errors with nviz elev=elevation.dem vect=roads
In-reply-to <20060212053451.374CC1005A3@lists.intevation.de>
To Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
Message-id <C014B5D0.8FFE%michael.barton@asu.edu>
MIME-version 1.0
Content-type text/plain; charset=US-ASCII
Content-transfer-encoding 7bit
User-Agent Microsoft-Entourage/11.2.1.051004
Thread-Topic [GRASS5] [bug #4079] (grass) Malloc errors with nviz elev=elevation.dem vect=roads
Thread-Index AcYv9K287EncLZvnEdqZ8QAKlW/i4A==
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
I always get these too. They don't seem to have any effect on functionality,
but they worry me a bit.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: Request Tracker <grass-bugs@intevation.de>
> Reply-To: Request Tracker <grass-bugs@intevation.de>
> Date: Sun, 12 Feb 2006 06:34:51 +0100 (CET)
> To: <grass5@grass.itc.it>
> Subject: [GRASS5] [bug #4079] (grass) Malloc errors with nviz
> elev=elevation.dem vect=roads
> 
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4079
> -------------------------------------------------------------------------
> 
> Subject: Malloc errors with nviz elev=elevation.dem vect=roads
> 
> Platform: Mac OSX
> grass obtained from: Trento Italy site
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: Grass-OSX-6.1.cvs-060204.dmg
> 
> Phil Kelly
> I'm new to GRASS and GIS, so take these reports with a grain of salt, but feel
> free to contact me with questions.
> I launched the new install and tried to follow the instructions in the
> neteler_grass6_nutshell2005.pdf.  I chose the spearfish60 dataset, and tried
> to create a new Mapset (with my user id (pwkelly).  Grass appeared to exit
> (which may be another bug).  I quit X11 and relaunched GRASS.  I now saw my
> "pwkelly" in the list with user1 and PERMANENT, and chose it and entered
> GRASS.
> I then entered the NVIZ command shown in the log below.
> 
> Help is available with the command:      g.manual -i
> See the licence terms with:              g.version -c
> If required, restart the graphical user interface with: d.m &
> When ready to quit enter:                exit
> GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
> Loading Data
> Update elev null mask
> Loading Data
> translating colors
> Vector file roads loaded.
> Total vect memory = 69 Kbytes
> recalculating normals...
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x31d
> edc8; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x31e
> 6c88; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x31e
> 2f88; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x32b
> b4c8; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x33f
> 4708; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x33f
> 7448; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x33f
> 76c8; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> nviz(1182,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced:
> 0x33f
> edc8; This could be a double free(), or free() called with the middle of an
> allo
> cated block; Try setting environment variable MallocHelp to see tools to help
> de
> bug
> % 
> 
> -------------------------------------------- Managed by Request Tracker
> 
> 
> 


Sun, Feb 12 2006 18:38:24    Mail sent by mneteler  
Hi,

the message suggests:
"Try setting environment variable MallocHelp to see tools to help debug"

Can you do so? It seems to appear on Mac only.

Markus
Mon, Feb 13 2006 04:24:12    Mail sent by phil@pjkelly.net  
Return-Path <phil@pjkelly.net>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <17430.12.222.85.202.1139801042.squirrel@mint.site-secure.net>
In-Reply-To <20060212173824.CDBC41005B8@lists.intevation.de>
References <20060212173824.CDBC41005B8@lists.intevation.de>
Date Sun, 12 Feb 2006 22:24:02 -0500 (EST)
Subject Re: [bug #4079] (grass) Malloc errors with nviz elev=elevation.dem vect=roads
From "Phil Kelly" <phil@pjkelly.net>
To "Markus Neteler via RT" <grass-bugs@intevation.de>
User-Agent SquirrelMail/1.4.4
MIME-Version 1.0
Content-Type text/plain;charset=iso-8859-1
Content-Transfer-Encoding 8bit
X-Priority 3 (Normal)
Importance Normal
X-Scanned-By milter-spamc/0.25.321 (localhost [0.0.0.0]); Sun, 12 Feb 2006 21:24:02 -0600
X-Virus-Scanned by amavisd-new-20030616-p10 (Debian) at mx4.propagation.net
X-Spam-Status No, hits=-3.7 tagged_above=-999.0 required=3.0 tests=BAYES_00, PRIORITY_NO_NAME
X-Spam-Level
I probably can.  I'm new to Macs, but not new to Unix or Linux.  I presume
I'll have to do it inside the Mac Grass launch to make the variable
effective during the nviz launch.  Should I reply to you with results, or
can I followup my earlier bug report on the web?

> Hi,
>
> the message suggests:
> "Try setting environment variable MallocHelp to see tools to help debug"
>
> Can you do so? It seems to appear on Mac only.
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker
>


--
Phil Kelly
phil@pjkelly.net
Kokomo, Indiana, USA


Mon, Feb 13 2006 04:53:53    Mail sent by guest  
Setting MallocHelp doesn't seem to matter:

GRASS 6.1.cvs (spearfish60):~ > g.gisenv set='MallocHelp=1'
GRASS 6.1.cvs (spearfish60):~ > g.gisenv
GISDBASE=/Users/pwkelly/grassdata
LOCATION_NAME=spearfish60
MAPSET=pwkelly
MONITOR=x1
GRASS_GUI=tcltk
MALLOCHELP=1
MallocHelp=1
GRASS 6.1.cvs (spearfish60):~ > d.m&
[1] 1759
GRASS 6.1.cvs (spearfish60):~ > nviz elev=elevation.dem vect=roads
Loading Data
Update elev null mask
Loading Data
translating colors
Vector file roads loaded.
Total vect memory = 69 Kbytes
recalculating normals...
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x324
0dc8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x324
9c88; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x325
e008; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x32f
2648; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x34f
5708; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x34f
7c48; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x34f
7ec8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
nviz(1775,0xa000ed68) malloc: ***  Deallocation of a pointer not malloced: 0x34f
c5c8; This could be a double free(), or free() called with the middle of an allo
cated block; Try setting environment variable MallocHelp to see tools to help
de
bug
% 
Sun, Feb 19 2006 17:31:02    Mail sent by mneteler  
HI

with g.gisenv *GRASS* variables are set, not environment variables:

you have to do

export MallocHelp=1
 or
setenv MallocHelp 1

depending on your shell to get this activated.

Markus
Fri, Mar 17 2006 07:18:02    Status changed to resolved by cshock  
Fri, Mar 17 2006 07:18:02    Comments added by cshock  
Resolved: This is almost certainly the bug I just fixed with free being called
to try to free memory allocated with Tcl_Alloc. It occurs the same place in
the startup sequence. Tcl_Alloc isn't malloc in something like tcl 8.4 with
threading.
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request