[Buildroot] xserver_xorg-server-1.15.1 crash on RaspberryPi when compiled with gcc-4.9

Peter Seiderer ps.report at gmx.net
Tue Jul 8 19:07:09 UTC 2014


Hello Thomas,

On Tue, Jul 08, 2014 at 12:02:07AM +0200, Thomas Petazzoni wrote:
> Dear Peter Seiderer,
> 
> On Sat, 7 Jun 2014 23:58:58 +0200, Peter Seiderer wrote:
> 
> > running xserver (driver fbdev) on RaspberryPi crashes when compiled with gcc-4.9 (-Os).
> > 
> > Steps to reproduce (with buildroot-2014.05 release and additonal dillo package):
> 
> > Program received signal SIGSEGV, Segmentation fault.
> > fbGlyphs (op=<optimized out>, pSrc=0x1, pDst=0x4, maskFormat=0x3b9d90, xSrc=0, ySrc=0, nlist=6, list=0xbefff490, glyphs=0x1)
> >     at fbpict.c:140
> > 140                 glyph = *glyphs++;
> > (gdb) p glyphs
> > $1 = (GlyphPtr *) 0x1
> 
> Thanks for the report. I wanted to let you know that I'm also seeing
> the issue here, while testing the gtk-demo application under Xfbdev on
> Qemu/ARM. I am also building with a gcc 4.9.x based toolchain, the
> Linaro 14.05 toolchain. I haven't tested yet to rebuild with gcc 4.8.x
> to see the difference.
> 
> Have you investigated the problem a bit more? Does it look like a
> compiler issue?

I tried to reduce the failing function or produce a stand alone testcase, but failed to do so...

I think there is nothing special (or wrong) in the fbGlyps function (and compiles bugfree with many compilers/architectures), so I think this hints to consider a compiler bug..., but wanted a second
opinion before reporting as a gcc bug...

Regards,
Peter

> 
> Thanks,
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com


More information about the buildroot mailing list