Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839822 - x11-base/xorg-server-21.1.3-r1 - ../.../picture.c: error: array subscript union _SourcePict[0] is partly outside array bounds of u
Summary: x11-base/xorg-server-21.1.3-r1 - ../.../picture.c: error: array subscript uni...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/x...
Whiteboard:
Keywords: PATCH
: 839912 (view as bug list)
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-04-21 07:40 UTC by Toralf Förster
Modified: 2022-04-21 18:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.42 KB, text/plain)
2022-04-21 07:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,18.08 KB, text/plain)
2022-04-21 07:40 UTC, Toralf Förster
Details
environment (environment,135.40 KB, text/plain)
2022-04-21 07:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,5.96 KB, application/x-bzip)
2022-04-21 07:40 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.64 KB, application/x-bzip)
2022-04-21 07:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.57 KB, application/x-bzip)
2022-04-21 07:40 UTC, Toralf Förster
Details
x11-base:xorg-server-21.1.3-r1:20220421-052232.log.bz2 (x11-base:xorg-server-21.1.3-r1:20220421-052232.log.bz2,11.16 KB, application/x-bzip)
2022-04-21 07:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-21 07:40:01 UTC
too long lines were shrinked:

[277/628] x86_64-pc-linux-gnu-gcc -Irender/liblibxserver_render.a.p -Irender -I../xorg-server-21.1.3/render -IXext -I../xorg-server-21.1.3/Xext -IXi -I../xorg-server-21.1.3/Xi -Icomposite -I../xorg-server-21.1.3/composite -Idamageext -I../xorg-server-21.1.3/damageext -Iexa -I../xorg-server-21.1.3/ex
FAILED: render/liblibxserver_render.a.p/picture.c.o 
x86_64-pc-linux-gnu-gcc -Irender/liblibxserver_render.a.p -Irender -I../xorg-server-21.1.3/render -IXext -I../xorg-server-21.1.3/Xext -IXi -I../xorg-server-21.1.3/Xi -Icomposite -I../xorg-server-21.1.3/composite -Idamageext -I../xorg-server-21.1.3/damageext -Iexa -I../xorg-server-21.1.3/exa -Ifb -I.
../xorg-server-21.1.3/render/picture.c: In function CreateSolidPicture’:
../xorg-server-21.1.3/render/picture.c:874:26: error: array subscript union _SourcePict[0]’ is partly outside array bounds of unsigned char[16]’ [-Werror=array-bounds]
  874 |     pPicture->pSourcePict->type = SourcePictTypeSolidFill;
      |                          ^~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4_test-20220420-221025

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1
 [2] x86_64-pc-linux-gnu-12.0.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Rust versions:
  [1]   rust-bin-1.60.0 *
php cli:

  HEAD of ::gentoo
commit ffa8be39addc9b9b1ad7cf159796d6159a8ef552
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Apr 21 03:38:45 2022 +0000

    2022-04-21 03:38:45 UTC

emerge -qpvO x11-base/xorg-server
[ebuild  N    ] x11-base/xorg-server-21.1.3-r1  USE="elogind test udev xorg xvfb -debug -minimal (-selinux) -suid -systemd -unwind -xcsecurity -xephyr -xnest"
Comment 1 Toralf Förster gentoo-dev 2022-04-21 07:40:02 UTC
Created attachment 772400 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-21 07:40:04 UTC
Created attachment 772403 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-04-21 07:40:05 UTC
Created attachment 772406 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-04-21 07:40:06 UTC
Created attachment 772409 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-04-21 07:40:07 UTC
Created attachment 772412 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-21 07:40:08 UTC
Created attachment 772415 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-04-21 07:40:09 UTC
Created attachment 772418 [details]
x11-base:xorg-server-21.1.3-r1:20220421-052232.log.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-21 16:32:46 UTC
*** Bug 839912 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-21 16:33:35 UTC
From duplicate bug:

(In reply to Sam James from comment #1)
> Patch at
> https://gitlab.freedesktop.org/xorg/xserver/-/commit/
> c6b0dcb82d4db07a2f32c09a8c09c85a5f57248e. It's an actual change rather than
> placating compiler so needs revbump I guess.
Comment 10 Larry the Git Cow gentoo-dev 2022-04-21 18:49:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d74dc715b01cd841ba931b9e3f3537eea50de6

commit 70d74dc715b01cd841ba931b9e3f3537eea50de6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-21 18:34:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-21 18:49:34 +0000

    x11-base/xorg-server: fix build with GCC 12
    
    Note that this isn't just a boring build-time fix as it changes
    the sizes needed for malloc, so revbump.
    
    Closes: https://bugs.gentoo.org/839822
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/xorg-server-21.1.3-gcc12.patch           |  84 +++++++++
 x11-base/xorg-server/xorg-server-21.1.3-r2.ebuild  | 189 +++++++++++++++++++++
 2 files changed, 273 insertions(+)