gen_wctype segfaults with gcc 4

Mike Frysinger vapier at gentoo.org
Mon Jun 26 20:25:54 UTC 2006


On Friday 09 December 2005 11:20, Michael Troß wrote:
> Michael Troß wrote:
> > Hi list,
> >
> > gen_wctype segfaults on my system when optimized with -O2. It does work
> > without optimization, even -O1 does not cause the segfault.
> >
> > Problem is in newopt, at gen_wctype.c:865,
> >    memcpy(tbl->ti + i * blocksize, ti[uniqblock[i]], blocksize);
>
> The segfault is caused by the uninitialized variable uniqblock when
> newopt is called recursively. The attached patch fixes this.
> Filling uniqblock with 0's should be the right initialization. At least
> the generated file is equal.
>
> Can someone else reproduce this error?

a (late) thanks, merged into svn
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060626/62eb83f4/attachment-0002.pgp 


More information about the uClibc mailing list