Details Ticket 3585


Comment | Reply | Take | Open


Serial Number 3585
Subject bus error in general/manage modules
Area grass6
Queue grass
Requestors kyngchaos@kyngchaos.com,michael.barton@asu.edu
Owner none
Status resolved
Last User Contact Sun Nov 26 14:56:34 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Nov 26 14:56:34 2006 (2 yr ago)
Created Fri Aug 26 22:30:26 2005 (3 yr ago)

Transaction History Ticket 3585


Fri, Aug 26 2005 22:30:26    Request created by guest  
Subject: bus error in general/manage modules

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.x

In 3 of the general-manage modules, g.remove, g.rename and g.copy, I get a bus
error.  On Mac OS 
10.3.9, but NOT on 10.4.2.  g.list is OK.  GRASS 6.0.x and 6.1 CVS.  GRASS and
dependencies are 
built with exactly the same options, but using GCC 3.3 on Mac OS 10.3.9 and GCC
4 on Mac OS 
10.4.2.  I'm sure this used to work on Mac OS 10.3.9 before GRASS 6.0.0, but
I've been using 10.4 
for so long now I can't say when it might have changed.

I see the CPU use spiking to 100% for a couple seconds before it crashes.  It
looks like it's happening 
in read_list.c - here are parts of the crashlog from g.remove and g.rename (the
rest of the crashlog 
is a list of all the loaded libraries):

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x90050f60

Thread 0 Crashed:
0   g.remove 	0x00003004 read_list + 0x40 (read_list.c:36)
1   g.remove 	0x00002db8 init + 0x18 (init.c:11)
2   g.remove 	0x00002894 main + 0x2c (remove.c:28)
3   g.remove 	0x00002358 _start + 0x188 (crt.c:267)
4   dyld     	0x8fe1a558 _dyld_start + 0x64

PPC Thread State:
  srr0: 0x00003004 srr1: 0x0000f030                vrsave: 0x00000000
    cr: 0x22000048  xer: 0x00000004   lr: 0x00002fcc  ctr: 0x90029620
    r0: 0x00000000   r1: 0xbfffed60   r2: 0x0000419c   r3: 0x00003f60
    r4: 0x00000000   r5: 0x00000004   r6: 0x00000001   r7: 0x00000006
    r8: 0x01602022   r9: 0x90050f60  r10: 0x004261d0  r11: 0x90134758
   r12: 0x90029620  r13: 0x00000000  r14: 0xbffffbac  r15: 0x00000000
   r16: 0x00002878  r17: 0x00000000  r18: 0x00000000  r19: 0x00000000
   r20: 0x00000000  r21: 0x00000000  r22: 0x00000000  r23: 0x00000000
   r24: 0x00000000  r25: 0x00000000  r26: 0xbffffba8  r27: 0x0000000c
   r28: 0x00000002  r29: 0xbffffbac  r30: 0xbffffbb8  r31: 0x00002fcc


Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x90050f60

Thread 0 Crashed:
0   g.rename 	0x00002ef0 read_list + 0x40 (read_list.c:36)
1   g.rename 	0x00002c08 init + 0x18 (init.c:11)
2   g.rename 	0x00002538 main + 0x30 (rename.c:19)
3   g.rename 	0x00001ff8 _start + 0x188 (crt.c:267)
4   dyld     	0x8fe1a558 _dyld_start + 0x64

PPC Thread State:
  srr0: 0x00002ef0 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x22000248  xer: 0x00000004   lr: 0x00002eb8  ctr: 0x90029620
    r0: 0x00000000   r1: 0xbfffece0   r2: 0x000041ac   r3: 0x00003f60
    r4: 0x00000000   r5: 0x00000009   r6: 0x00000001   r7: 0x00000007
    r8: 0x01602025   r9: 0x90050f60  r10: 0x004261d0  r11: 0x90134758
   r12: 0x90029620  r13: 0x00000000  r14: 0x00002518  r15: 0x00000000
   r16: 0x00000000  r17: 0x00000000  r18: 0x00000000  r19: 0x00000000
   r20: 0x00000000  r21: 0x00000000  r22: 0x00000000  r23: 0x00000000
   r24: 0x00000000  r25: 0x00000000  r26: 0xbffffa3c  r27: 0x0000000c
   r28: 0x00000002  r29: 0xbffffa40  r30: 0xbffffa4c  r31: 0x00002eb8
Sat, Nov 26 2005 15:18:22    Mail sent by kyngchaos@kyngchaos.com  
Return-Path <woklist@kyngchaos.com>
Delivered-To grass-bugs@lists.intevation.de
X-BrightmailFiltered true
X-Brightmail-Tracker AAAAAQAAA+k=
In-Reply-To <20050826203026.6ABCC1005D1@lists.intevation.de>
References <20050826203026.6ABCC1005D1@lists.intevation.de>
Mime-Version 1.0 (Apple Message framework v746.2)
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <29F9FF0F-1A1E-4343-A461-8F241228F175@kyngchaos.com>
Cc grass5@grass.itc.it
Reply-To William Kyngesburye <kyngchaos@kyngchaos.com>
Content-Transfer-Encoding 7bit
From William Kyngesburye <woklist@kyngchaos.com>
Subject Re: [GRASS5] [bug #3585] (grass) bus error in general/manage modules
Date Fri, 25 Nov 2005 12:02:37 -0600
To Request Tracker <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.2)
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
I had some time to try a few things, and narrowed down the cause a  
little, I hope.  I don't use GRASS on Mac OS 10.3 much these days,  
but on Mac OS 10.4, so I only occassionally give it a try.

At first I thought it might have something to do with the new  
SHLIB_LD options for Mac OS X (from back in bug #2544).  I had  
initial success just changing these options a bit.  But recently that  
hasn't worked.  After fiddling with the options some more, I haven't  
had any success.

I realized that about the time I first saw the problem (and when  
changing the SHLIB_LD options worked), I had started using GDAL CVS  
and 1.3.0 betas.  Because I really don't use Mac OS 10.3 much, I  
can't be sure of timing, but I'd guess that when I updated to GDAL  
1.3.1 is when adjusting the SHLIB_LD options stopped working.

I worked around a bug in configure and compiled GRASS 6.0.1 without  
GDAL, and with the original SHLIB_LD options, and now it's working -  
no bus errors.

So, the two factors here: Mac OS 10.3 (that is, GCC 3.3) and newer  
GDALs (1.3.x).  Everything is fine with the current GDAL and Mac OS  
10.4 (GCC 4.0).

Any ideas what changed in GDAL that could have this effect with older  
GCC's and GRASS?  Some C++ thing?

I could try rebuilding my whole dependency tree, but that will take a  
while.


Tue, Nov 29 2005 23:40:00    Comments added by guest  
Cc: grass5@grass.itc.it

Rebuilding all dependencies from scratch didn't help.
Thu, Dec 1 2005 22:52:08    Mail sent by kyngchaos@kyngchaos.com  
Return-Path <woklist@kyngchaos.com>
Delivered-To grass-bugs@lists.intevation.de
In-Reply-To <20051129224001.088451005BB@lists.intevation.de>
References <20051129224001.088451005BB@lists.intevation.de>
Mime-Version 1.0 (Apple Message framework v746.2)
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <98FDD25A-CFA4-42CE-A34D-E4B7ED0D4145@kyngchaos.com>
Cc grass5@grass.itc.it
Reply-To William Kyngesburye <kyngchaos@kyngchaos.com>
Content-Transfer-Encoding 7bit
From William Kyngesburye <woklist@kyngchaos.com>
Subject Re: [GRASS5] [bug #3585] (grass) bus error in general/manage modules
Date Thu, 1 Dec 2005 15:51:51 -0600
To Request Tracker <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.2)
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
It's Postgres.  When I leave out Postgres support in GDAL, GRASS  
behaves.  It doesn't matter whether I build Postgres support into  
GRASS or not, as long as it is in GDAL, parts of GRASS don't like  
GDAL (r.in.gdal works, btw).

I'm using Postgres 8.0.4 + PostGIS 1.0.4 right now, but at the time I  
noticed the problem it was Postgres 8.0.3 + PostGIS 1.0.3, and I  
think I was at Postgres 8.0.3 at a time when it did work, but PostGIS  
went thru a few versions (1.0.x).  The only big change I see in there  
is adding readline support to Postgres and GRASS.


Wed, Mar 8 2006 06:29:17    Request created by michael.barton@asu.edu (as #4152)  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 07 Mar 2006 22:06:27 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Grass 6.1: g.* commands returning a bus error
To grass-bugs@intevation.de
Message-id <C033B463.9CA2%michael.barton@asu.edu>
MIME-version 1.0
Content-type multipart/alternative; boundary="Boundary_(ID_2o/uIQsKupg/vPmj4UceCw)"
User-Agent Microsoft-Entourage/11.2.1.051004
Thread-Topic Grass 6.1: g.* commands returning a bus error
Thread-Index AcZCbg2uTBfVL65hEdqU7wAKlW/i4A==
X-Spam-Status No, hits=-4.8 tagged_above=-999.0 required=3.0 tests=BAYES_00, HTML_MESSAGE
X-Spam-Level
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_2o/uIQsKupg/vPmj4UceCw)
Content-type: text/plain;	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

G.copy, g.rename, and g.remove are returning =8CBus Error=B9 when run from the
command line.

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



--Boundary_(ID_2o/uIQsKupg/vPmj4UceCw)
Content-type: text/html;	charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Grass 6.1: g.* commands returning a bus error</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>G.cop=
y, g.rename, and g.remove are returning ‘Bus Error’ when run fro=
m the command line.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ 85287-2402<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href=3D"http://www.public.asu.edu/~cmbarton">http://www.public.asu.ed=
u/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>


--Boundary_(ID_2o/uIQsKupg/vPmj4UceCw)--


Thu, Mar 9 2006 13:46:24    Area changed to grass6 by msieczka (as #4152)  
Sun, Mar 12 2006 09:26:27    User notified by msieczka (as #4152)  
Sun, Mar 12 2006 09:29:36    Request 4152 merged into 3585 by msieczka (as #4152)  
Sun, Mar 26 2006 16:41:42    Mail sent by msieczka  
Hi,

This bug is supposed to be fixed according to 
http://grass.itc.it/pipermail/grassuser/2006-March/033208.html

Can you test and report back?

Maciek
Sun, Mar 26 2006 17:32:55    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 26 Mar 2006 08:31:03 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [bug #3585] (grass) bus error in general/manage modules
In-reply-to <20060326144142.034DF1006B0@lists.intevation.de>
To Paolo Cavallini via RT <grass-bugs@intevation.de>, kyngchaos@kyngchaos.com
Message-id <C04C01C7.91B8%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.3.060209
Thread-Topic [bug #3585] (grass) bus error in general/manage modules
Thread-Index AcZQ6kqNiSQ/S7zdEdql0AAKlW/i4A==
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
AFAICT this is solved.

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: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Reply-To: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Date: Sun, 26 Mar 2006 16:41:42 +0200 (CEST)
> To: <kyngchaos@kyngchaos.com>, <michael.barton@asu.edu>
> Subject: [bug #3585] (grass) bus error in general/manage modules
> 
> Hi,
> 
> 
> 
> This bug is supposed to be fixed according to
> 
> http://grass.itc.it/pipermail/grassuser/2006-March/033208.html
> 
> 
> 
> Can you test and report back?
> 
> 
> 
> Maciek
> 
> -------------------------------------------- Managed by Request Tracker


Sun, Mar 26 2006 23:48:05    Mail sent by kyngchaos@kyngchaos.com  
Return-Path <kyngchaos@kyngchaos.com>
Delivered-To grass-bugs@lists.intevation.de
In-Reply-To <20060326144142.034DF1006B0@lists.intevation.de>
References <20060326144142.034DF1006B0@lists.intevation.de>
Mime-Version 1.0 (Apple Message framework v746.3)
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <B8CC13C6-DF62-42D6-9355-91A0E8DB987F@kyngchaos.com>
Cc Maciek Sieczka <werchowyna@epf.pl>, Michael Barton <michael.barton@asu.edu>
Content-Transfer-Encoding 7bit
From William Kyngesburye <kyngchaos@kyngchaos.com>
Subject Re: [bug #3585] (grass) bus error in general/manage modules
Date Sun, 26 Mar 2006 15:47:57 -0600
To Maciek Sieczka via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.3)
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Not solved, just a work-around.  The problem is still there.

Just to get it into the bug record, and clarify, the workaround is:

1. Build and install GDAL mith minimal format support, but from what  
I found the key is to leave out Postgres.

2. Build and install GRASS based on this GDAL build.

at this point the GRASS commands work.

3. Rebuild and install GDAL with all format options desired,  
including Postgres.

GRASS commands continue to work with the new full GDAL.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an  
illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy


Mon, Mar 27 2006 01:46:19    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 26 Mar 2006 16:45:27 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [bug #3585] (grass) bus error in general/manage modules
In-reply-to <B8CC13C6-DF62-42D6-9355-91A0E8DB987F@kyngchaos.com>
To William Kyngesburye <kyngchaos@kyngchaos.com>, Paolo Cavallini via RT <grass-bugs@intevation.de>
Cc Maciek Sieczka <werchowyna@epf.pl>
Message-id <C04C75A7.91E2%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.3.060209
Thread-Topic [bug #3585] (grass) bus error in general/manage modules
Thread-Index AcZRL1usmkJhOL0iEdql0AAKlW/i4A==
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
So the bug is not really fixed?

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: William Kyngesburye <kyngchaos@kyngchaos.com>
> Date: Sun, 26 Mar 2006 15:47:57 -0600
> To: Maciek Sieczka via RT <grass-bugs@intevation.de>
> Cc: Maciek Sieczka <werchowyna@epf.pl>, Michael Barton
> <michael.barton@asu.edu>
> Subject: Re: [bug #3585] (grass) bus error in general/manage modules
> 
> Not solved, just a work-around.  The problem is still there.
> 
> Just to get it into the bug record, and clarify, the workaround is:
> 
> 1. Build and install GDAL mith minimal format support, but from what
> I found the key is to leave out Postgres.
> 
> 2. Build and install GRASS based on this GDAL build.
> 
> at this point the GRASS commands work.
> 
> 3. Rebuild and install GDAL with all format options desired,
> including Postgres.
> 
> GRASS commands continue to work with the new full GDAL.
> 
> -----
> William Kyngesburye <kyngchaos@kyngchaos.com>
> http://www.kyngchaos.com/
> 
> "History is an illusion caused by the passage of time, and time is an
> illusion caused by the passage of history."
> 
> - Hitchhiker's Guide to the Galaxy
> 


Sat, Nov 4 2006 18:30:44    Mail sent by mneteler  
Apparently the bug is fixed or problem solved.

Markus

https://intevation.de/rt/webrt?serial_num=3585
Sat, Nov 4 2006 18:30:46    Status changed to resolved by mneteler  
Sat, Nov 4 2006 18:48:54    Mail sent by kyngchaos@kyngchaos.com  
Return-Path <kyngchaos@kyngchaos.com>
Delivered-To grass-bugs@lists.intevation.de
In-Reply-To <20061104173044.24C97101F00@lists.intevation.de>
References <20061104173044.24C97101F00@lists.intevation.de>
Mime-Version 1.0 (Apple Message framework v752.3)
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <773D948C-33D9-4D7D-83D1-F99312D4815A@kyngchaos.com>
Cc Markus Neteler <neteler@itc.it>
Content-Transfer-Encoding 7bit
From William Kyngesburye <kyngchaos@kyngchaos.com>
Subject Re: [bug #3585] (grass) bus error in general/manage modules
Date Sat, 4 Nov 2006 11:48:41 -0600
To Markus Neteler via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.752.3)
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
I haven't tried it on Panther in a while.  I haven't built GDAL using  
the workaround in a while (totally forgot), so it should be simple to  
test on a current GRASS build on Panther.

So, while it's a workaround, it's not practical, and the true bug may  
still exist.


Sat, Nov 4 2006 18:48:54    Status changed to open by _rt_system  
Sat, Nov 4 2006 20:46:20    Mail sent by michael.barton@asu.edu  
Return-Path <michael.barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.5.060620
Date Sat, 04 Nov 2006 12:44:11 -0700
Subject Re: [bug #3585] (grass) bus error in general/manage modules
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>, William Kyngesburye <kyngchaos@kyngchaos.com>
Message-ID <C1723B9B.107A8%michael.barton@asu.edu>
Thread-Topic [bug #3585] (grass) bus error in general/manage modules
Thread-Index AccASZls2B20IGw8EduEoAAKlXAweg==
In-Reply-To <20061104173044.24C97101F00@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.752 tagged_above=-999 required=3 tests=[BAYES_00=-5, RCVD_NUMERIC_HELO=1.248]
X-Spam-Level
I know nothing about this. I, too, assume it's fixed because I'm using Mac
binaries with no problem.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

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



> From: Markus Neteler via RT <grass-bugs@intevation.de>
> Reply-To: Markus Neteler via RT <grass-bugs@intevation.de>
> Date: Sat,  4 Nov 2006 18:30:44 +0100 (CET)
> To: <kyngchaos@kyngchaos.com>, <michael.barton@asu.edu>
> Subject: [bug #3585] (grass) bus error in general/manage modules
> 
> Apparently the bug is fixed or problem solved.
> 
> 
> 
> Markus
> 
> 
> 
> https://intevation.de/rt/webrt?serial_num=3585
> 
> -------------------------------------------- Managed by Request Tracker


Wed, Nov 8 2006 23:56:37    Mail sent by kyngchaos@kyngchaos.com  
Return-Path <kyngchaos@kyngchaos.com>
Delivered-To grass-bugs@lists.intevation.de
In-Reply-To <20061104173044.24C97101F00@lists.intevation.de>
References <20061104173044.24C97101F00@lists.intevation.de>
Mime-Version 1.0 (Apple Message framework v752.3)
Content-Type text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id <16EEB0F1-5DF8-42FB-8261-FF53BC49C229@kyngchaos.com>
Cc Markus Neteler <neteler@itc.it>
Content-Transfer-Encoding 7bit
From William Kyngesburye <kyngchaos@kyngchaos.com>
Subject Re: [bug #3585] (grass) bus error in general/manage modules
Date Wed, 8 Nov 2006 16:56:08 -0600
To Markus Neteler via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.752.3)
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
I had a chance to test this on a Panther Mac.  My latest builds of  
the frameworks (I haven't used the workaround for building GDAL) and  
GRASS 6.2, looks like it's working.


Sun, Nov 26 2006 14:56:34    Status changed to resolved by mneteler  
Sun, Nov 26 2006 14:56:34    Mail sent by mneteler  
Great, closing it now.

Markus
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