Skip to content

thttpclient_ssl.nim, thttpclient_ssl_remotenetwork.nim fails on linux: genericDeepCopyAux SIGSEGV #16338

@timotheecour

Description

@timotheecour

tests/untestable/thttpclient_ssl.nim fails on linux i386 (EDIT: also amd64)

genericDeepCopyAux SIGSEGV

Example

nim r -d:ssl --threads:on tests/untestable/thttpclient_ssl.nim

Current Output

in CI on linux i386 (found while working on #16221):

2020-12-12T08:08:45.1952425Z Output:
2020-12-12T08:08:45.1952654Z 
2020-12-12T08:08:45.1953144Z [Suite] SSL certificate check - disabled
2020-12-12T08:08:45.1953433Z 
2020-12-12T08:08:45.1953924Z [Suite] SSL certificate check - httpclient
2020-12-12T08:08:45.1954835Z          no-common-name (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1956590Z          no-subject (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1957540Z          incomplete-chain (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1957928Z 
2020-12-12T08:08:45.1958318Z [Suite] SSL certificate check - httpclient - threaded
2020-12-12T08:08:45.1959068Z          no-common-name (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1959968Z          no-subject (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1960898Z          incomplete-chain (dubious_broken) raised: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2020-12-12T08:08:45.1961382Z Traceback (most recent call last)
2020-12-12T08:08:45.1961633Z thttpclient_ssl.nim(173) thttpclient_ssl
2020-12-12T08:08:45.1961887Z threadpool.nim(263)      ^
2020-12-12T08:08:45.1962125Z deepcopy.nim(190)        genericDeepCopy
2020-12-12T08:08:45.1962396Z deepcopy.nim(152)        genericDeepCopyAux
2020-12-12T08:08:45.1962715Z SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Expected Output

works

Additional Information

devel 1.5.1 0b73106
note that before #16221, this test wasn't tested on i386:

matrix:
        os: [ubuntu-18.04, macos-10.15, windows-2019]
        cpu: [amd64]

it's either very flaky or always fails, not sure

links

flaky test tests/untestable/thttpclient_ssl.nim: genericDeepCopyAux SIGSEGV · Issue #410 · timotheecour/Nim

thttpclient_ssl flaky test on Linux_i386 · Issue #448 · timotheecour/Nim

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions