Sat, Nov 10 2001
01:03:05
|
|
Request created by guest
|
|
Subject: v.make.subj segmentation fault
Platform: NetBSD/i386
Xwindows version: Xfree 3.3.6
Xwindows manager: Enlightment
TclTk version: tcl/tk 8.3
grass downloaded at: Baylor site
grass binary for platform: I compiled the sources myself
grass sources source: no, I got a source code package from the server, 5.0.0pre2
c compiler name: gcc
This is the output from v.make.subj when I try to run it on 4 vector layers.
GRASS:/u0 > v.make.subj map=83d065_tctr,83d066_tctr,83d075_tctr,83d076_tctr subj=SUBJ/tctr
Reading category file 83d065_tctr
Adding new categ. : 101
Reading category file 83d066_tctr
Reading category file 83d075_tctr
Reading category file 83d076_tctr
104
SUBJect category processing finished
104 categorie(s) added
Segmentation fault (core dumped)
Thanks,
Dave
|
|
Sat, Nov 10 2001
05:58:12
|
|
Comments added by guest
|
|
I've had v.subj seg fault as well. But, I'm not sure what the deal is with
this subject file thing. Seems to be only partially implemented and most
other GRASS code doesn't have any idea about it. Seems to be a "hack-around"
GRASS's poor attribute handling...
-- Eric G. Miller |
|
Sat, Nov 10 2001
13:16:43
|
|
Mail sent by neteler@itc.it
|
|
Return-Path |
<neteler@itc.it>
|
Delivered-To |
grass-bugs@mailman.intevation.de
|
Date |
Sat, 10 Nov 2001 13:16:38 +0100
|
From |
Markus Neteler <neteler@itc.it>
|
To |
grass5@grass.itc.it
|
Cc |
Request Tracker <grass-bugs@intevation.de>
|
Subject |
Re: [GRASS5] [bug #830] (grass) v.make.subj segmentation fault
|
Message-ID |
<20011110131638.A2275@itc.it>
|
Mail-Followup-To |
grass5@grass.itc.it, Request Tracker <grass-bugs@intevation.de>
|
References |
<20011110000305.89B2413A0E@mailman.intevation.de>
|
Mime-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Disposition |
inline
|
User-Agent |
Mutt/1.2.5i
|
In-Reply-To |
<20011110000305.89B2413A0E@mailman.intevation.de>; from grass-bugs@intevation.de on Sat, Nov 10, 2001 at 01:03:05AM +0100 |
On Sat, Nov 10, 2001 at 01:03:05AM +0100, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=830
> -------------------------------------------------------------------------
>
> Subject: v.make.subj segmentation fault
>
> Platform: NetBSD/i386
> Xwindows version: Xfree 3.3.6
> Xwindows manager: Enlightment
> TclTk version: tcl/tk 8.3
> grass downloaded at: Baylor site
> grass binary for platform: I compiled the sources myself
> grass sources source: no, I got a source code package from the server, 5.0.0pre2
> c compiler name: gcc
>
> This is the output from v.make.subj when I try to run it on 4 vector layers.
>
> GRASS:/u0 > v.make.subj map=83d065_tctr,83d066_tctr,83d075_tctr,83d076_tctr
subj=SUBJ/tctr
>
>
> Reading category file 83d065_tctr
> Adding new categ. : 101
> Reading category file 83d066_tctr
>
> Reading category file 83d075_tctr
>
> Reading category file 83d076_tctr
> 104
> SUBJect category processing finished
> 104 categorie(s) added
> Segmentation fault (core dumped)
>
> Thanks,
> Dave
The problem is here:
src.contrib/SCS/vector/v.make.subj/cmd/main.c
the qsort() line crashes for "cmd" (which is again a function).
No idea how to fix this... Anyone else?
Ciao
Markus
|
|
Sat, Nov 10 2001
14:38:49
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@mailman.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<15341.11620.485466.647194@cerise.nosuchdomain.co.uk>
|
Date |
Sat, 10 Nov 2001 13:36:36 +0000
|
To |
Markus Neteler <neteler@itc.it>
|
Cc |
grass5@grass.itc.it, Request Tracker <grass-bugs@intevation.de>
|
Subject |
Re: [GRASS5] [bug #830] (grass) v.make.subj segmentation fault
|
In-Reply-To |
<20011110131638.A2275@itc.it>
|
References |
<20011110000305.89B2413A0E@mailman.intevation.de> <20011110131638.A2275@itc.it>
|
X-Mailer |
VM 6.94 under 21.4 (patch 4) "Artificial Intelligence (candidate #1)" XEmacs Lucid |
Markus Neteler wrote:
> The problem is here:
> src.contrib/SCS/vector/v.make.subj/cmd/main.c
> the qsort() line crashes for "cmd" (which is again a function).
>
> No idea how to fix this... Anyone else?
The pointers need to be cast and dereferenced, i.e.
return strcmp(*(const char **) a, *(const char **) b);
I'll commit a fix.
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Fri, Nov 16 2001
17:15:13
|
|
Mail sent by mneteler
|
|
Since the bug is complex to fix and maybe a very few people
will use this module (why?), I have removed it from the
default compile list.
Sorry, we can't provide a fix currently.
Markus |
|
Fri, Nov 16 2001
17:15:19
|
|
Status changed to resolved by mneteler
|
|