Source: qtwebsockets-opensource-src
Version: 5.15.13-2
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the qtwebsockets-opensource-src failed for loong64 in the Debian Package Auto-Building environment.
Run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault".
The error log is as follows,
```
make[3]: Entering directory '/<<PKGBUILDDIR>>/tests/auto/qml'
cd qmlwebsockets/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /<<PKGBUILDDIR>>/tests/auto/qml/qmlwebsockets/qmlwebsockets.pro 'QMAKE_CFLAGS_RELEASE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CFLAGS_DEBUG=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CXXFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' 'QMAKE_CXXFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: PREFIX=/usr QT_BUILD_PARTS+=tests ) && make -f Makefile check
make[4]: Entering directory '/<<PKGBUILDDIR>>/tests/auto/qml/qmlwebsockets'
/<<PKGBUILDDIR>>/tests/auto/qml/qmlwebsockets/target_wrapper.sh xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" ./tst_qmlwebsockets
Segmentation fault
make[4]: *** [Makefile:327: check] Error 139
......
```

The build log of qtwebsockets-opensource-src 5.15.13-2 can be found at https://buildd.debian.org/status/logs.php?pkg=qtwebsockets-opensource-src&arch=loong64. The qtwebsockets-opensource-src 5.15.12-1 (experimental)    was built successfully for loong64 in the Debian Package Auto-Building environment. Refer for other architectures, please add loong64 to the list of architectures that crash on test.
Please consider the patch I attached.
Your opinions are welcome.

Thanks,
Dandan Zhang

diff -Nru qtwebsockets-opensource-src-5.15.13/debian/changelog qtwebsockets-opensource-src-5.15.13/debian/changelog
--- qtwebsockets-opensource-src-5.15.13/debian/changelog	2024-05-21 15:54:24.000000000 +0000
+++ qtwebsockets-opensource-src-5.15.13/debian/changelog	2024-06-05 11:33:19.000000000 +0000
@@ -1,3 +1,11 @@
+qtwebsockets-opensource-src (5.15.13-2+loong64) unreleased; urgency=medium
+
+  * Run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault".
+  * Add loong64 to the list of architectures that crash on tests.
+  * Use nodoc option and modify d/rules.
+
+ -- Dandan Zhang <zhangdan...@loongson.cn>  Wed, 05 Jun 2024 19:33:19 +0800
+
 qtwebsockets-opensource-src (5.15.13-2) unstable; urgency=medium
 
   * Remove Timo and me form Uploaders.
diff -Nru qtwebsockets-opensource-src-5.15.13/debian/rules qtwebsockets-opensource-src-5.15.13/debian/rules
--- qtwebsockets-opensource-src-5.15.13/debian/rules	2024-05-21 15:54:24.000000000 +0000
+++ qtwebsockets-opensource-src-5.15.13/debian/rules	2024-06-05 11:31:52.000000000 +0000
@@ -22,7 +22,8 @@
 # mips64el: even if the code did not change from 5.11.2 (where it run fine) to
 # 5.11.3, a test is segfaulting. The issue might be somewhere else. Maybe bug #868745?
 # powerpc: see https://bugs.debian.org/1013169
-ifneq (,$(filter $(DEB_HOST_ARCH),mips64el powerpc))
+# loong64: run tests/auto/qml/qmlwebsockets, occurs "Segmentation fault"
+ifneq (,$(filter $(DEB_HOST_ARCH),mips64el powerpc loong64))
 	-LD_LIBRARY_PATH=$(CURDIR)/lib QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml \
 	TESTRUNNER='xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX"' \
 		dh_auto_test --max-parallel=1 -- -Ctests/auto

Reply via email to