nh2 / static-haskell-nix

easily build most Haskell programs into fully static Linux executables
388 stars 36 forks source link

Building stack project fails with p11-kit #86

Closed GregorySchwartz closed 3 years ago

GregorySchwartz commented 4 years ago

When running $(nix-build --no-link -A fullBuildScript). May be an issue upstream.

=======================================                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
   p11-kit 0.23.18: ./test-suite.log                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
=======================================                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

# TOTAL: 756                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
# PASS:  753                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
# SKIP:  0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
# XFAIL: 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
# FAIL:  1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
# XPASS: 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
# ERROR: 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

.. contents:: :depth: 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

ERROR: test-compat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
==================                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

Assertion failed: false && "this code should not be reached" (common/test.c: p11_test_copy_setgid: 614)                                                                                                                                                                                                                                                                                                                                                                                                    
1..4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
./build/litter/tap-driver.sh: line 639:  8238 Aborted                 (core dumped) "$@"                                                                                                                                                                                                                                                                                                                                                                                                                   
ok 1 /compat/strndup                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
PASS: test-compat 1 /compat/strndup                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
ERROR: test-compat - too few tests run (expected 4, got 1)
nh2 commented 4 years ago

Could you paste the full final output in which nix prints which exact package -- and more importantly, via which dependencies -- fails?

Also, is it an open-source project? If yes, could you make available a branch from which this can be easily reproduced? This would help digging into it.

May be an issue upstream.

Yes, most likely.

GregorySchwartz commented 4 years ago

I'm trying to build an executable using Nix for https://github.com/GregorySchwartz/too-many-cells to avoid people building it or using Docker.

GregorySchwartz commented 4 years ago

Here's the tail end of the output:

  CCLD     p11-kit/p11-kit-remote-testable
  CCLD     p11-kit/p11-kit-server-testable
  CCLD     p11-kit/print-messages
  CCLD     p11-kit/frob-setuid
make[3]: Leaving directory '/build/source'
make  check-TESTS
make[3]: Entering directory '/build/source'
make[4]: Entering directory '/build/source'
PASS: test-tests 1 /test/success
PASS: test-constants 1 /constants/types
PASS: test-constants 2 /constants/classes
PASS: test-constants 3 /constants/trusts
PASS: test-constants 4 /constants/certs
PASS: test-constants 5 /constants/keys
PASS: test-constants 6 /constants/asserts
PASS: test-constants 7 /constants/categories
PASS: test-constants 8 /constants/mechanisms
PASS: test-constants 9 /constants/users
PASS: test-constants 10 /constants/states
PASS: test-constants 11 /constants/returns
PASS: test-hash 1 /hash/murmur3
PASS: test-hash 2 /hash/murmur3-incr
PASS: test-buffer 1 /buffer/init-uninit
PASS: test-buffer 2 /buffer/init-for-data
PASS: test-buffer 3 /buffer/append
PASS: test-buffer 4 /buffer/null
PASS: test-buffer 5 /buffer/add
PASS: test-buffer 6 /buffer/steal
PASS: test-attrs 1 /attrs/equal
PASS: test-attrs 2 /attrs/hash
PASS: test-attrs 3 /attrs/to-string
PASS: test-attrs 4 /attrs/terminator
PASS: test-attrs 5 /attrs/count
PASS: test-attrs 6 /attrs/build-one
PASS: test-attrs 7 /attrs/build-two
PASS: test-attrs 8 /attrs/build-invalid
PASS: test-attrs 9 /attrs/buildn-one
PASS: test-attrs 10 /attrs/buildn-two
PASS: test-attrs 11 /attrs/build-add
PASS: test-attrs 12 /attrs/build-null
PASS: test-attrs 13 /attrs/dup
PASS: test-attrs 14 /attrs/take
PASS: test-attrs 15 /attrs/merge-replace
PASS: test-attrs 16 /attrs/merge-augment
PASS: test-attrs 17 /attrs/merge-empty
PASS: test-attrs 18 /attrs/free-null
PASS: test-attrs 19 /attrs/match
PASS: test-attrs 20 /attrs/matchn
PASS: test-attrs 21 /attrs/find
PASS: test-attrs 22 /attrs/findn
PASS: test-attrs 23 /attrs/find-bool
PASS: test-attrs 24 /attrs/find-ulong
PASS: test-attrs 25 /attrs/find-value
PASS: test-attrs 26 /attrs/find-valid
PASS: test-attrs 27 /attrs/remove
PASS: test-attrs 28 /attrs/purge
PASS: test-url 1 /url/decode-success
PASS: test-path 1 /path/base
PASS: test-url 2 /url/decode-skip
PASS: test-url 3 /url/decode-failure
PASS: test-path 2 /path/build
PASS: test-url 4 /url/encode
PASS: test-path 3 /path/expand
PASS: test-url 5 /url/encode-verbatim
PASS: test-path 4 /path/absolute
PASS: test-url 6 /url/encode-lower
PASS: test-path 5 /path/parent
PASS: test-path 6 /path/prefix
PASS: test-path 7 /path/canon
PASS: test-path 8 /path/encode
PASS: test-path 9 /path/decode
PASS: test-runtime 1 /runtime/xdg-runtime-dir
PASS: test-runtime 2 /runtime/bases
PASS: test-runtime 3 /runtime/xdg-cache-home
PASS: test-message 1 /message/with-err
PASS: test-lexer 1 /lexer/basic
PASS: test-lexer 2 /lexer/corners
PASS: test-lexer 3 /lexer/following
PASS: test-lexer 4 /lexer/bad-pem
PASS: test-lexer 5 /lexer/bad-section
PASS: test-lexer 6 /lexer/bad-value
PASS: test-progname 1 /progname/test_progname_default
PASS: test-progname 2 /progname/test_progname_set
PASS: test-argv 1 /argv/parse
PASS: test-argv 2 /argv/parse_quote
PASS: test-argv 3 /argv/parse_backslash
PASS: test-modules 1 /modules/test_filename
PASS: test-modules 2 /modules/test_no_duplicates
PASS: test-modules 3 /modules/test_exceed_max
PASS: test-modules 4 /modules/test_disable
PASS: test-modules 5 /modules/test_disable_later
PASS: test-modules 6 /modules/test_enable
PASS: test-modules 7 /modules/test_priority
PASS: test-modules 8 /modules/test_module_name
PASS: test-modules 9 /modules/test_module_flagsPASS: test-util 1 /util/space-strlen

PASS: test-modules 10 /modules/test_config_option
PASS: test-modules 11 /modules/trusted-only
PASS: test-modules 12 /modules/trust-flags
PASS: test-modules 13 /modules/already-initialized
PASS: test-uri 1 /uri/test_uri_parse
PASS: test-uri 2 /uri/test_uri_parse_case_insensitive
PASS: test-uri 3 /uri/test_uri_parse_bad_scheme
PASS: test-uri 4 /uri/test_uri_parse_with_label
PASS: test-uri 5 /uri/test_uri_parse_with_empty_label
PASS: test-uri 6 /uri/test_uri_parse_with_empty_id
PASS: test-uri 7 /uri/test_uri_parse_with_label_and_klass
PASS: test-uri 8 /uri/parse-with-label-and-new-class
PASS: test-uri 9 /uri/test_uri_parse_with_id
PASS: test-uri 10 /uri/test_uri_parse_with_bad_string_encoding
PASS: test-uri 11 /uri/test_uri_parse_with_bad_hex_encoding
PASS: test-uri 12 /uri/test_uri_parse_with_token
PASS: test-uri 13 /uri/test_uri_parse_with_token_bad_encoding
PASS: test-uri 14 /uri/test_uri_parse_with_bad_syntax
PASS: test-uri 15 /uri/test_uri_parse_with_spaces
PASS: test-uri 16 /uri/test_uri_parse_with_library
PASS: test-pin 1 /pin/test_pin_register_unregister
PASS: test-uri 17 /uri/test_uri_parse_with_library_bad_encoding
PASS: test-pin 2 /pin/test_pin_read
PASS: test-uri 18 /uri/test_uri_parse_with_slot
PASS: test-pin 3 /pin/test_pin_read_no_match
PASS: test-uri 19 /uri/test_uri_build_empty
PASS: test-pin 4 /pin/test_pin_register_duplicate
PASS: test-uri 20 /uri/test_uri_build_with_token_info
PASS: test-pin 5 /pin/test_pin_register_fallback
PASS: test-pin 6 /pin/test_pin_file
PASS: test-uri 21 /uri/test_uri_build_with_token_null_info
PASS: test-pin 7 /pin/test_pin_file_large
PASS: test-uri 22 /uri/test_uri_build_with_token_empty_info
PASS: test-pin 8 /pin/test_pin_ref_unrefPASS: test-uri 23 /uri/test_uri_build_with_attributes

PASS: test-uri 24 /uri/test_uri_build_with_slot_info
PASS: test-uri 25 /uri/test_uri_parse_private_key
PASS: test-uri 26 /uri/test_uri_parse_secret_key
PASS: test-uri 27 /uri/test_uri_parse_library_version
PASS: test-uri 28 /uri/test_uri_parse_parse_unknown_object_type
PASS: test-uri 29 /uri/test_uri_parse_unrecognized
PASS: test-uri 30 /uri/test_uri_parse_too_long_is_unrecognized
PASS: test-uri 31 /uri/test_uri_build_object_type_cert
PASS: test-uri 32 /uri/test_uri_build_object_type_private
PASS: test-uri 33 /uri/test_uri_build_object_type_public
PASS: test-uri 34 /uri/test_uri_build_object_type_secret
PASS: test-uri 35 /uri/test_uri_build_with_library
PASS: test-uri 36 /uri/test_uri_build_library_version
PASS: test-uri 37 /uri/test_uri_get_set_unrecognized
PASS: test-uri 38 /uri/test_uri_match_token
PASS: test-uri 39 /uri/test_uri_match_module
PASS: test-uri 40 /uri/test_uri_match_version
PASS: test-uri 41 /uri/test_uri_match_attributes
PASS: test-uri 42 /uri/test_uri_get_set_attribute
PASS: test-uri 43 /uri/test_uri_get_set_attributes
PASS: test-uri 44 /uri/test_uri_pin_source
PASS: test-uri 45 /uri/pin-value
PASS: test-uri 46 /uri/pin-value-bad
PASS: test-uri 47 /uri/module-name
PASS: test-uri 48 /uri/module-name-bad
PASS: test-uri 49 /uri/module-path
PASS: test-uri 50 /uri/module-name-and-path
PASS: test-uri 51 /uri/vendor-query
PASS: test-uri 52 /uri/slot-id
PASS: test-uri 53 /uri/slot-id-bad
PASS: test-uri 54 /uri/test_uri_free_null
PASS: test-uri 55 /uri/test_uri_message
PASS: test-virtual 1 /virtual/test_initialize
PASS: test-virtual 2 /virtual/test_fall_through
PASS: test-virtual 3 /virtual/test_get_function_list
PASS: test-conf 1 /conf/test_parse_conf_1
PASS: test-conf 2 /conf/test_parse_ignore_missing
PASS: test-conf 3 /conf/test_parse_fail_missing
PASS: test-conf 4 /conf/test_merge_defaults
PASS: test-conf 5 /conf/test_load_globals_merge
PASS: test-conf 6 /conf/test_load_globals_no_user
PASS: test-conf 7 /conf/test_load_globals_system_sets_only
PASS: test-conf 8 /conf/test_load_globals_user_sets_only
PASS: test-conf 9 /conf/test_load_globals_system_sets_invalid
PASS: test-conf 10 /conf/test_load_globals_user_sets_invalid
PASS: test-conf 11 /conf/test_load_modules_merge
PASS: test-conf 12 /conf/test_load_modules_no_user
PASS: test-conf 13 /conf/test_load_modules_user_only
PASS: test-conf 14 /conf/test_load_modules_user_none
PASS: test-iter 1 /iter/test_all
PASS: test-iter 2 /iter/test_unrecognized
PASS: test-iter 3 /iter/test_uri_with_type
PASS: test-iter 4 /iter/set-uri
PASS: test-iter 5 /iter/test_session_flags
PASS: test-iter 6 /iter/test_callback
PASS: test-iter 7 /iter/test_callback_fails
PASS: test-iter 8 /iter/test_callback_destroyer
PASS: test-iter 9 /iter/test_filter
PASS: test-log 1 /log/test_get_info
PASS: test-iter 10 /iter/test_with_session
PASS: test-log 2 /log/test_get_slot_list
PASS: test-log 3 /log/test_get_slot_infoPASS: test-iter 11 /iter/test_with_slot

PASS: test-log 4 /log/test_get_token_infoPASS: test-iter 12 /iter/test_with_module

PASS: test-log 5 /log/test_get_mechanism_list
PASS: test-iter 13 /iter/test_keep_session
PASS: test-log 6 /log/test_get_mechanism_infoPASS: test-iter 14 /iter/test_token_match

PASS: test-log 7 /log/test_init_token
PASS: test-iter 15 /iter/test_token_mismatch
PASS: test-iter 16 /iter/token-infoPASS: test-log 8 /log/test_wait_for_slot_event

PASS: test-log 9 /log/test_open_close_session
PASS: test-iter 17 /iter/test_token_only
PASS: test-iter 18 /iter/test_slot_matchPASS: test-log 10 /log/test_close_all_sessions

PASS: test-log 11 /log/test_get_function_statusPASS: test-iter 19 /iter/test_slot_mismatch

PASS: test-log 12 /log/test_cancel_functionPASS: test-iter 20 /iter/test_slot_match_by_id

PASS: test-log 13 /log/test_get_session_infoPASS: test-iter 21 /iter/test_slot_mismatch_by_id

PASS: test-log 14 /log/test_init_pinPASS: test-iter 22 /iter/slot-info

PASS: test-log 15 /log/test_set_pinPASS: test-iter 23 /iter/test_slot_only

PASS: test-log 16 /log/test_operation_statePASS: test-iter 24 /iter/test_module_match

PASS: test-log 17 /log/test_login_logoutPASS: test-iter 25 /iter/test_module_mismatch

PASS: test-iter 26 /iter/test_module_onlyPASS: test-log 18 /log/test_get_attribute_value

PASS: test-iter 27 /iter/test_getslotlist_fail_firstPASS: test-log 19 /log/test_set_attribute_value

PASS: test-log 20 /log/test_create_objectPASS: test-iter 28 /iter/test_getslotlist_fail_late

PASS: test-iter 29 /iter/test_open_session_failPASS: test-log 21 /log/test_copy_object

PASS: test-iter 30 /iter/test_find_init_failPASS: test-log 22 /log/test_destroy_object

PASS: test-log 23 /log/test_get_object_sizePASS: test-iter 31 /iter/test_find_objects_fail

PASS: test-log 24 /log/test_find_objectsPASS: test-iter 32 /iter/get-attributes

PASS: test-log 25 /log/test_encryptPASS: test-iter 33 /iter/test_load_attributes

PASS: test-log 26 /log/test_decrypt
PASS: test-log 27 /log/test_digest
PASS: test-log 28 /log/test_sign
PASS: test-log 29 /log/test_sign_recover
PASS: test-log 30 /log/test_verify
PASS: test-log 31 /log/test_verify_recover
PASS: test-log 32 /log/test_digest_encrypt
PASS: test-log 33 /log/test_decrypt_digest
PASS: test-log 34 /log/test_sign_encrypt
PASS: test-log 35 /log/test_decrypt_verify
PASS: test-log 36 /log/test_generate_key
PASS: test-log 37 /log/test_generate_key_pair
PASS: test-log 38 /log/test_wrap_key
PASS: test-log 39 /log/test_unwrap_key
PASS: test-log 40 /log/test_derive_key
PASS: test-log 41 /log/test_random
PASS: test-managed 1 /managed/test_initialize_finalize
PASS: test-managed 2 /managed/test_initialize_fail
PASS: test-managed 3 /managed/test_separate_close_all_sessions
PASS: test-managed 4 /managed/test_max_session_load
PASS: test-managed 5 /managed/fork-and-reinitialize
PASS: test-managed 6 /managed/test_get_info
PASS: test-managed 7 /managed/test_get_slot_list
PASS: test-managed 8 /managed/test_get_slot_info
PASS: test-managed 9 /managed/test_get_token_info
PASS: test-managed 10 /managed/test_get_mechanism_list
PASS: test-managed 11 /managed/test_get_mechanism_info
PASS: test-managed 12 /managed/test_init_token
PASS: test-managed 13 /managed/test_wait_for_slot_event
PASS: test-managed 14 /managed/test_open_close_session
PASS: test-managed 15 /managed/test_close_all_sessions
PASS: test-managed 16 /managed/test_get_function_status
PASS: test-managed 17 /managed/test_cancel_function
PASS: test-managed 18 /managed/test_get_session_info
PASS: test-managed 19 /managed/test_init_pin
PASS: test-managed 20 /managed/test_set_pin
PASS: test-managed 21 /managed/test_operation_state
PASS: test-managed 22 /managed/test_login_logout
PASS: test-managed 23 /managed/test_get_attribute_value
PASS: test-managed 24 /managed/test_set_attribute_value
PASS: test-managed 25 /managed/test_create_object
PASS: test-managed 26 /managed/test_copy_object
PASS: test-managed 27 /managed/test_destroy_object
PASS: test-managed 28 /managed/test_get_object_size
PASS: test-managed 29 /managed/test_find_objects
PASS: test-managed 30 /managed/test_encrypt
PASS: test-managed 31 /managed/test_decrypt
PASS: test-managed 32 /managed/test_digest
PASS: test-managed 33 /managed/test_sign
PASS: test-managed 34 /managed/test_sign_recover
PASS: test-managed 35 /managed/test_verify
PASS: test-managed 36 /managed/test_verify_recover
PASS: test-managed 37 /managed/test_digest_encrypt
PASS: test-managed 38 /managed/test_decrypt_digest
PASS: test-managed 39 /managed/test_sign_encrypt
PASS: test-managed 40 /managed/test_decrypt_verify
PASS: test-managed 41 /managed/test_generate_key
PASS: test-managed 42 /managed/test_generate_key_pair
PASS: test-managed 43 /managed/test_wrap_key
PASS: test-managed 44 /managed/test_unwrap_key
PASS: test-managed 45 /managed/test_derive_key
PASS: test-managed 46 /managed/test_random
PASS: test-filter 1 /filter/test_allowed
PASS: test-filter 2 /filter/test_denied
PASS: test-filter 3 /filter/test_write_protected
PASS: test-server 1 /server/initialize
PASS: test-server 2 /server/initialize-no-address
PASS: test-server 3 /server/open-session
PASS: test-server 4 /server/open-session-write-protected
PASS: test-server 5 /server/all/initialize
PASS: test-server 6 /server/all/initialize-no-address
PASS: test-server 7 /server/all/open-session
PASS: test-proxy 1 /proxy/initialize-finalize
PASS: test-proxy 2 /proxy/initialize-multiple
PASS: test-proxy 3 /proxy/initialize-child
PASS: test-proxy 4 /proxy/disable
PASS: test-proxy 5 /proxy/no-slot
PASS: test-proxy 6 /proxy/slot-appear
PASS: test-proxy 7 /proxy/slot-event
PASS: test-proxy 8 /proxy/test_get_info
PASS: test-proxy 9 /proxy/test_get_slot_list
PASS: test-proxy 10 /proxy/test_get_slot_info
PASS: test-proxy 11 /proxy/test_get_token_info
PASS: test-proxy 12 /proxy/test_get_mechanism_list
PASS: test-proxy 13 /proxy/test_get_mechanism_info
PASS: test-proxy 14 /proxy/test_init_token
PASS: test-proxy 15 /proxy/test_wait_for_slot_event
PASS: test-proxy 16 /proxy/test_open_close_session
PASS: test-proxy 17 /proxy/test_close_all_sessions
PASS: test-proxy 18 /proxy/test_get_function_status
PASS: test-proxy 19 /proxy/test_cancel_function
PASS: test-proxy 20 /proxy/test_get_session_info
PASS: test-proxy 21 /proxy/test_init_pin
PASS: test-proxy 22 /proxy/test_set_pin
PASS: test-proxy 23 /proxy/test_operation_state
PASS: test-proxy 24 /proxy/test_login_logout
PASS: test-proxy 25 /proxy/test_get_attribute_value
PASS: test-proxy 26 /proxy/test_set_attribute_value
PASS: test-proxy 27 /proxy/test_create_object
PASS: test-proxy 28 /proxy/test_copy_object
PASS: test-proxy 29 /proxy/test_destroy_object
PASS: test-proxy 30 /proxy/test_get_object_size
PASS: test-proxy 31 /proxy/test_find_objects
PASS: test-iter 34 /iter/test_load_attributes_none
PASS: test-iter 35 /iter/test_load_attributes_fail_first
PASS: test-iter 36 /iter/test_load_attributes_fail_late
PASS: test-iter 37 /iter/test-many
PASS: test-iter 38 /iter/test-many-busy
PASS: test-iter 39 /iter/destroy-object
PASS: test-iter 40 /iter/test_exhaustive_match
PASS: test-proxy 32 /proxy/test_encrypt
PASS: test-proxy 33 /proxy/test_decrypt
PASS: test-proxy 34 /proxy/test_digest
PASS: test-proxy 35 /proxy/test_sign
PASS: test-proxy 36 /proxy/test_sign_recover
PASS: test-proxy 37 /proxy/test_verify
PASS: test-proxy 38 /proxy/test_verify_recover
PASS: test-proxy 39 /proxy/test_digest_encrypt
PASS: test-proxy 40 /proxy/test_decrypt_digest
PASS: test-proxy 41 /proxy/test_sign_encrypt
PASS: test-proxy 42 /proxy/test_decrypt_verify
PASS: test-proxy 43 /proxy/test_generate_key
PASS: test-proxy 44 /proxy/test_generate_key_pair
PASS: test-proxy 45 /proxy/test_wrap_key
PASS: test-proxy 46 /proxy/test_unwrap_key
PASS: test-proxy 47 /proxy/test_derive_key
PASS: test-proxy 48 /proxy/test_random
PASS: test-array 1 /array/create
PASS: test-array 2 /array/add
PASS: test-array 3 /array/add-remove
PASS: test-array 4 /array/remove-destroys
PASS: test-array 5 /array/remove-and-count
PASS: test-array 6 /array/free-null
PASS: test-array 7 /array/free-destroys
PASS: test-array 8 /array/clear-destroys
PASS: test-dict 1 /dict/create
PASS: test-dict 2 /dict/set-get
PASS: test-dict 3 /dict/set-get-remove
PASS: test-dict 4 /dict/remove-destroys
PASS: test-dict 5 /dict/set-clear
PASS: test-dict 6 /dict/set-destroys
PASS: test-dict 7 /dict/clear-destroys
PASS: test-dict 8 /dict/free-null
PASS: test-dict 9 /dict/free-destroys
PASS: test-dict 10 /dict/iterate
PASS: test-dict 11 /dict/iterate-remove
PASS: test-dict 12 /dict/add-check-lots-and-collisions
PASS: test-dict 13 /dict/count
PASS: test-dict 14 /dict/ulongptr
PASS: p11-kit/test-messages.sh 1 /messages/return-code
PASS: test-rpc 1 /rpc/new-free
PASS: test-rpc 2 /rpc/uint16
PASS: test-rpc 3 /rpc/uint16-static
PASS: test-rpc 4 /rpc/uint32
PASS: test-rpc 5 /rpc/uint32-static
PASS: test-rpc 6 /rpc/uint64
PASS: test-rpc 7 /rpc/uint64-static
PASS: test-rpc 8 /rpc/byte-array
PASS: test-rpc 9 /rpc/byte-array-null
PASS: test-rpc 10 /rpc/byte-array-too-long
PASS: test-rpc 11 /rpc/byte-array-static
PASS: test-rpc 12 /rpc/byte-value
PASS: test-rpc 13 /rpc/ulong-value
PASS: test-rpc 14 /rpc/attribute-array-value
PASS: test-rpc 15 /rpc/mechanism-type-array-value
PASS: test-rpc 16 /rpc/date-value
PASS: test-rpc 17 /rpc/date-value-empty
PASS: test-rpc 18 /rpc/byte-array-value
PASS: test-rpc 19 /rpc/mechanism-value
PASS: test-rpc 20 /rpc/message-write
PASS: test-rpc 21 /rpc/initialize-fails-on-client
PASS: test-rpc 22 /rpc/initialize-fails-on-server
PASS: test-rpc 23 /rpc/initialize
PASS: test-rpc 24 /rpc/not-initialized
PASS: test-rpc 25 /rpc/transport-fails
PASS: test-rpc 26 /rpc/transport-bad-parse
PASS: test-rpc 27 /rpc/transport-short-error
PASS: test-rpc 28 /rpc/transport-invalid-error
PASS: test-rpc 29 /rpc/transport-wrong-response
PASS: test-rpc 30 /rpc/transport-bad-contents
PASS: test-rpc 31 /rpc/get-info-stand-in
PASS: test-rpc 32 /rpc/get-slot-list-no-device
PASS: test-rpc 33 /rpc/simultaneous-functions
PASS: test-rpc 34 /rpc/fork-and-reinitialize
PASS: test-rpc 35 /rpc/test_get_info
PASS: test-rpc 36 /rpc/test_get_slot_list
PASS: test-rpc 37 /rpc/test_get_slot_info
PASS: test-rpc 38 /rpc/test_get_token_info
PASS: test-rpc 39 /rpc/test_get_mechanism_list
PASS: test-rpc 40 /rpc/test_get_mechanism_info
PASS: test-rpc 41 /rpc/test_init_token
PASS: test-rpc 42 /rpc/test_wait_for_slot_event
PASS: test-rpc 43 /rpc/test_open_close_session
PASS: test-rpc 44 /rpc/test_close_all_sessions
PASS: test-rpc 45 /rpc/test_get_function_status
PASS: test-rpc 46 /rpc/test_cancel_function
PASS: test-rpc 47 /rpc/test_get_session_info
PASS: test-rpc 48 /rpc/test_init_pin
PASS: test-rpc 49 /rpc/test_set_pin
PASS: test-rpc 50 /rpc/test_operation_state
PASS: test-rpc 51 /rpc/test_login_logout
PASS: test-rpc 52 /rpc/test_get_attribute_value
PASS: test-rpc 53 /rpc/test_set_attribute_value
PASS: test-rpc 54 /rpc/test_create_object
PASS: test-rpc 55 /rpc/test_copy_object
PASS: test-rpc 56 /rpc/test_destroy_object
PASS: test-rpc 57 /rpc/test_get_object_size
PASS: test-rpc 58 /rpc/test_find_objects
PASS: test-rpc 59 /rpc/test_encrypt
PASS: test-rpc 60 /rpc/test_decrypt
PASS: test-rpc 61 /rpc/test_digest
PASS: test-rpc 62 /rpc/test_sign
PASS: test-rpc 63 /rpc/test_sign_recover
PASS: test-rpc 64 /rpc/test_verify
PASS: test-rpc 65 /rpc/test_verify_recover
PASS: test-rpc 66 /rpc/test_digest_encrypt
PASS: test-rpc 67 /rpc/test_decrypt_digest
PASS: test-rpc 68 /rpc/test_sign_encrypt
PASS: test-rpc 69 /rpc/test_decrypt_verify
PASS: test-rpc 70 /rpc/test_generate_key
PASS: test-rpc 71 /rpc/test_generate_key_pair
PASS: test-rpc 72 /rpc/test_wrap_key
PASS: test-rpc 73 /rpc/test_unwrap_key
PASS: test-rpc 74 /rpc/test_derive_key
PASS: test-rpc 75 /rpc/test_random
PASS: test-digest 1 /digest/sha1
PASS: test-digest 2 /digest/sha1-long
PASS: test-digest 3 /digest/md5
PASS: test-compat 1 /compat/strndup
ERROR: test-compat - too few tests run (expected 4, got 1)
PASS: test-conf 15 /conf/test_parse_boolean
ERROR: test-conf - too few tests run (expected 16, got 15)
PASS: test-utf8 1 /utf8/ucs2be
PASS: test-utf8 2 /utf8/ucs2be_fail
PASS: test-utf8 3 /utf8/ucs4be
PASS: test-utf8 4 /utf8/ucs4be_fail
PASS: test-utf8 5 /utf8/utf8
PASS: test-utf8 6 /utf8/utf8_fail
PASS: test-pem 1 /pem/success
PASS: test-pem 2 /pem/failure
PASS: test-pem 3 /pem/write
PASS: test-asn1 1 /asn1/tlv_length
PASS: test-asn1 2 /asn1/asn1_cache
PASS: test-asn1 3 /asn1/free
PASS: test-base64 1 /base64/decode-simple
PASS: test-base64 2 /base64/decode-thawte
PASS: test-oid 1 /oids/known
PASS: test-oid 2 /oids/hash
PASS: p11-kit/test-server.sh 1 /server/start
PASS: test-x509 1 /x509/parse-extended-key-usage
PASS: test-x509 2 /x509/parse-key-usage
PASS: test-x509 3 /x509/parse-extension
PASS: test-x509 4 /x509/parse-extension-not-found
PASS: test-x509 5 /x509/directory-string
PASS: test-x509 6 /x509/directory-string-unknown
PASS: test-parser 1 /parser/parse_der_certificate
PASS: test-parser 2 /parser/parse_pem_certificate
PASS: test-parser 3 /parser/parse_p11_kit_persist
PASS: test-parser 4 /parser/parse_openssl_trusted
PASS: test-parser 5 /parser/parse_openssl_distrusted
PASS: test-parser 6 /parser/openssl-trusted-no-trust
PASS: test-parser 7 /parser/parse_anchor
PASS: test-parser 8 /parser/parse_thawte
PASS: test-parser 9 /parser/parse_invalid_file
PASS: test-parser 10 /parser/parse_unrecognized
PASS: test-parser 11 /parser/null-asn1-cache
PASS: test-persist 1 /persist/magic
PASS: test-persist 2 /persist/simple
PASS: test-persist 3 /persist/number
PASS: test-persist 4 /persist/bool
PASS: test-persist 5 /persist/oid
PASS: test-persist 6 /persist/constant
PASS: test-persist 7 /persist/unknown
PASS: test-persist 8 /persist/multiple
PASS: test-persist 9 /persist/pem_block
PASS: test-persist 10 /persist/pem-middle
PASS: test-persist 11 /persist/pem-public-key
PASS: test-persist 12 /persist/pem_invalid
PASS: test-persist 13 /persist/pem_unsupported
PASS: test-persist 14 /persist/pem_first
PASS: test-persist 15 /persist/bad_value
PASS: test-persist 16 /persist/bad_oid
PASS: test-persist 17 /persist/bad_field
PASS: test-persist 18 /persist/skip_unknown
PASS: test-persist 19 /persist/attribute_first
PASS: test-persist 20 /persist/not-boolean
PASS: test-persist 21 /persist/not-ulong
PASS: p11-kit/test-server.sh 2 /server/start-env
PASS: p11-kit/test-server.sh 3 /server/stop
PASS: p11-kit/test-server.sh 4 /server/stop-env
PASS: test-bundle 1 /pem/test_file
PASS: test-bundle 2 /pem/test_file_multiple
PASS: test-bundle 3 /pem/test_file_without
PASS: test-bundle 4 /pem/test_directory
PASS: test-bundle 5 /pem/test_directory_empty
PASS: test-bundle 6 /pem/test_directory_hash
PASS: test-edk2 1 /edk2/test_file_multiple
PASS: test-enumerate 1 /extract/test_file_name_for_label
PASS: test-enumerate 2 /extract/test_file_name_for_class
PASS: test-enumerate 3 /extract/test_comment_for_label
PASS: test-enumerate 4 /extract/test_comment_not_enabled
PASS: test-enumerate 5 /extract/test_info_simple_certificate
PASS: test-enumerate 6 /extract/test_info_limit_purposes
PASS: test-enumerate 7 /extract/test_info_invalid_purposes
PASS: test-enumerate 8 /extract/test_info_skip_non_certificate
PASS: test-enumerate 9 /extract/test_limit_to_purpose_match
PASS: test-enumerate 10 /extract/test_limit_to_purpose_no_match
PASS: test-enumerate 11 /extract/test_limit_to_purpose_no_match_any
PASS: test-enumerate 12 /extract/test_duplicate_extract
PASS: test-enumerate 13 /extract/test-duplicate-distrusted
PASS: test-enumerate 14 /extract/test_trusted_match
PASS: test-enumerate 15 /extract/test_distrust_match
PASS: test-enumerate 16 /extract/override-by-issuer-and-serial
PASS: test-enumerate 17 /extract/override-by-public-key
PASS: test-cer 1 /x509/test_file
PASS: test-cer 2 /x509/test_file_multiple
PASS: test-cer 3 /x509/test_file_without
PASS: test-cer 4 /x509/test_directory
PASS: test-cer 5 /x509/test_directory_empty
PASS: test-openssl 1 /openssl/test_file
PASS: test-openssl 2 /openssl/test_plain
PASS: test-openssl 3 /openssl/test_keyid
PASS: test-openssl 4 /openssl/test_not_authority
PASS: test-openssl 5 /openssl/test_distrust_all
PASS: test-openssl 6 /openssl/test_file_multiple
PASS: test-openssl 7 /openssl/test_file_without
PASS: test-openssl 8 /openssl/test_canon_string
PASS: test-openssl 9 /openssl/test_canon_string_der
PASS: test-openssl 10 /openssl/test_canon_string_der_fail
PASS: test-openssl 11 /openssl/test_canon_name_der
PASS: test-openssl 12 /openssl/test_directory
PASS: test-openssl 13 /openssl/test_directory_empty
PASS: test-builder 1 /builder/get_cache
PASS: test-builder 2 /builder/build_data
PASS: test-builder 3 /builder/build_certificate
PASS: test-builder 4 /builder/build_certificate_empty
PASS: test-builder 5 /builder/build_certificate_non_ca
PASS: test-builder 6 /builder/build_certificate_v1_ca
PASS: test-builder 7 /builder/build_certificate_staple_ca
PASS: test-builder 8 /builder/build-certificate-staple-ca-backwards
PASS: test-builder 9 /builder/build_certificate_no_type
PASS: test-builder 10 /builder/build_certificate_bad_type
PASS: test-builder 11 /builder/build_extension
PASS: test-builder 12 /builder/build_distant_end_date
PASS: test-builder 13 /builder/valid-bool
PASS: test-builder 14 /builder/valid-ulong
PASS: test-builder 15 /builder/valid-utf8
PASS: test-builder 16 /builder/valid-date
PASS: test-builder 17 /builder/valid-name
PASS: test-builder 18 /builder/valid-serial
PASS: test-builder 19 /builder/valid-cert
PASS: test-builder 20 /builder/invalid-bool
PASS: test-builder 21 /builder/invalid-ulong
PASS: test-builder 22 /builder/invalid-utf8
PASS: test-builder 23 /builder/invalid-date
PASS: test-builder 24 /builder/invalid-name
PASS: test-builder 25 /builder/invalid-serial
PASS: test-index 1 /index/add_lookup
PASS: test-builder 26 /builder/invalid-cert
PASS: test-builder 27 /builder/invalid-schema
PASS: test-index 2 /index/take_lookup
PASS: test-builder 28 /builder/create_not_settable
PASS: test-index 3 /index/size
PASS: test-builder 29 /builder/create_but_loadable
PASS: test-index 4 /index/remove
PASS: test-builder 30 /builder/create_unsupported
PASS: test-index 5 /index/snapshot
PASS: test-index 6 /index/snapshot_base
PASS: test-index 7 /index/set
PASS: test-index 8 /index/update
PASS: test-index 9 /index/find
PASS: test-index 10 /index/find_all
PASS: test-index 11 /index/find_realloc
PASS: test-index 12 /index/replace_all
PASS: test-index 13 /index/build_populate
PASS: test-index 14 /index/build_fail
PASS: test-index 15 /index/change_called
PASS: test-index 16 /index/change_batch
PASS: test-index 17 /index/change_nested
PASS: test-index 18 /index/replace-all-build-fails
PASS: test-index 19 /index/remove-callback
PASS: test-index 20 /index/remove-fail
PASS: test-builder 31 /builder/create_generated
PASS: test-builder 32 /builder/create_bad_attribute
PASS: test-builder 33 /builder/create_missing_attribute
PASS: test-builder 34 /builder/create_no_class
PASS: test-builder 35 /builder/create_token_mismatch
PASS: test-builder 36 /builder/modify_success
PASS: test-builder 37 /builder/modify_read_only
PASS: test-builder 38 /builder/modify_unchanged
PASS: test-builder 39 /builder/modify_not_modifiable
PASS: test-builder 40 /builder/changed_trusted_certificate
PASS: test-builder 41 /builder/changed_distrust_value
PASS: test-builder 42 /builder/changed_distrust_serial
PASS: test-builder 43 /builder/changed_without_id
PASS: test-builder 44 /builder/changed_staple_ca
PASS: test-builder 45 /builder/changed_staple_ku
PASS: test-builder 46 /builder/changed_dup_certificates
PASS: test-save 1 /save/test_file_write
PASS: test-save 2 /save/test_file_exists
PASS: test-save 3 /save/test_file_bad_directory
PASS: test-save 4 /save/test_file_overwrite
PASS: test-save 5 /save/file-unique
PASS: test-save 6 /save/test_file_auto_empty
PASS: test-save 7 /save/test_file_auto_length
PASS: test-save 8 /save/test_write_with_null
PASS: test-save 9 /save/test_write_and_finish_with_null
PASS: test-save 10 /save/test_file_abort
PASS: test-save 11 /save/test_directory_empty
PASS: test-save 12 /save/test_directory_files
PASS: test-save 13 /save/test_directory_dups
PASS: test-save 14 /save/test_directory_exists
PASS: test-save 15 /save/test_directory_overwrite
PASS: test-jks 1 /jks/test_file_multiple
PASS: test-jks 2 /jks/test_file_duplicated
PASS: test-deprecated 1 /deprecated/test_no_duplicates
PASS: test-deprecated 2 /deprecated/test_disable
PASS: test-deprecated 3 /deprecated/test_disable_later
PASS: test-deprecated 4 /deprecated/test_enable
PASS: test-deprecated 5 /deprecated/test_fork_initialization
PASS: test-deprecated 6 /deprecated/test_recursive_initialization
PASS: test-deprecated 7 /deprecated/test_threaded_initialization
PASS: test-deprecated 8 /deprecated/test_mutexes
PASS: test-deprecated 9 /deprecated/test_load_and_initialize
PASS: test-init 1 /init/test_recursive_initialization
PASS: test-init 2 /init/test_threaded_initialization
PASS: test-init 3 /init/test_mutexes
PASS: test-init 4 /init/test_load_and_initialize
PASS: test-init 5 /init/test_fork_initialization
PASS: test-init 6 /init/test_initalize_fail
PASS: test-init 7 /init/test_finalize_fail
PASS: test-module 1 /module/get_slot_list
PASS: test-module 2 /module/get_slot_info
PASS: test-module 3 /module/initialize-null
PASS: test-module 4 /module/initialize-multi
PASS: test-module 5 /module/get_token_info
PASS: test-module 6 /module/get_session_info
PASS: test-module 7 /module/close_all_sessions
PASS: test-module 8 /module/find_certificates
PASS: test-module 9 /module/find_extensions
PASS: test-module 10 /module/find_builtin
PASS: test-module 11 /module/lookup_invalid
PASS: test-module 12 /module/remove_token
PASS: test-module 13 /module/setattr_token
PASS: test-module 14 /module/session_object
PASS: test-module 15 /module/session_find
PASS: test-module 16 /module/session_find_no_attr
PASS: test-module 17 /module/session_copy
PASS: test-module 18 /module/session_remove
PASS: test-module 19 /module/session_setattr
PASS: test-module 20 /module/find_serial_der_decoded
PASS: test-module 21 /module/find_serial_der_mismatch
PASS: test-module 22 /module/login_logout
PASS: test-module 23 /module/token-writable
PASS: test-module 24 /module/session-read-only-create
PASS: test-module 25 /module/create-and-write
PASS: test-module 26 /module/modify-and-write
PASS: test-module 27 /module/token-write-protected
PASS: test-module 28 /module/unreadable
PASS: test-transport 1 /transport/basic
PASS: test-transport 2 /transport/init-arg
PASS: test-transport 3 /transport/simultaneous-functions
PASS: test-transport 4 /transport/fork-and-reinitialize
PASS: test-transport 5 /transport/test_get_info
PASS: test-transport 6 /transport/test_get_slot_list
PASS: test-transport 7 /transport/test_get_slot_info
PASS: test-transport 8 /transport/test_get_token_info
PASS: test-transport 9 /transport/test_get_mechanism_list
PASS: test-transport 10 /transport/test_get_mechanism_info
PASS: test-transport 11 /transport/test_init_token
PASS: test-transport 12 /transport/test_wait_for_slot_event
PASS: test-transport 13 /transport/test_open_close_session
PASS: test-transport 14 /transport/test_close_all_sessions
PASS: test-transport 15 /transport/test_get_function_status
PASS: test-transport 16 /transport/test_cancel_function
PASS: test-transport 17 /transport/test_get_session_info
PASS: test-transport 18 /transport/test_init_pin
PASS: test-transport 19 /transport/test_set_pin
PASS: test-transport 20 /transport/test_operation_state
PASS: test-transport 21 /transport/test_login_logout
PASS: test-transport 22 /transport/test_get_attribute_value
PASS: test-transport 23 /transport/test_set_attribute_value
PASS: test-transport 24 /transport/test_create_object
PASS: test-transport 25 /transport/test_copy_object
PASS: test-transport 26 /transport/test_destroy_object
PASS: test-transport 27 /transport/test_get_object_size
PASS: test-token 1 /token/load
PASS: test-token 2 /token/flags
PASS: test-token 3 /token/path
PASS: test-token 4 /token/label
PASS: test-token 5 /token/slot
FAIL: test-token 6 /token/not-writable
# test-token: assertion failed (!p11_token_is_writable (token))
# test-token: in test_not_writable() at test-token.c:244
PASS: test-token 7 /token/writable-no-exist
PASS: test-token 8 /token/writable-exists
PASS: test-token 9 /token/load-found
PASS: test-token 10 /token/load-already
PASS: test-token 11 /token/load-unreadable
PASS: test-token 12 /token/load-gone
PASS: test-token 13 /token/load-contrived
PASS: test-token 14 /token/reload-changed
PASS: test-token 15 /token/reload-gone
PASS: test-token 16 /token/reload-no-origin
PASS: test-token 17 /token/write-new
PASS: test-token 18 /token/write-no-label
PASS: test-token 19 /token/modify-multiple
PASS: test-token 20 /token/remove-one
PASS: test-token 21 /token/remove-multiple
PASS: test-transport 28 /transport/test_find_objects
PASS: test-transport 29 /transport/test_encrypt
PASS: test-transport 30 /transport/test_decrypt
PASS: test-transport 31 /transport/test_digest
PASS: test-transport 32 /transport/test_sign
PASS: test-transport 33 /transport/test_sign_recover
PASS: test-transport 34 /transport/test_verify
PASS: test-transport 35 /transport/test_verify_recover
PASS: test-transport 36 /transport/test_digest_encrypt
PASS: test-transport 37 /transport/test_decrypt_digest
PASS: test-transport 38 /transport/test_sign_encrypt
PASS: test-transport 39 /transport/test_decrypt_verify
PASS: test-transport 40 /transport/test_generate_key
PASS: test-transport 41 /transport/test_generate_key_pair
PASS: test-transport 42 /transport/test_wrap_key
PASS: test-transport 43 /transport/test_unwrap_key
PASS: test-transport 44 /transport/test_derive_key
PASS: test-transport 45 /transport/test_random
PASS: test-transport 46 /transport/unix/basic
=======================================
   p11-kit 0.23.18: ./test-suite.log
=======================================

# TOTAL: 756
# PASS:  753
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 2

.. contents:: :depth: 2

ERROR: test-compat
==================

Assertion failed: false && "this code should not be reached" (common/test.c: p11_test_copy_setgid: 614)
1..4
./build/litter/tap-driver.sh: line 639:  8242 Aborted                 (core dumped) "$@"
ok 1 /compat/strndup
PASS: test-compat 1 /compat/strndup
ERROR: test-compat - too few tests run (expected 4, got 1)

ERROR: test-conf
================

(p11-kit:8361) p11_kit_modules_load: in
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/system-pkcs11.conf
(p11-kit:8361) _p11_conf_parse_file: config value: user-config: merge
(p11-kit:8361) _p11_conf_parse_file: config value: new: world
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/user-pkcs11.conf
(p11-kit:8361) _p11_conf_parse_file: config file does not exist
(p11-kit:8361) load_configs_from_directory: loading module configs in: /build/source/p11-kit/fixtures/user-modules
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/user-modules/one.module
(p11-kit:8361) _p11_conf_parse_file: config value: setting: user1
(p11-kit:8361) _p11_conf_parse_file: config value: managed: yes
(p11-kit:8361) _p11_conf_parse_file: config value: number: 33
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/user-modules/three.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-three.so
(p11-kit:8361) _p11_conf_parse_file: config value: setting: user3
(p11-kit:8361) _p11_conf_parse_file: config value: enable-in: test-enable
(p11-kit:8361) _p11_conf_parse_file: config value: priority: 3
(p11-kit:8361) load_configs_from_directory: loading module configs in: /build/source/p11-kit/fixtures/system-modules
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/system-modules/seven.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-seven.so
(p11-kit:8361) _p11_conf_parse_file: config value: critical: yes
(p11-kit:8361) _p11_conf_parse_file: config value: enable-in: test-modules
(p11-kit:8361) message: invalid config filename, will be ignored in the future: /build/source/p11-kit/fixtures/system-modules/two.badname
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/system-modules/two.badname
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-two.so
(p11-kit:8361) _p11_conf_parse_file: config value: setting: system2
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/system-modules/one.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-one.so
(p11-kit:8361) _p11_conf_parse_file: config value: setting: system1
(p11-kit:8361) _p11_conf_parse_file: config value: trust-policy: yes
(p11-kit:8361) _p11_conf_parse_file: config value: number: 18
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/system-modules/two-duplicate.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-two.so
(p11-kit:8361) load_configs_from_directory: loading module configs in: /build/source/p11-kit/fixtures/package-modules
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/package-modules/six.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-six.so
(p11-kit:8361) _p11_conf_parse_file: config value: enable-in: test-proxy
(p11-kit:8361) _p11_conf_parse_file: config value: priority: 100
(p11-kit:8361) _p11_conf_parse_file: reading config file: /build/source/p11-kit/fixtures/package-modules/four.module
(p11-kit:8361) _p11_conf_parse_file: config value: module: mock-four.so
(p11-kit:8361) _p11_conf_parse_file: config value: disable-in: test-disable, test-other
(p11-kit:8361) _p11_conf_parse_file: config value: priority: 4
(p11-kit:8361) _p11_conf_parse_file: config value: trust-policy: no
(p11-kit:8361) load_module_from_file_inlock: module path is relative, loading from: /build/source/.libs
(p11-kit:8361) load_module_from_file_inlock: loading module two.badname from path: /build/source/.libs/mock-two.so
(p11-kit:8361) dlopen_and_get_function_list: opened module: /build/source/.libs/mock-two.so
(p11-kit:8361) is_module_enabled_unlocked: disabled module 'six' running in 'frob-setuid'
(p11-kit:8361) is_module_enabled_unlocked: enabled module 'four' running in 'frob-setuid'
(p11-kit:8361) load_module_from_file_inlock: module path is relative, loading from: /build/source/.libs
(p11-kit:8361) load_module_from_file_inlock: loading module four from path: /build/source/.libs/mock-four.so
(p11-kit:8361) dlopen_and_get_function_list: opened module: /build/source/.libs/mock-four.so
(p11-kit:8361) is_module_enabled_unlocked: disabled module 'seven' running in 'frob-setuid'
(p11-kit:8361) load_module_from_file_inlock: module path is relative, loading from: /build/source/.libs
(p11-kit:8361) load_module_from_file_inlock: loading module two-duplicate from path: /build/source/.libs/mock-two.so
(p11-kit:8361) dlopen_and_get_function_list: opened module: /build/source/.libs/mock-two.so
(p11-kit:8361) load_module_from_file_inlock: duplicate module two-duplicate, using previous
(p11-kit:8361) load_module_from_file_inlock: module path is relative, loading from: /build/source/.libs
(p11-kit:8361) load_module_from_file_inlock: loading module one from path: /build/source/.libs/mock-one.so
(p11-kit:8361) dlopen_and_get_function_list: opened module: /build/source/.libs/mock-one.so
(p11-kit:8361) is_module_enabled_unlocked: disabled module 'three' running in 'frob-setuid'
(p11-kit:8361) is_module_enabled_unlocked: enabled module 'four' running in 'frob-setuid'
(p11-kit:8361) p11_kit_modules_load: out: success
(p11-kit:8361) managed_C_Initialize: in
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: calling
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: result: 0
(p11-kit:8361) managed_C_Initialize: out: 0
(p11-kit:8361) managed_C_Initialize: in
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: calling
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: result: 0
(p11-kit:8361) managed_C_Initialize: out: 0
(p11-kit:8361) managed_C_Initialize: in
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: calling
(p11-kit:8361) initialize_module_inlock_reentrant: C_Initialize: result: 0
(p11-kit:8361) managed_C_Initialize: out: 0
(p11-kit:8361) managed_C_Finalize: in
(p11-kit:8361) managed_C_Finalize: out: 0
(p11-kit:8361) managed_C_Finalize: in
(p11-kit:8361) managed_C_Finalize: out: 0
(p11-kit:8361) managed_C_Finalize: in
(p11-kit:8361) managed_C_Finalize: out: 0
(p11-kit:8361) p11_kit_modules_release: in
(p11-kit:8361) p11_kit_modules_release: out
Assertion failed: false && "this code should not be reached" (common/test.c: p11_test_copy_setgid: 614)
1..16
ok 1 /conf/test_parse_conf_1
PASS: test-conf 1 /conf/test_parse_conf_1
ok 2 /conf/test_parse_ignore_missing
PASS: test-conf 2 /conf/test_parse_ignore_missing
ok 3 /conf/test_parse_fail_missing
PASS: test-conf 3 /conf/test_parse_fail_missing
ok 4 /conf/test_merge_defaults
PASS: test-conf 4 /conf/test_merge_defaults
ok 5 /conf/test_load_globals_merge
PASS: test-conf 5 /conf/test_load_globals_merge
ok 6 /conf/test_load_globals_no_user
PASS: test-conf 6 /conf/test_load_globals_no_user
ok 7 /conf/test_load_globals_system_sets_only
PASS: test-conf 7 /conf/test_load_globals_system_sets_only
ok 8 /conf/test_load_globals_user_sets_only
PASS: test-conf 8 /conf/test_load_globals_user_sets_only
ok 9 /conf/test_load_globals_system_sets_invalid
PASS: test-conf 9 /conf/test_load_globals_system_sets_invalid
ok 10 /conf/test_load_globals_user_sets_invalid
PASS: test-conf 10 /conf/test_load_globals_user_sets_invalid
ok 11 /conf/test_load_modules_merge
PASS: test-conf 11 /conf/test_load_modules_merge
ok 12 /conf/test_load_modules_no_user
PASS: test-conf 12 /conf/test_load_modules_no_user
ok 13 /conf/test_load_modules_user_only
PASS: test-conf 13 /conf/test_load_modules_user_only
ok 14 /conf/test_load_modules_user_none
PASS: test-conf 14 /conf/test_load_modules_user_none
./build/litter/tap-driver.sh: line 639:  8352 Aborted                 (core dumped) "$@"
ok 15 /conf/test_parse_boolean
PASS: test-conf 15 /conf/test_parse_boolean
ERROR: test-conf - too few tests run (expected 16, got 15)

FAIL: test-token
================

1..21
ok 1 /token/load
PASS: test-token 1 /token/load
ok 2 /token/flags
PASS: test-token 2 /token/flags
ok 3 /token/path
PASS: test-token 3 /token/path
ok 4 /token/label
PASS: test-token 4 /token/label
ok 5 /token/slot
PASS: test-token 5 /token/slot
not ok 6 /token/not-writable
FAIL: test-token 6 /token/not-writable
# assertion failed (!p11_token_is_writable (token))
# test-token: assertion failed (!p11_token_is_writable (token))
# in test_not_writable() at test-token.c:244
# test-token: in test_not_writable() at test-token.c:244
ok 7 /token/writable-no-exist
PASS: test-token 7 /token/writable-no-exist
ok 8 /token/writable-exists
PASS: test-token 8 /token/writable-exists
ok 9 /token/load-found
PASS: test-token 9 /token/load-found
ok 10 /token/load-already
PASS: test-token 10 /token/load-already
ok 11 /token/load-unreadable
PASS: test-token 11 /token/load-unreadable
ok 12 /token/load-gone
PASS: test-token 12 /token/load-gone
ok 13 /token/load-contrived
PASS: test-token 13 /token/load-contrived
ok 14 /token/reload-changed
PASS: test-token 14 /token/reload-changed
ok 15 /token/reload-gone
PASS: test-token 15 /token/reload-gone
ok 16 /token/reload-no-origin
PASS: test-token 16 /token/reload-no-origin
ok 17 /token/write-new
PASS: test-token 17 /token/write-new
ok 18 /token/write-no-label
PASS: test-token 18 /token/write-no-label
ok 19 /token/modify-multiple
PASS: test-token 19 /token/modify-multiple
ok 20 /token/remove-one
PASS: test-token 20 /token/remove-one
ok 21 /token/remove-multiple
PASS: test-token 21 /token/remove-multiple

============================================================================
Testsuite summary for p11-kit 0.23.18
============================================================================
# TOTAL: 756
# PASS:  753
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 2
============================================================================
See ./test-suite.log
Please report to https://github.com/p11-glue/p11-kit/issues
============================================================================
make[4]: *** [Makefile:4847: test-suite.log] Error 1
make[4]: Leaving directory '/build/source'
make[3]: *** [Makefile:4955: check-TESTS] Error 2
make[3]: Leaving directory '/build/source'
make[2]: *** [Makefile:5554: check-am] Error 2
make[2]: Leaving directory '/build/source'
make[1]: *** [Makefile:4732: check-recursive] Error 1
make[1]: Leaving directory '/build/source'
make: *** [Makefile:5557: check] Error 2
builder for '/nix/store/ki6ga6ha10gadlvjmfjwbpa6cbskimn6-p11-kit-0.23.18.1.drv' failed with exit code 2
cannot build derivation '/nix/store/bpk8h84d278ggn8mx0rlasbs5p1lnw4h-gnutls-3.6.11.1.drv': 1 dependencies couldn't be built
building '/nix/store/q941bnmf4n6jmv7xgawrvxkhai7ym3jb-pciutils-3.6.2.drv'...
cannot build derivation '/nix/store/7bbx6d41gmvbcmfw2mgbqx4dr0g9irg4-cups-2.3.0.drv': 1 dependencies couldn't be built
building '/nix/store/a5vn0gdqc1qcd7fw1w3hfkycjb8gvy86-rhash-1.3.9.drv'...
cannot build derivation '/nix/store/vjla2k3v0s5p6zj7v9f3h7wgr13h9w7w-gtk+-2.24.32.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mzkiyj0sp30511bc5isvcc7xkfb6bnjs-gtk-0.15.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/0ikiwkqbnc8m5h729ywj02i3drc4fy4w-birch-beer-0.2.2.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/76zwyai0grfn1k9vhafvsai1dfwk6q35-too-many-cells-0.2.2.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/76zwyai0grfn1k9vhafvsai1dfwk6q35-too-many-cells-0.2.2.1.drv' failed
codygman commented 3 years ago

May be an issue upstream.

Yes, most likely.

I think that may be the case.

nh2 commented 3 years ago

NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix -A pkgs.p11-kit works for me in current master, thus closing, as it seems to be fixed.