[haiku-bugs] Re: [Haiku] #6417: __printf_fphex crashes in haiku

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Sun, 01 Aug 2010 13:19:25 -0000

#6417: __printf_fphex crashes in haiku
--------------------------------+-------------------------------------------
  Reporter:  MrSunshine         |         Owner:  axeld         
      Type:  bug                |        Status:  new           
  Priority:  normal             |     Milestone:  R1            
 Component:  System/libroot.so  |       Version:  R1/Development
Resolution:                     |      Keywords:                
Blocked By:                     |   Has a Patch:  0             
  Platform:  All                |      Blocking:                
--------------------------------+-------------------------------------------
Description changed by mmadia:

Old description:

> Been trying to compile Tango using LDC D compiler, and it crashed so
> started investigating, this test crashes on haiku but not on linux:
>
> /* vfprintf example */
> #include <stdio.h>
> #include <stdarg.h>
>
> void WriteFormatted (FILE * stream, char * format, ...)
> {
>   va_list args;
>   va_start (args, format);
>   vfprintf (stream, format, args);
>   va_end (args);
> }
>
> int main ()
> {
>    FILE * pFile;
>
>    pFile = fopen ("myfile.txt","w");
>
>    WriteFormatted (pFile,"Call with %x variable %s.\n",2.0f,"arguments");
>
>    fclose (pFile);
>
>    return 0;
> }

New description:

 Been trying to compile Tango using LDC D compiler, and it crashed so
 started investigating, this test crashes on haiku but not on linux:
 {{{
 /* vfprintf example */
 #include <stdio.h>
 #include <stdarg.h>

 void WriteFormatted (FILE * stream, char * format, ...)
 {
   va_list args;
   va_start (args, format);
   vfprintf (stream, format, args);
   va_end (args);
 }

 int main ()
 {
    FILE * pFile;

    pFile = fopen ("myfile.txt","w");

    WriteFormatted (pFile,"Call with %x variable %s.\n",2.0f,"arguments");

    fclose (pFile);

    return 0;
 }

 }}}

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6417#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: