[opensuse-packaging] Question related to analyzing failing checks
Dear all! I have the following lines in a spec: --------------- %check make %{?_smp_mflags} PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test && STAT=0 || STAT=$? for f in `ls tests/*.out`; do cat $f ; done exit $STAT --------------- The intention is to show me the contents of ".out" files in a directory to find the reasons for failing tests (which don't fail in my local environment). Unfortunately I get the following result: --------------- [ 472s] make: *** [Makefile:134: test] Error 1 [ 472s] + STAT=2 [ 472s] ++ ls tests/229_Tutorial_fxAnalyzeImage_case1.out tests/236_Imagick_identify_basic.out [ 472s] + for f in `ls tests/*.out` [ 472s] + cat tests/229_Tutorial_fxAnalyzeImage_case1.out [ 472s] ** ERROR: process timed out **+ for f in `ls tests/*.out` [ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer [ 472s] [ 472s] Termsig=6+ '[' 2 -ne 0 ']' [ 472s] + exit 2 [ 472s] error: Bad exit status from /var/tmp/rpm-tmp.fDnsLs (%check) --------------- Any idea what's wrong? For the reference: The project is https://build.opensuse.org/package/show/home:weberho:branches:server:php:ext... Best regards -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 05/07/2018 01:51 PM, Johannes Weberhofer wrote:
Dear all!
I have the following lines in a spec:
--------------- %check make %{?_smp_mflags} PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test && STAT=0 || STAT=$? for f in `ls tests/*.out`; do cat $f ; done exit $STAT ---------------
I'd personally use something like do-some thing \ || { echo "error: exit code: $?" grep . tests/*.out exit 1; } to avoid the loop and special-casing the good-case (STAT=0), but this is personal flavor. Your code should be okay.
The intention is to show me the contents of ".out" files in a directory to find the reasons for failing tests (which don't fail in my local environment). Unfortunately I get the following result:
--------------- [ 472s] make: *** [Makefile:134: test] Error 1 [ 472s] + STAT=2 [ 472s] ++ ls tests/229_Tutorial_fxAnalyzeImage_case1.out tests/236_Imagick_identify_basic.out [ 472s] + for f in `ls tests/*.out` [ 472s] + cat tests/229_Tutorial_fxAnalyzeImage_case1.out [ 472s] ** ERROR: process timed out **+ for f in `ls tests/*.out` ___________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This sounds as if this error would come from the actual test of the package, tests/229_Tutorial_fxAnalyzeImage_case1 Does it deal with timeouts?
[ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer [ 472s] [ 472s] Termsig=6+ '[' 2 -ne 0 ']' [ 472s] + exit 2 [ 472s] error: Bad exit status from /var/tmp/rpm-tmp.fDnsLs (%check) ---------------
Any idea what's wrong?
I don't see anything wrong - with the spec: a test failed, so the build also failed.
For the reference: The project is https://build.opensuse.org/package/show/home:weberho:branches:server:php:ext...
A 2-seconds timeout may be a bit too small on OBS ... PASS Test ImagickDraw, skewX [tests/228_ImagickDraw_skewX_basic.phpt] [ 246s] TEST 221/268 [tests/229_Tutorial_fxAnalyzeImage_case1.phpt] FAIL Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt] [ 248s] TEST 222/268 [tests/234_Tutorial_edgeExtend_basic.phpt] ... depending on the work to do.
Best regards
Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 07.05.2018 um 18:13 schrieb Bernhard Voelker:
This sounds as if this error would come from the actual test of the package, tests/229_Tutorial_fxAnalyzeImage_case1 Does it deal with timeouts?
[ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer [ 472s] [ 472s] Termsig=6+ '[' 2 -ne 0 ']' [ 472s] + exit 2 [ 472s] error: Bad exit status from /var/tmp/rpm-tmp.fDnsLs (%check) ---------------
Any idea what's wrong? I don't see anything wrong - with the spec: a test failed, so the build also failed.
Bernhard, thanks for having a look at this. For some reason I thought the "ERROR: process timed out **" cam from my for/next statment, didn't see it was the actual test result :-) This process takes a while, maybe just a little bit longer than two seconds. Do you know how to incluence this limit? Best regards! -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mai 07 2018, Johannes Weberhofer
for f in `ls tests/*.out`; do cat $f ; done
Useless use of command substitution.
[ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer
Looks like you've found a bug either in ImageMagick or in the PHP binding for it, that is causing memory corruption. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El 07-05-2018 a las 8:51, Johannes Weberhofer escribió:
Dear all!
I have the following lines in a spec:
--------------- %check make %{?_smp_mflags} PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test && STAT=0 || STAT=$? for f in `ls tests/*.out`; do cat $f ; done exit $STAT ---------------
The intention is to show me the contents of ".out" files in a directory to find the reasons for failing tests (which don't fail in my local environment). Unfortunately I get the following result:
--------------- [ 472s] make: *** [Makefile:134: test] Error 1 [ 472s] + STAT=2 [ 472s] ++ ls tests/229_Tutorial_fxAnalyzeImage_case1.out tests/236_Imagick_identify_basic.out [ 472s] + for f in `ls tests/*.out` [ 472s] + cat tests/229_Tutorial_fxAnalyzeImage_case1.out [ 472s] ** ERROR: process timed out **+ for f in `ls tests/*.out` [ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer
IN your local enviroment do you have installed the aaa_base-malloccheck or did you export MALLOC_CHECK_=3 export MALLOC_PERTURB_=69 before running tests ? As Andreas said..there is a bug somewhere, code is freeing pointer it is not supposed to. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 08.05.2018 um 14:59 schrieb Cristian Rodríguez:
[ 472s] make: *** [Makefile:134: test] Error 1 [ 472s] + STAT=2 [ 472s] ++ ls tests/229_Tutorial_fxAnalyzeImage_case1.out tests/236_Imagick_identify_basic.out [ 472s] + for f in `ls tests/*.out` [ 472s] + cat tests/229_Tutorial_fxAnalyzeImage_case1.out [ 472s] ** ERROR: process timed out **+ for f in `ls tests/*.out` [ 472s] + cat tests/236_Imagick_identify_basic.out [ 472s] free(): invalid pointer
IN your local enviroment do you have installed the aaa_base-malloccheck or did you
export MALLOC_CHECK_=3 export MALLOC_PERTURB_=69
before running tests ?
As Andreas said..there is a bug somewhere, code is freeing pointer it is not supposed to.
Locally I don't have this setting (otherwise Eclipse crashes all the time). I think it's an issue with ImageMagick as the current version in tumbleweed builds nicely. Shall I request an update for Leap 15? -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 05/08/2018 11:40 AM, Johannes Weberhofer wrote:
Do you know how to incluence this limit?
No, but test 229 also fails here when built locally on a oS:TW system: FAIL Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt] ... with the same error: ** ERROR: process timed out ** Have a nice day, Bern -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 08.05.2018 um 17:22 schrieb Bernhard Voelker:
No, but test 229 also fails here when built locally on a oS:TW system:
FAIL Test Tutorial, fxAnalyzeImage [tests/229_Tutorial_fxAnalyzeImage_case1.phpt]
... with the same error:
** ERROR: process timed out **
On my local Leap 15 test system I can build all types. TW succeesds on OBS, too. -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 05/08/2018 05:33 PM, Johannes Weberhofer wrote:
Am 08.05.2018 um 17:22 schrieb Bernhard Voelker:
No, but test 229 also fails here when built locally on a oS:TW system:
FWIW: That was a TW VM in VirtualBox with 3G memory and 2 CPUs visible on a Dell Notebook with Win 10 as host.
On my local Leap 15 test system I can build all types. TW succeesds on OBS, too.
I couldn't reproduce on my TW on metal (Optiplex 9020) either. Maybe you seek help upstream? I'm quite sure that other packagers have the same problem, spuriously ... and indeed - look at the Fedora friends: https://src.fedoraproject.org/rpms/php-pecl-imagick/blob/master/f/php-pecl-i... # Ignore know failed test on some ach (s390x, armv7hl, aarch64) with timeout rm tests/229_Tutorial_fxAnalyzeImage_case1.phpt ;-) Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 09.05.2018 um 08:13 schrieb Bernhard Voelker:
On 05/08/2018 05:33 PM, Johannes Weberhofer wrote:
Am 08.05.2018 um 17:22 schrieb Bernhard Voelker:
No, but test 229 also fails here when built locally on a oS:TW system:
FWIW: That was a TW VM in VirtualBox with 3G memory and 2 CPUs visible on a Dell Notebook with Win 10 as host.
On my local Leap 15 test system I can build all types. TW succeesds on OBS, too.
I couldn't reproduce on my TW on metal (Optiplex 9020) either. Maybe you seek help upstream? I'm quite sure that other packagers have the same problem, spuriously ... and indeed - look at the Fedora friends:
https://src.fedoraproject.org/rpms/php-pecl-imagick/blob/master/f/php-pecl-i...
# Ignore know failed test on some ach (s390x, armv7hl, aarch64) with timeout rm tests/229_Tutorial_fxAnalyzeImage_case1.phpt
;-)
Have a nice day, Berny
Thank's for having a look at it! I have excluded the test for the moment and created an upstream issue. -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Bernhard Voelker
-
Cristian Rodríguez
-
Johannes Weberhofer