[PATCH spice-server] ci: Fix compiling of some functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Address sanitizer use a larger stack than normal compiled programs
making the build fails. This causes this error on GitLab CI system:

stream-device.c: In function 'stream_device_partial_read':
stream-device.c:182:1: error: the frame size of 32992 bytes is larger than 20460 bytes [-Werror=frame-larger-than=]

Allow larger stack on "makecheck" to avoid this issue.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

You can see a failure at https://gitlab.com/spice/spice/-/jobs/56405770,
success at https://gitlab.com/freddy77/spice/-/jobs/56407891.

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 32a7401b..94325604 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ before_script:
 makecheck:
   script:
   - >
-    CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer'
+    CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer -Wframe-larger-than=40920'
     LDFLAGS='-fsanitize=address -lasan'
     ./autogen.sh
   - make
-- 
2.14.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]