Artifact [a7a9eea528]

Artifact a7a9eea528610115e6dd4a1524b7c37a7aca41713b614f2f50f085de3ebe3c20:

Ticket change [a7a9eea528] - Ticket [e01f02a12180ac37|e01f02a121] <i>Segfault under wish at first tls::import, not under tclsh</i> status still Open with 5 other changes by anonymous on 2020-09-02 06:40:21.
D 2020-09-02T06:40:21.198
J icomment Huh,\sthat\swas\seasier\sto\ssolve\sthan\sI\sthought.\r\n\r\nFirst,\sthe\seasiest\sway\sof\sdemonstrating\sthat\sthe\ssymbol\sbindings\s\r\nare\swrong\sis\sto\sset\sthe\senvironment\svariable\sDYLD_PRINT_BINDINGS.\s\r\nWith\sthat,\sand\sthe\sdefault\slinker\sflags\sfor\sshared-tcltls.dylib,\s\r\nwe\sget\s(in\sthe\svicinity\sof\sDH_new):\r\n\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742118\s=\slibcrypto.0.9.8.dylib:_DH_free,\s*0x100742118\s=\s0x7FFF8A4E6D50\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742120\s=\slibcrypto.0.9.8.dylib:_DH_new,\s*0x100742120\s=\s0x7FFF8A4E70D0\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742128\s=\slibcrypto.1.1.dylib:_DH_set0_pqg,\s*0x100742128\s=\s0x114E7C52A\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742130\s=\slibcrypto.0.9.8.dylib:_ERR_clear_error,\s*0x100742130\s=\s0x7FFF8A52DB30\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742138\s=\slibcrypto.0.9.8.dylib:_ERR_get_error,\s*0x100742138\s=\s0x7FFF8A52DB10\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742140\s=\slibcrypto.0.9.8.dylib:_ERR_reason_error_string,\s*0x100742140\s=\s0x7FFF8A550810\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742148\s=\slibcrypto.0.9.8.dylib:_EVP_PKEY_assign,\s*0x100742148\s=\s0x7FFF8A4BDBA0\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742150\s=\slibcrypto.0.9.8.dylib:_EVP_PKEY_free,\s*0x100742150\s=\s0x7FFF8A4BDAD0\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742158\s=\slibcrypto.0.9.8.dylib:_EVP_PKEY_new,\s*0x100742158\s=\s0x7FFF8A4BD410\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742160\s=\slibcrypto.0.9.8.dylib:_EVP_md5,\s*0x100742160\s=\s0x7FFF8A4F6F50\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742168\s=\slibcrypto.0.9.8.dylib:_EVP_sha1,\s*0x100742168\s=\s0x7FFF8A55B140\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742170\s=\slibcrypto.1.1.dylib:_OPENSSL_init_crypto,\s*0x100742170\s=\s0x114F10356\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742178\s=\slibssl.1.1.dylib:_OPENSSL_init_ssl,\s*0x100742178\s=\s0x114D244F9\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742180\s=\slibcrypto.1.1.dylib:_OPENSSL_sk_num,\s*0x100742180\s=\s0x114F7B653\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100742188\s=\slibcrypto.1.1.dylib:_OPENSSL_sk_value,\s*0x100742188\s=\s0x114F7B67B\r\n\r\nFurther\sup\sthere\sare\sa\slot\smore\sbinding\sto\slibcrypto.1.1.dylib,\s\r\nso\sit's\snot\sas\smuch\s0.9.8\soverall\sas\sthis\sexcerpt\smight\ssuggest,\s\r\nbut\sany\samount\sof\sschizophrenic\sbindings\sis\sa\scrash\swaiting\sto\shappen.\r\n\r\nNow\swhy\sare\sthe\sbindings\sdone\sin\sthis\scrazy\sway?\sIt\sturns\sout\sthe\s\r\nstandard\sLDFLAGS\sinclude\r\n\s\s\s-flat_namespace\s\r\nwhich\sliterally\smeans\s"don't\spay\sattention\sto\swhat\slibrary\sa\ssymbol\s\r\nshould\sbe\sfrom,\sjust\sgrab\sthe\sfirst\ssymbol\swith\sthe\sright\sname\sthat\s\r\ncomes\salong".\sPretty\smuch\sthe\ssource\sof\sthese\stroubles,\sisn't\sit?\s\r\nIndeed,\sif\sremoving\sthat\sflag\sand\sthe\ssubsequent\s-undefined\ssuppress\s\r\nfrom\sthe\sLDFLAGS,\stcltls\sstill\sbuilds\sjust\sfine,\sand\sthe\sbindings\s\r\nnow\slook\ssane:\r\n\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642118\s=\slibcrypto.1.1.dylib:_DH_free,\s*0x100642118\s=\s0x114F7C221\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642120\s=\slibcrypto.1.1.dylib:_DH_new,\s*0x100642120\s=\s0x114F7BFD0\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642128\s=\slibcrypto.1.1.dylib:_DH_set0_pqg,\s*0x100642128\s=\s0x114F7C52A\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642130\s=\slibcrypto.1.1.dylib:_ERR_clear_error,\s*0x100642130\s=\s0x114FE1ACE\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642138\s=\slibcrypto.1.1.dylib:_ERR_get_error,\s*0x100642138\s=\s0x114FE1BD4\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642140\s=\slibcrypto.1.1.dylib:_ERR_reason_error_string,\s*0x100642140\s=\s0x114FE26A1\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642148\s=\slibcrypto.1.1.dylib:_EVP_PKEY_assign,\s*0x100642148\s=\s0x11500686E\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642150\s=\slibcrypto.1.1.dylib:_EVP_PKEY_free,\s*0x100642150\s=\s0x115006DE8\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642158\s=\slibcrypto.1.1.dylib:_EVP_PKEY_new,\s*0x100642158\s=\s0x115006002\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642160\s=\slibcrypto.1.1.dylib:_EVP_md5,\s*0x100642160\s=\s0x115002E37\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642168\s=\slibcrypto.1.1.dylib:_EVP_sha1,\s*0x100642168\s=\s0x11500353E\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642170\s=\slibcrypto.1.1.dylib:_OPENSSL_init_crypto,\s*0x100642170\s=\s0x115010356\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642178\s=\slibssl.1.1.dylib:_OPENSSL_init_ssl,\s*0x100642178\s=\s0x114E244F9\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642180\s=\slibcrypto.1.1.dylib:_OPENSSL_sk_num,\s*0x100642180\s=\s0x11507B653\r\ndyld:\slazy\sforcedbind:\stcltls.dylib:0x100642188\s=\slibcrypto.1.1.dylib:_OPENSSL_sk_value,\s*0x100642188\s=\s0x11507B67B\r\n\r\nNot\sa\s0.9.8\sin\ssight,\sand\snow\sI\scan\shave\swish\seval\r\n\s\s\shttp::geturl\shttps://www.tcl-lang.org/\r\nwithout\ssegfaulting.\sPromising,\sbut\smaybe\sa\sproper\sfix\sshould\srather\s\r\nbe\sin\sthe\sTcl\sbuild\ssystem,\ssince\sthat\sis\swhat\scontributes\sthe\s\r\n-flat_namespace.\sTime\sfor\sanother\sbug\sreport,\sI\ssuppose.
J login anonymous
J mimetype text/x-fossil-plain
J type Build\sProblem
J username lars_h
K e01f02a12180ac37cdb96ec16d0e03f89033cd77
U anonymous
Z 08cd3e2dea6525bb63449876af6de1d7