Details Ticket 3016


Comment | Reply | Take | Open


Serial Number 3016
Subject When trying to open .shp file, Grass 6.0b2 erase all my home directory....
Area grass5.7
Queue grass
Requestors marc.girondot@ese.u-psud.fr
Owner none
Status resolved
Last User Contact Sun Feb 20 06:42:11 2005 (4 yr ago)
Current Priority 70
Final Priority 70
Due No date assigned
Last Action Tue Feb 22 22:31:02 2005 (4 yr ago)
Created Sat Feb 19 10:47:16 2005 (4 yr ago)

Transaction History Ticket 3016


Sat, Feb 19 2005 10:47:16    Request created by guest  
Subject: When trying to open .shp file, Grass 6.0b2 erase all my home directory....
Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.0.0b2

Marc Girondot
I play for the first time with Grass.
When trying to open .shp file in "import esri E00" menu  in verbose mode, it
fails for unknown reason 
but various rm commands were displayed at the bottom of the window ... I quit
X11 rapidly and half 
of my home folder was deleted by these rm commands...
I try many things before this catastroph occurs and I cannot replicate it now
as many of my file have 
been deleted...
Probably it occurs during a cleaning after the import failed...
Marc Girondot
Sun, Feb 20 2005 06:42:11    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 20 Feb 2005 18:41:41 +1300
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3016] (grass) When trying to open .shp file, Grass 6.0b2 erase all my home directory....
Message-Id <20050220184141.2cb2d073.hamish_nospam@yahoo.com>
In-Reply-To <20050219094716.5BBD3102BF8@lists.intevation.de>
References <20050219094716.5BBD3102BF8@lists.intevation.de>
X-Mailer Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3016
> ---------------------------------------------------------------------
> 
> Subject: When trying to open .shp file, Grass 6.0b2 erase all my home
> directory....
> 
> Platform: Mac OSX
> grass obtained from: Trento Italy site
> grass binary for platform: Downloaded precompiled Binaries
> GRASS Version: 6.0.0b2
> 
> Marc Girondot
> I play for the first time with Grass.
> When trying to open .shp file in "import esri E00" menu  in verbose
> mode, it fails for unknown reason  but various rm commands were
> displayed at the bottom of the window ... I quit X11 rapidly and half 
> of my home folder was deleted by these rm commands...
> I try many things before this catastroph occurs and I cannot replicate
> it now as many of my file have  been deleted...
> Probably it occurs during a cleaning after the import failed...



ouch.


Were files removed but not directories?

Probably it is this line:

#### trap ctrl-c so that we can clean up tmp
trap 'rm -f ${TMP}*' 2 3 15


If $TMP doesn't exist for some reason, this becomes 'rm -f *'

And in this module $TMP is never set by anything... so if you hit ^C ...



I've disabled that line in the script, I'll leave it to someone who uses
e00 files to fix this properly: I would suggest using a g.tempfile
filename to make a directory (after removing the tempfile), and put all
the temp files in there?

Tests added to r.regression.line and v.in.garmin to keep this from
happening in those modules as well (in case g.tempfile fails for some
reason).


thanks for reporting this. I guess someone had to find this bug, sorry
it happened to be you.



Hamish


Mon, Feb 21 2005 13:27:17    Mail sent by marc.girondot@ese.u-psud.fr  
Return-Path <marc.girondot@ese.u-psud.fr>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0
Message-Id <p06210200be3f8410725a@[129.175.106.62]>
In-Reply-To <20050220054211.EB233102C06@lists.intevation.de>
References <20050220054211.EB233102C06@lists.intevation.de>
Date Mon, 21 Feb 2005 13:28:43 +0100
To Hamish via RT <grass-bugs@intevation.de>
From Marc Girondot <marc.girondot@ese.u-psud.fr>
Subject Re: [bug #3016] (grass) When trying to open .shp file,
Content-Type text/plain; charset="iso-8859-1" ; format="flowed"
Content-Transfer-Encoding quoted-printable
X-Scanned by amavis
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
>
>
>Were files removed but not directories?

Directories were also removed....


>Probably it is this line:
>
>#### trap ctrl-c so that we can clean up tmp
>trap 'rm -f ${TMP}*' 2 3 15
>
>
>If $TMP doesn't exist for some reason, this becomes 'rm -f *'
>
>And in this module $TMP is never set by anything... so if you hit ^C ...
>
>
>
>I've disabled that line in the script, I'll leave it to someone who uses
>e00 files to fix this properly: I would suggest using a g.tempfile
>filename to make a directory (after removing the tempfile), and put all
>the temp files in there?
>
>Tests added to r.regression.line and v.in.garmin to keep this from
>happening in those modules as well (in case g.tempfile fails for some
>reason).
>
>
>thanks for reporting this. I guess someone had to find this bug, sorry
>it happened to be you.

I had a 2weeks old backup...

Marc
-- 

__________________________________________________________
Marc Girondot, Pr
Laboratoire Ecologie, Syst=E9matique et Evolution
Equipe de Conservation des Populations et des Communaut=E9s
CNRS, ENGREF et Universit=E9 Paris-Sud 11 , UMR 8079
B=E2timent 362
91405 Orsay Cedex, France

Tel:  33 1 (0)1.69.15.72.30   Fax: 33 1 (0)1 69=20
15 56 96   e-mail: marc.girondot@ese.u-psud.fr
Web: http://www.ese.u-psud.fr/epc/conservation/Marc.html
Skype: girondot


Tue, Feb 22 2005 22:31:02    Status changed to resolved by hbowman  
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