Tue, Jul 4 2006
16:04:54
|
|
Request created by guest
|
|
Subject: r.sun crash on 64bit
Hi,
here again as bug report. r.sun crashes on 64bit CPUs:
It crashes in INPUT () at main.c:656
if (z[i][j] == UNDEFZ || o[i][j] == UNDEFZ || s[i][j] == UNDEFZ)
Here a Spearfish test script:
ELEV=elevation.dem
TMP=$$
SLOPE=$TMP.slope
ASP=$TMP.aspect
r.slope.aspect elevation.dem as=$TMP.aspect sl=$TMP.slope --o
r.mapcalc global_shadow.rad=0
DAY=055
r.sun -s elevin=elevation.dem aspin=$TMP.aspect slopein=$TMP.slope day=$DAY \
beam_rad=bs_rad.$DAY diff_rad=ds_rad.$DAY refl_rad=rs_rad.$DAY
(gdb) r -s elevin=elevation.dem aspin=10066.aspect slopein=10066.slope day=055
beam_rad=bs_rad.055 diff_rad=ds_rad.055 refl_rad=rs_rad.055
Starting program:
/nfsmnt/bartok0/ssi/neteler/software/cvsgrass61/dist.x86_64-unknown-linux-gnu/bin/r.sun
-s elevin=elevation.dem aspin=10066.aspect slopein=10066.slope day=055
beam_rad=bs_rad.055 diff_rad=ds_rad.055 refl_rad=rs_rad.055
[Thread debugging using libthread_db enabled]
[New Thread 182917699168 (LWP 10170)]
Mode 2: integrated daily irradiation for a given day of the year
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182917699168 (LWP 10170)]
0x00000000004051b8 in INPUT () at main.c:656
656 if (z[i][j] == UNDEFZ || o[i][j] == UNDEFZ || s[i][j]
== UNDEFZ)
(gdb) bt
#0 0x00000000004051b8 in INPUT () at main.c:656
#1 0x0000000000403fb2 in main (argc=9, argv=0x7fbfffef88) at main.c:440
(gdb) bt full
#0 0x00000000004051b8 in INPUT () at main.c:656
cell1 = (FCELL *) 0x515690
cell2 = (FCELL *) 0x517450
cell3 = (FCELL *) 0x519210
cell4 = (FCELL *) 0xffffffffffffffff
cell5 = (FCELL *) 0x409b56
cell6 = (FCELL *) 0x2
rast1 = (FCELL *) 0x3be530a502
rast2 = (FCELL *) 0x2a95ffbee0
fd1 = 8
fd2 = 9
fd3 = 10
fd4 = -1073746048
fd5 = 0
fd6 = 0
row = 1398
row_rev = 0
fr1 = 59
fr2 = -449796550
l = 1398
i = 700
j = 0
#1 0x0000000000403fb2 in main (argc=9, argv=0x7fbfffef88) at main.c:440
module = (struct GModule *) 0x2a95ffbfc0
parm = {elevin = 0x2a95ffbf20, aspin = 0x5107b0, slopein = 0x5116d0,
linkein = 0x511770,
lin = 0x511810, albedo = 0x5118b0, alb = 0x511950, latin = 0x511ad0, lat =
0x511b70,
coefbh = 0x511c10, coefdh = 0x511cb0, incidout = 0x511d50, beam_rad = 0x511df0,
insol_time = 0x511eb0, diff_rad = 0x511f70, refl_rad = 0x512030, day =
0x5120f0, step = 0x5121b0,
declin = 0x512270, ltime = 0x512330}
flag = {shade = 0x2a95ffbee0}
(gdb)
Markus |
|
Tue, Jul 4 2006
22:02:30
|
|
Mail sent by glynn@gclements.plus.com
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<17578.51539.162675.165106@cerise.gclements.plus.com>
|
Date |
Tue, 4 Jul 2006 21:02:27 +0100
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass-dev@grass.itc.it
|
Subject |
Re: [GRASS-dev] [bug #4786] (grass) r.sun crash on 64bit
|
In-Reply-To |
<20060704140454.05BE11005CA@lists.intevation.de>
|
References |
<20060704140454.05BE11005CA@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.273 tagged_above=-999 required=4 tests=[AWL=1.461, BAYES_00=-5, FORGED_RCVD_HELO=0.266]
|
X-Spam-Level |
|
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4786
> -------------------------------------------------------------------------
>
> Subject: r.sun crash on 64bit
I've committed a fix for this (untested, as I don't have a 64-bit
system to test).
--
Glynn Clements <glynn@gclements.plus.com>
|
|
Wed, Jul 5 2006
11:43:06
|
|
Mail sent by neteler@itc.it
|
|
Return-Path |
<neteler@itc.it>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 5 Jul 2006 11:43:03 +0200
|
From |
Markus Neteler <neteler@itc.it>
|
To |
Glynn Clements via RT <grass-bugs@intevation.de>
|
Cc |
GRASS developers list <grass-dev@grass.itc.it>
|
Subject |
Re: [bug #4786] (grass) r.sun crash on 64bit
|
Message-ID |
<20060705094303.GC2923@bartok.itc.it>
|
Mail-Followup-To |
Glynn Clements via RT <grass-bugs@intevation.de>, GRASS developers list <grass-dev@grass.itc.it>
|
References |
<20060704200230.199DB1006A9@lists.intevation.de>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Disposition |
inline
|
In-Reply-To |
<20060704200230.199DB1006A9@lists.intevation.de>
|
X-PGP-Key |
http://www.gdf-hannover.de/neteler/markus_gpgkey.asc
|
X-PGP-Fingerprint |
D4D5 2F80 120E AD60 E2F6 2297 21B3 D02B E1E7 E789
|
User-Agent |
Mutt/1.5.11
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.399 tagged_above=-999 required=4 tests=[AWL=1.335, BAYES_00=-5, FORGED_RCVD_HELO=0.266]
|
X-Spam-Level |
|
On Tue, Jul 04, 2006 at 10:02:30PM +0200, Glynn Clements via RT wrote:
>
> Request Tracker wrote:
>
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4786
> > -------------------------------------------------------------------------
> >
> > Subject: r.sun crash on 64bit
>
> I've committed a fix for this (untested, as I don't have a 64-bit
> system to test).
Glynn,
excellent. Now r.sun works on 64bit.
thanks
Markus
|
|
Wed, Jul 5 2006
11:43:16
|
|
Status changed to resolved by mneteler
|
|