On Mips, returning from a signal handler crashes the application
Henner Sudek
henner.sudek at googlemail.com
Mon Apr 10 19:05:23 UTC 2006
Hello.
When using buildroot-svn and uClibc-snapshot I always get a SIGSEGV on Mips
when the programm stated below returns from the signal handler. I think this
may be related to bug 480, but this schould already be fixed.
Using root_fs_mipsel.ext2 the program is working fine if I use dynamic
linking, but using static linking I get a SIGSEGV.
Does anybody have an explanation for this.
#include <signal.h>
int run=1;
void sigHandler( int signal ) { run=0; return; }
int main(){
signal( SIGINT, sigHandler );
while(run){ sleep(1); }
return(0);
}
henner
--
%!
99 99 scale/x 2 -.01 -2{def/y 2 -.01 -2{def y x 1 -.01 0{setgray 2 copy 2 mul
mul y add 3 1 roll 2 exp exch 2 exp 2 copy add 4 gt{exit}if sub x add}for
clear x y 2 2 rectfill/y}for/x}for copypage
More information about the uClibc
mailing list