For the failure in secmemtst, it appears that secure memory is not
enabled per this code in ./crypto/mem_sec.c
23 /* e_os.h includes unistd.h, which defines _POSIX_VERSION */
24 #if !defined(OPENSSL_NO_SECURE_MEMORY) && defined(OPENSSL_SYS_UNIX) \
25 && defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
26 # define IMPLEMENTED
27 # include <stdlib.h>
28 # include <assert.h>
29 # include <unistd.h>
30 # include <sys/types.h>
31 # include <sys/mman.h>
32 # if defined(OPENSSL_SYS_LINUX)
33 # include <sys/syscall.h>
34 # include <linux/mman.h>
35 # include <errno.h>
36 # endif
37 # include <sys/param.h>
38 # include <sys/stat.h>
39 # include <fcntl.h>
40 #endif
Solaris has this in sys/unistd.h
#ifndef _POSIX_VERSION
#ifdef _XPG6
#define _POSIX_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */
#else
#define _POSIX_VERSION 199506L /* Supports POSIX-1c DIS */
#endif
#endif /* _POSIX_VERSION */
I'm building with the native Oracle Solaris compiler which apparently
does not define these macros.
Nornm
On 2/19/2018 1:20 PM, Norm Green wrote:
The output is not too long.
/export/localnew/sparc.Solaris/bin/gmake depend &&
/export/localnew/sparc.Solaris/bin/gmake _tests
gmake[1]: Entering directory
'/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1'
gmake[1]: Leaving directory
'/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1'
gmake[1]: Entering directory
'/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1'
( cd test; \
mkdir -p test-runs; \
SRCTOP=../. \
BLDTOP=../. \
RESULT_D=test-runs \
PERL="/opt/perl-5.24.0/bin/perl" \
EXE_EXT= \
OPENSSL_ENGINES=`cd .././engines; pwd` \
OPENSSL_DEBUG_MEMORY=on \
/opt/perl-5.24.0/bin/perl .././test/run_tests.pl test_asn1_encode
test_secmem )
../test/recipes/04-test_asn1_encode.t ..
1..1
# Subtest: ../../test/asn1_encode_test
1..6
ok 1 - test_long_32bit
# ASN1_LONG_DATA:
# success: TRUE
../../util/shlib_wrap.sh ../../test/asn1_encode_test => 138
not ok 1 - running asn1_encode_test
# Failed test 'running asn1_encode_test'
# at
/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1/test/../util/perl/OpenSSL/Test/Simple.pm
line 77.
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
../test/recipes/90-test_secmem.t .......
1..1
# Subtest: ../../test/secmemtest
1..1
# ERROR: (bool) 'CRYPTO_secure_malloc_init(4096, 32) == true'
failed @ test/secmemtest.c:28
# false
not ok 1 - test_sec_mem
../../util/shlib_wrap.sh ../../test/secmemtest => 1
not ok 1 - running secmemtest
# Failed test 'running secmemtest'
# at
/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1/test/../util/perl/OpenSSL/Test/Simple.pm
line 77.
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Test Summary Report
-------------------
../test/recipes/04-test_asn1_encode.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
../test/recipes/90-test_secmem.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=2, Tests=2, 2 wallclock secs ( 0.04 usr 0.01 sys + 0.38 cusr
0.16 csys = 0.59 CPU)
Result: FAIL
Makefile:169: recipe for target '_tests' failed
gmake[1]: *** [_tests] Error 1
gmake[1]: Leaving directory
'/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1'
Makefile:167: recipe for target 'tests' failed
gmake: *** [tests] Error 2
slow test failed
On 2/19/2018 12:50 PM, Benjamin Kaduk wrote:
On 02/19/2018 02:06 PM, Norm Green wrote:
Not sure if this is expected on this platform?
Test Summary Report
-------------------
../test/recipes/04-test_asn1_encode.t (Wstat: 256 Tests: 1
Failed: 1)
Failed test: 1
Non-zero exit status: 1
../test/recipes/90-test_secmem.t (Wstat: 256 Tests: 1
Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=141, Tests=1313, 370 wallclock secs ( 3.42 usr 0.94 sys +
266.48 cusr 40.30 csys = 311.14 CPU)
Result: FAIL
Makefile:169: recipe for target '_tests' failed
I do not think it is expected. Could you capture the output of 'make
V=1 TESTS="test_asn1_encode test_secmem"' and make it available?
(Probably via posting it on the web and linking; the output may be
long.)
-Ben
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users