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

Bug#1016128: RM: edfbrowser [s390x] -- ROM; upstream only supports little endian



Package: ftp.debian.org
Severity: normal

Hi ftpmaster,

I recently added a superficial autopkgtest to make sure there
were no obvious issues in edfbrowser.  It turned out that the
package is not working on s390x and other architectures which
are not little endian due to a runtime check at the beginning
of the program:

	  /* check endianness! */
	  byte_order_test_var.one = 0x03020100;
	  if((byte_order_test_var.four[0] != 0) ||
	     (byte_order_test_var.four[1] != 1) ||
	     (byte_order_test_var.four[2] != 2) ||
	     (byte_order_test_var.four[3] != 3))
	  {
	    fprintf(stderr, "Wrong compiler or platform!\n");
	    return EXIT_FAILURE;
	  }

Here below is an excerpt of the autopkgtest log for s390x[1]:

	autopkgtest [14:38:45]: test run-unit-test: [-----------------------
	xvfb-run --auto-servernum \
		"/usr/bin/$bin" 2>&1 \
		| tee --append test.log &
	sleep 10
	Wrong compiler or platform!
	check_n_cleanup
	error: edfbrowser crashed before the end of the test
	autopkgtest [14:38:56]: test run-unit-test: -----------------------]

When I tried to shunt the runtime check, then the program
crashed on s390x with the XCB error below:

	autopkgtest [23:48:55]: test run-unit-test: [-----------------------
	xvfb-run --auto-servernum \
		"/usr/bin/$bin" 2>&1 \
		| tee --append test.log &
	sleep 10
	QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-emollier'
	qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 196, resource id: 18, major code: 131 (Unknown), minor code: 46
	check_n_cleanup
	autopkgtest [23:49:07]: test run-unit-test: -----------------------]

If I check on another uncommon architecture, such as riscv64,
then the test just shows the red herring with QStandardPaths:

	autopkgtest [00:57:01]: test run-unit-test: [-----------------------
	xvfb-run --auto-servernum \
		"/usr/bin/$bin" 2>&1 \
		| tee --append test.log &
	sleep 10
	QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-emollier'
	check_n_cleanup
	autopkgtest [00:57:12]: test run-unit-test: -----------------------]

Please remove edfbrowser from s390x, as it is only supported and
working properly on little endian architectures.

[1]: https://ci.debian.net/data/autopkgtest/testing/s390x/e/edfbrowser/23832751/log.gz

Have a nice day,  :)
-- 
Étienne Mollier <emollier@emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
On air: Kamelot - Ghost Opera

Attachment: signature.asc
Description: PGP signature


Reply to: