linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Infinite loop with OOM while testing Sparse on Wine code
@ 2017-07-18 14:47 Michael Stefaniuc
  2017-07-18 15:11 ` Christopher Li
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Michael Stefaniuc @ 2017-07-18 14:47 UTC (permalink / raw)
  To: Sparse Mailing-list

Hello guys,

I thought I'll test the new sparse on the Wine source code, especially
as I remember to have gotten 1-2 of those famous "Crazy programmer" errors.

But I seem to get an infinite loop with a mem leak: 100% CPU with the
memory utilization increasing until this line triggers
sparse/allocate.c:105:                 die("out of memory");

I'm using sparse v0.5.1-rc4-8-g27f4502 which was the tip of spare-next
as of this morning.
Also this is for the 64bit Wine build as cgcc is not working as is for
the 32bit build.


make[1]: Entering directory '/j/wine/build/sparse64/dlls/user32/tests'
cgcc -c -o menu.o /home/michi/work/wine/dlls/user32/tests/menu.c -I. \
  -I/home/michi/work/wine/dlls/user32/tests -I../../../include
-I/home/michi/work/wine/include \
  -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement \
  -Wempty-body -Wignored-qualifiers -Wshift-overflow=2
-Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith
-Wlogical-op -gdwarf-2 \
  -gstrict-dwarf -g -O2
/home/michi/work/wine/include/winuser.h:1662:22: error: dubious one-bit
signed bitfield
/home/michi/work/wine/include/winuser.h:1663:19: error: dubious one-bit
signed bitfield
out of memory
Makefile:538: recipe for target 'menu.o' failed
make[1]: *** [menu.o] Error 1


To reproduce:
git clone git://source.winehq.org/git/wine.git
cd wine
./configure --enable-win64
make -j`getconf _NPROCESSORS_ONLN` CC=cgcc


Though I'm not sure that this qualifies as a blocker for the 0.5.1
release. The Wine code was pretty tough on sparse previously; it has
been years since I last tried. Crashes and mis-parses were normal back
then as Wine uses language features that are still unimplemented (wide
character string literals). But I do not remember to have encountered an
infinite loop with a mem leak.

thanks
bye
	michael

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-07-30 17:06 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 14:47 Infinite loop with OOM while testing Sparse on Wine code Michael Stefaniuc
2017-07-18 15:11 ` Christopher Li
2017-07-18 17:11 ` Christopher Li
2017-07-18 23:12 ` Christopher Li
2017-07-19  0:07   ` Christopher Li
2017-07-19 13:26     ` Christopher Li
2017-07-19 15:25       ` Christopher Li
2017-07-19 18:50         ` Michael Stefaniuc
2017-07-19 20:43       ` Luc Van Oostenryck
2017-07-19 21:16         ` Christopher Li
2017-07-20 22:44           ` Luc Van Oostenryck
2017-07-26 17:29             ` Christopher Li
2017-07-29 14:39       ` Luc Van Oostenryck
2017-07-29 20:05         ` Christopher Li
2017-07-29 23:38       ` Luc Van Oostenryck
2017-07-29 23:58         ` [PATCH] fix: try_to_simplify_bb eargerness part 2 Luc Van Oostenryck
2017-07-30 15:38           ` Christopher Li
2017-07-30 16:04             ` Luc Van Oostenryck
2017-07-30 17:06               ` Christopher Li
2017-07-30  0:01         ` Infinite loop with OOM while testing Sparse on Wine code Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).