Mon, Mar 19 2001
17:52:11
|
|
Request created by guest
|
|
Subject: d.zoom segfaults
Platform: Linux/Intel
Linux distro:: Debian
linux cpu:: Intel (i486, i586, pentium ...)
Xwindows version:: Xfree 3.3.6
Xwindows manager:: KDE 2.x
grass downloaded at:: CVS Server, Germany
grass sources source:: yes, I am using the latest GRASS from CVS
c compiler name:: gcc
d.zoom segfaults direct after startup without any message.
region is :
CURRENT REGION: N=431250 S=350000 RES=250 ROWS=325
E= 80000 W= 13000 RES=250 COLS=268
|
|
Tue, Mar 20 2001
13:07:07
|
|
Mail sent by spijker@geo.uu.nl
|
|
Return-Path |
<spijker@geo.uu.nl>
|
Delivered-To |
grass-bugs@intevation.de
|
From |
spijker@geo.uu.nl
|
X-Authentication-Warning |
spijker.geog.uu.nl: spijker owned process doing -bs
|
Date |
Tue, 20 Mar 2001 13:07:01 +0100 (CET)
|
X-Sender |
spijker@spijker
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@geog.uni-hannover.de
|
Subject |
Re: [bug #223] (grass) d.zoom segfaults
|
In-Reply-To |
<20010319165213.899C83C0DE@intevation.de>
|
Message-ID |
<Pine.LNX.4.21.0103201254580.4343-100000@spijker>
|
MIME-Version |
1.0
|
Content-Type |
TEXT/PLAIN; charset=US-ASCII |
On Mon, 19 Mar 2001, Request Tracker wrote:
> d.zoom segfaults direct after startup without any message.
> region is :
> CURRENT REGION: N=431250 S=350000 RES=250 ROWS=325
> E= 80000 W= 13000 RES=250 COLS=268
It seems the bug was caused by a library call in
src/libes/gis/find_file.c. A string was copied to an empty string wich
caused the segfault.
The solution (or: my solution) is the following diff for find_file.c. I
can submit it to the CVS but I don't like to mess with libraries and I
don't know if there is a 'philosophy' behind the original method.
54c54,56
< strcpy(mapset, xmapset);
---
> if (!mapset=="") {
> strcpy(mapset, xmapset);
> }
Grtz, Job
-----------------------------------------------------------------------
Job Spijker
Faculty of Geographical Sciences, Utrecht University
-----------------------------------------------------------------------
|
|
Fri, Jun 22 2001
14:00:05
|
|
Mail sent by mneteler
|
|
Hi,
this bug seems to be fixed.
Markus Neteler
|
|
Fri, Jun 22 2001
14:00:07
|
|
Status changed to resolved by mneteler
|
|