[haiku-development] Re: [PATCH] libroot improvements

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 03 Mar 2009 10:23:15 +0100

Hi,

Artur Wyszynski schrieb:
Stephan Aßmus pisze:
Unfortunately, my "tests" didn't go so well. I am getting crashes in fputs() (flex) and app_server was crashing in vsprintf() (FontCacheEntry::GenerateSignature()). I changed the FontCacheEntry code to use snprintf() instead of sprintf(), just in case it would overwrite the buffer or something. But the flex crashes in fputs() remain. Didn't test long enough to see if the vsprintf() app_server crash is gone. Another thing I could reproduce is when resizing the Terminal window, the whole Terminal app would suddenly disappear. No crash report, no entry in Deskbar left, just spontaneous death.
Strange, app_server never crashed for me, but for Terminal, you were right :/ After reverting changes in Errors.h and adding only 4 defines from libc, all problems seems to vanish :)

fixed patch:
http://hitomi.pl/haiku/patches/libc_fixed.patch.7z
or if you have previous one, just delete Errors.h; svn up it and apply patch from here http://hitomi.pl/haiku/patches/Errors.patch :)

I was still getting the vsprintf() crashes, but I made the image with "jam update-all" (cleaned out the develop/headers folder before).

Anyways, the incompatibility with certain C programs is quite inconvenient. GCC for example doesn't run for me. Is that supposed to work, or may that be another side-effect of jam update-all?

Best regards,
-Stephan

Other related posts: