Re: [gembud] [Gempak] GEMPAK 5.11.4 Centos 5.5 i386 Segmentation Fault

  • To: Andrew Little <alittle@xxxxxxxxxxxx>
  • Subject: Re: [gembud] [Gempak] GEMPAK 5.11.4 Centos 5.5 i386 Segmentation Fault
  • From: Harry Edmon <harry@xxxxxx>
  • Date: Fri, 13 Aug 2010 08:58:38 -0700
I had the same problem. I found a bug in radar_grid.c. I sent the following patch into Unidata July 15 - give it a try:

*** radar_grid.c.dst    Tue Feb 16 15:50:54 2010
--- radar_grid.c        Wed Jul 14 12:58:01 2010
***************
*** 238,246 ****
ystart = (int)YB; ystop = (int)YT;
/*printf("look xstart %d xstop %d ystart %d ystop %d\n",xstart,xstop,ystart,ystop);*/

! if(((xstop - xstart)*(ystop - ystart)) > xcsiz)
   {
!    xcsiz = (xstop - xstart)*(ystop - ystart);
printf("increasing MAXNEX to %d [%d %d %d %d]\n",xcsiz,xstop,xstart,ystop,ystart);
   xin = (float *)realloc(xin, xcsiz*sizeof(float));
   xout = (float *)realloc(xout, xcsiz*sizeof(float));
--- 238,246 ----
ystart = (int)YB; ystop = (int)YT;
/*printf("look xstart %d xstop %d ystart %d ystop %d\n",xstart,xstop,ystart,ystop);*/

! if(((xstop - xstart + 1)*(ystop - ystart + 1)) > xcsiz)
   {
!    xcsiz = (xstop - xstart + 1)*(ystop - ystart + 1);
printf("increasing MAXNEX to %d [%d %d %d %d]\n",xcsiz,xstop,xstart,ystop,ystart);
   xin = (float *)realloc(xin, xcsiz*sizeof(float));
   xout = (float *)realloc(xout, xcsiz*sizeof(float));

--
Dr. Harry Edmon                 E-MAIL: harry@xxxxxx
206-543-0547 FAX: 206-543-0308                  harry@xxxxxxxxxxxxxxxxxxxx
Director of IT, College of the Environment and
Director of Computing, Dept of Atmospheric Sciences
University of Washington, Box 351640, Seattle, WA 98195-1640



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the gembud archives: