On Fri, May 09, 2008 at 11:00:46AM -0700, Ben Pfaff wrote:
> Jason Stover <[EMAIL PROTECTED]> writes:
> 
> > The trouble seems to be here:
> >
> > void
> > terminal_init (int **view_width_p, int **view_length_p)
> > {
> >   printf ("%x\t%x\n", view_width_p, view_length_p)
> >   *view_width_p = &view_width;
> >   *view_length_p = &view_length;
> >   terminal_check_size ();
> > }
> >
> > It shows view_width_p has address 0xfffffff0, and view_length_p
> > has address 0xffffffec. 
> 
> This smells like a compiler bug.  Do you get the same behavior if
> you compile main.c and terminal.c without any optimization
> (dropping -O or -O2 from the compiler command line)?

I removed the optimizations and it still segfaults in the same
place.

The machine runs gcc 4.0.0.

-Jason


_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to