use fputws_unlocked
Peter Mazinger
ps.m at gmx.net
Wed May 25 13:44:00 UTC 2011
> On Tue, May 24, 2011 at 02:34:01PM +0200, MirkoVogt wrote:
> > Hello,
> >
> > while working with libuClibc-0.9.30.1.so I came along freezes in stdio
> > which led to stack dumps as follows:
>
> Are you claiming the freeze always happens, or only under certain
> circumstances?
>
> > While browsing through the code I found the following:
> >
> >
> erdgeist at ubuntu:~/base-wrt.git/branches/backfire/build_dir/toolchain-arm_v5te_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/uClibc-0.9.30.1/libc/stdio$
> > grep OUTPUT _vfprintf.c
> >
> > 1215:#define OUTPUT(F,S) fputs_unlocked(S,F)
> > 1248:#define OUTPUT(F,S) fputws(S,F)
> >
> > So the second macro should read fputws_unlocked, too. I've verified
> > that the freezes don't appear anymore after applying the following
> > simple patch: http://pastebin.com/MiC6X0VX
I would vote for the buggy locking implementation in uClibc_mutex.h
Peter
> The locks are supposed to be recursive, so this should not cause
> deadlock. Are you sure you haven't corrupted the FILE object?
>
> Rich
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
--
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
More information about the uClibc
mailing list