Factor crash at line image.c:27, fread returns -1 but at the line 29 ferror
returns 0. The image file seems to be ok.  It can be an error of my machine
because the factor binaries of the web returns a 'Memory protection fault at
address 0'. Any ideas?

     16 INLINE void load_data_heap(FILE *file, F_HEADER *h, F_PARAMETERS *p)
     17 {
     18         CELL good_size = h->data_size + (1 << 20);
     19
     20         if(good_size > p->aging_size)
     21                 p->aging_size = good_size;
     22
     23
init_data_heap(p->gen_count,p->young_size,p->aging_size,p->secure_gc);
     24
     25         F_ZONE *tenured = &data_heap->generations[TENURED];
     26
     27         if(fread((void*)tenured->start,h->data_size,1,file) != 1)
     28         {
     29                 printf("ferror %d\n", ferror(file));
     30                 fatal_error("load_code_heap failed",0);
     31         }
     32
     33         tenured->here = tenured->start + h->data_size;
     34         data_relocation_base = h->data_relocation_base;
     35 }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to