seg faults! help!

Hi,
I am trying to do some texture mapping in OpenGL, and I think something is wrong with my libraries possibly. Btw, I am developing in linux as you can see. When trying to run my program, I get:

Loading required GL library /usr/X11R6/lib/libGL.so.1.2.030300
Segmentation fault

when I gdb (no core for some reason), I get:
Loading required GL library /usr/X11R6/lib/libGL.so.1.2.030300
Program received signal SIGSEGV, Segmentation fault.
0x22514f in memcpy () from /lib/libc.so.6

Anyone have any ideas on what this could be?
Thanks,
John