[so] [Tema3][Linux] faild test

Catalin catalin.me at gmail.com
Sat May 9 13:36:00 EEST 2009


alexandrujuncu at gmail.com wrote:
>> Ai incercat gdb , strace :)?
>> Pune tema pe site.
>>     
>
> da...
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08048fe0 in read_write (page_id=0, expected=1, offset=2632) at test.c:160
> 160             mval = * (int *) ((char *) start + page_id * p_sz + offset);
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>   
Probabil primesti SIG_MAPPER. Programul tau cicleaza deoarece functia 
"segv_handler" din test.c nu te lasa sa primesti decat SIG_ACCER.  Poti 
verifica foarte usor daca asa e punand un printf in functia "segv_handler"

Numai bine,

Catalin Moraru


More information about the so mailing list