[Prev][Next][Index][Thread]

execute cause segmentation fault ?!



hello everyone:
  i compiled the oskit in linux, and copy all
liboskit*.a into a directory with oskit/*.h, then
compile the examples/hello.c into hello.o in normal,
then link with libs, every things seen ok, but when
execute the program ./a.out, it always cause the
Segmentation fault, and gdb a.out, it show:
 
Program received signal SIGSEGV, Segmentation fault.
base_critical_enter () at ../oskit/x86/proc_reg.h:158
158     OSKIT_INLINE void cli(void) { asm
volatile("cli" : : : "memory"); }

what`s the problem ?

_________________________________________________________
Do You Yahoo!? 
"款款高贵典雅,快来参加汽车调查"
http://cn.surveys.yahoo.com/gm_campaign_evaluation

Follow-Ups: