[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: osx test
From: |
Jason Stover |
Subject: |
Re: osx test |
Date: |
Sat, 10 May 2008 17:46:15 -0400 |
User-agent: |
Mutt/1.5.10i |
On Fri, May 09, 2008 at 11:00:46AM -0700, Ben Pfaff wrote:
> Jason Stover <address@hidden> 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