Menu

#267 printf() crash with %f on X86_64

x86_64-linux
closed-fixed
nobody
6
2011-03-03
2010-05-30
No

printf() with %f crashes on x86_64:

#include <stdio.h>

int main(void)
{
printf("float %f\n", 5.324);
return 0;
}

#0 0x0000000040134e72 in printf (format=0x4285e8 "H\213E\270H\211\205\360\376\377\377H\213\205\360\376\377\377\311\303UH\211\345H\201\354 \001") at /home/mazze/projects/aros-src/compiler/clib/printf.c:271
#1 0x00000000400afe6b in main () at float.c:12

(gdb) p args
$2 = {{gp_offset = 1073743208, fp_offset = 0, overflow_arg_area = 0x40000568, reg_save_area = 0x401589a8}}

Discussion

  • Matthias Rustler

    It works now.

     
  • Matthias Rustler

    • status: open --> closed-fixed
     

Log in to post a comment.