[GRASS5] Re: NVIZ + CELL map + gcc >=3.2.2 = SegFault

Hamish hamish_nospam at yahoo.com
Tue Sep 16 03:32:22 EDT 2003


Bug #2:



> > Turns out the raster I was testing NVIZ out with is a CELL map.
> > Tried to run nviz on an integer based raster on a RedHat install &
> > it gave the same SegFault.
> > So NVIZ doesn't like integer based maps.
> > ...
> > building color table
> > child killed: segmentation violation
> > ...
> 
> Hamish I have been using nviz with CELL maps with no problems (e.g.
> figs 5.1b,6.8a,7.2a in the book) and I tried it with the recent nviz
> version from CVS right now and it runs OK too.


On Debian/testing(sarge), 5.0.3rc3:

- If I compile with gcc-2.95 (and the -lpthread fix) it works.

- If I compile with gcc-2.95 (without -lpthread) it gets past the point
of the SegFault, but hangs after "Adding panels". [same as gcc-3.3
without the -lpthread fix]

- If I compile with gcc-3.2.2 on Redhat 9 it SegFaults after "building
color table".

- If I compile with gcc-3.3 (with or without the -lpthread fix) it
SegFaults after "building color table".


I've got gcc-3.0 and gcc-3.2.3 installed too, so I'll see if I can
narrow down that end some more.


might newer gcc's not like ""?
   map = G_find_file2 ("cell", filename, "");
[src/libes/ogsf/Gs3.c   Gs_build_256lookup()]



Hamish
(lots of recompiling today!)




More information about the grass-dev mailing list