hw-1

openssl crash sha1_block_data_order

openssl crash sha1_block_data_order

openssl crash

1
2
3
4
Program terminated with signal 11, Segmentation fault.
#0 0xf7779875c in sha1_block_data_order () from /opt/xxx/xxx/libxxx.so
#1 0xf7797926 in SHA1_Update () from /opt/xxx/xxx/libxxx.so
#2 0x00000000 in ?? ()

1,因为多线程调用,openssl在多线程调用时为了保证线程安全,需要在每个调用线程里明确设置两个callback函数

Is OpenSSL thread-safe?
Yes (with limitations: an SSL connection may not concurrently be used by multiple threads). On Windows and many Unix systems, OpenSSL automatically uses the multi-threaded versions of the standard libraries. If your platform is not one of these, consult the INSTALL file.

Multi-threaded applications must provide two callback functions to OpenSSL by calling CRYPTO_set_locking_callback() and CRYPTO_set_id_callback(), for all versions of OpenSSL up to and including 0.9.8[abc…]. As of version 1.0.0, CRYPTO_set_id_callback() and associated APIs are deprecated by CRYPTO_THREADID_set_callback() and friends. This is described in the threads(3) manpage.

2,编译openssl的时候我们加上了-fPIC选项,fPIC作用于编译阶段,告诉编译器产生与位置无关代码(Position-Independent Code),则产生的代码中,没有绝对地址,全部使用相对地址,故而代码可以被加载器加载到内存的任意位置,都可以正确的执行。

gcc在生成位置无关代码的时候,内部使用了ebx作为基址寄存器。如果不使用内嵌汇编,那么gcc自然会帮助你维持ebx的值始终有效。但是如果使用了内嵌汇编,gcc常常就有点力不从心了,所以这时候,一定要自己留意保存好ebx的值。

Loading .onion on device "The Internet connection appears to be offline"

Loading .onion on device “The Internet connection appears to be offline”

for some reason this bubbled to the top of the thread list today, so I thought I’d post a quick summary of what I’ve since learnt about the issue.

First, RFC 7686 explains that

1
.onion

names are special, in the sense defined by RFC 6761.

By default, iOS has a policy that blocks all traffic associated with that domain, and it’s this policy that’s causing the

1
NSURLErrorNotConnectedToInternet

(-1009) error.

It’s possible to disable this policy deeper in the system [1], but it’s not possible to disable it within a specific app. I haven’t yet come to a conclusion as to whether there’s a solution for lsease’s high-level problem.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = “eskimo” + “1” + “@apple.com”

[1] Specifically, if you configure a VPN interface with a

SupplementalMatchDomains

property that includes

1
onion

, the policy is disabled for just that interface. See Configuration Profile Reference for more about

1
SupplementalMatchDomains

link:https://developer.apple.com/forums/thread/116033

openssl post APNS error verify error:num=10:certificate has expired

openssl post APNS error verify error:num=10:certificate has expired

depth=2 O = Entrust.net, OU = www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), OU = (c) 1999 Entrust.net Limited, CN = Entrust.net Certification Authority (2048)
verify error:num=10:certificate has expired

1
$ openssl s_client -connect gateway.sandbox.push.apple.com:2195   -CAfile server-ca-cert.pem

https://www.entrust.com/root-certificates/entrust_2048_ca.cer

flutter-gradle-task-assembledebug-failed

Flutter: Gradle task assembleDebug failed (configuring root project ‘android’)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.5.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.5.0.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
> Connect to 127.0.0.1:8123 [/127.0.0.1] failed: Connection refused: connect
> Could not resolve com.android.tools.build:gradle:3.5.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
> Connect to 127.0.0.1:8123 [/127.0.0.1] failed: Connection refused: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s
Finished with error: Gradle task assembleDebug failed with exit code 1

原因
gradle 缓存了代理信息,没有时实更新

解决方法

1
rm -rf ~/.gradle

治愈系课程-七大体系八大充节完整版 – 免费下载

治愈系课程-七大体系八大充节完整版

课程目录:/跟谁学-耿建超:治愈系英语七大体系八大节完整版 [12.3G]
┣━━课程包 [9.2G]
┃ ┣━━耿建超治愈系完整版视频(71节) [8.6G]
┃ ┃ ┣━━01治愈系课程体系介绍(必听).mp4 [127.6M]
┃ ┃ ┣━━02 治愈系课程-音标1.mp4 [175M]
┃ ┃ ┣━━03 治愈系课程-音标2.mp4 [164.9M]
┃ ┃ ┣━━04两小时记忆150单词1.mp4 [208.7M]
┃ ┃ ┣━━05 两小时记忆150单词2.mp4 [157.2M]
┃ ┃ ┣━━06 时态(1)特殊疑问句.mp4 [118.8M]
┃ ┃ ┣━━07 时态(2)一般、否定疑问句、现表将来.mp4 [102.5M]
┃ ┃ ┣━━08 时态(3)一般现在时、疑问词主语相同的句子.mp4 [112.3M]
┃ ┃ ┣━━09 时态(4)不带动词的句子.mp4 [115.3M]
┃ ┃ ┣━━10 时态(5)疑问词.mp4 [101.3M]
┃ ┃ ┣━━11 被动语态(1).mp4 [97.3M]
┃ ┃ ┣━━12 被动语态(2).mp4 [90.5M]
┃ ┃ ┣━━13 被动语态(3).mp4 [60.5M]
┃ ┃ ┣━━14 现在完成时(1).mp4 [70.1M]
┃ ┃ ┣━━15 现在完成时(2).mp4 [110.2M]
┃ ┃ ┣━━16 情态动词(1).mp4 [147.3M]
┃ ┃ ┣━━17 情态动词(2).mp4 [149.9M]
┃ ┃ ┣━━18 情态动词(3).mp4 [118M]
┃ ┃ ┣━━19 情态动词(4).mp4 [85.4M]
┃ ┃ ┣━━20 情态动词(5).mp4 [109.3M]
┃ ┃ ┣━━21 虚拟语气(1).mp4 [93.8M]
┃ ┃ ┣━━22 虚拟语气(2).mp4 [93.5M]
┃ ┃ ┣━━23 虚拟语气(3).mp4 [107.9M]
┃ ┃ ┣━━24.虚拟语气(4).mkv [1.5G]
┃ ┃ ┣━━25 (重点):陈述句(1).mp4 [72.1M]
┃ ┃ ┣━━26 陈述句(2):两种句子结构.mp4 [73.1M]
┃ ┃ ┣━━27 陈述句(3):结构+情态动词.mp4 [79.8M]
┃ ┃ ┣━━28 陈述句(4)高频扩充.mp4 [73.9M]
┃ ┃ ┣━━29 陈述句(5)高频扩充.mp4 [71.3M]
┃ ┃ ┣━━30 陈述句(6)高频扩充.mp4 [95.1M]
┃ ┃ ┣━━31 陈述句(7)知识点归总,第一部分完结.mp4 [95.9M]
┃ ┃ ┣━━32 陈述句第二部分(1)5结构,8成分,11词类.mp4 [99.9M]
┃ ┃ ┣━━33 陈述句第二部分(2)公式的出现及运用.mp4 [85.5M]
┃ ┃ ┣━━34 陈述句第二部分(3)公式反用.mp4 [71.6M]
┃ ┃ ┣━━35 陈述句第二部分(4)公式造句,突出结构.mp4 [120.7M]
┃ ┃ ┣━━36 陈述句第二部分(5)高频介词的补充.mp4 [81.3M]
┃ ┃ ┣━━37 陈述句第二部分(6)高频介词补充.mp4 [68.4M]
┃ ┃ ┣━━38 陈述句第二部分(7)高频介词补充.mp4 [69.9M]
┃ ┃ ┣━━39 陈述句第二部分(8)最后补充+疑问句翻译方式.mp4 [81.8M]
┃ ┃ ┣━━40 陈述句第二部分(9)连词.mp4 [72.4M]
┃ ┃ ┣━━41 陈述句第二部分(10)不定代词.mp4 [83.3M]
┃ ┃ ┣━━42 陈述句第二部分(11)复合不定代词,所有格,冠词.mp4 [114.9M]
┃ ┃ ┣━━43 陈述句第二部分(12)冠词,陈述段.mp4 [64.3M]
┃ ┃ ┣━━44 从句-使动词.mp4 [56.4M]
┃ ┃ ┣━━45 从句-主语从句.mp4 [101.3M]
┃ ┃ ┣━━46 从句-宾语从句.mp4 [91.7M]
┃ ┃ ┣━━47 从句-表语从句.mp4 [89.9M]
┃ ┃ ┣━━48 从句-定语从句(1).mp4 [108M]
┃ ┃ ┣━━49 从句-定语从句(2).mp4 [61.1M]
┃ ┃ ┣━━50 从句-定语从句(3).mp4 [88.4M]
┃ ┃ ┣━━51 从句-定语从句(4).mp4 [73.1M]
┃ ┃ ┣━━52 从句-定语从句(5).mp4 [1.6M]
┃ ┃ ┣━━53 从句-状语从句(1).mp4 [173.9M]
┃ ┃ ┣━━54 从句-状语从句(2).mp4 [94.9M]
┃ ┃ ┣━━55 从句-状语从句(3).mp4 [120.1M]
┃ ┃ ┣━━56 非谓语动词-做主语.mp4 [120.1M]
┃ ┃ ┣━━57 非谓语动词-做宾语与表语.mp4 [110.6M]
┃ ┃ ┣━━58 非谓语动词做宾补.mp4 [70.8M]
┃ ┃ ┣━━59 非谓语动词做宾补-使役动词.mp4 [110.3M]
┃ ┃ ┣━━60 非谓语动词做定语.mp4 [110.1M]
┃ ┃ ┣━━61 非谓语动词做状语.mp4 [130.8M]
┃ ┃ ┣━━62 独立主格.mp4 [62.9M]
┃ ┃ ┣━━63 强调句型.mp4 [62.4M]
┃ ┃ ┣━━64 倒装句.mp4 [76.7M]
┃ ┃ ┣━━65 现在完成时与现在完成进行时.mp4 [94.7M]
┃ ┃ ┣━━66 副词与介词up.mp4 [105.4M]
┃ ┃ ┣━━67 副词与介词down.mp4 [110.7M]
┃ ┃ ┣━━68 副词与介词off、away.mp4 [144.1M]
┃ ┃ ┣━━69 副词与介词over.mp4 [152M]
┃ ┃ ┣━━70 副词与介词by、against.mp4 [134.1M]
┃ ┃ ┗━━补充课1.耿老师治愈系直播答疑.mp4 [304.5M]
┃ ┗━━音标发音讲解视频 [644.2M]
┃ ┣━━第01课.mp4 [15.3M]
┃ ┣━━第02课.mp4 [6.5M]
┃ ┣━━第03课.mp4 [18.8M]
┃ ┣━━第04课.mp4 [14M]
┃ ┣━━第05课.mp4 [9.8M]
┃ ┣━━第06课.mp4 [6.9M]
┃ ┣━━第07课.mp4 [6.2M]
┃ ┣━━第08课.mp4 [6.3M]
┃ ┣━━第09课.mp4 [8.7M]
┃ ┣━━第10课.mp4 [7.7M]
┃ ┣━━第11课.mp4 [10.4M]
┃ ┣━━第12课.mp4 [4.2M]
┃ ┣━━第13课.mp4 [13.8M]
┃ ┣━━第14课.mp4 [16M]
┃ ┣━━第15课.mp4 [13.2M]
┃ ┣━━第16课.mp4 [8.9M]
┃ ┣━━第17课.mp4 [9.9M]
┃ ┣━━第18课.mp4 [9.3M]
┃ ┣━━第19课.mp4 [11.4M]
┃ ┣━━第20课.mp4 [15.6M]
┃ ┣━━第21课.mp4 [20.7M]
┃ ┣━━第22课.mp4 [10.3M]
┃ ┣━━第23课.mp4 [8.9M]
┃ ┣━━第24课.mp4 [8.3M]
┃ ┣━━第25课.mp4 [10.3M]
┃ ┣━━第26课.mp4 [10.6M]
┃ ┣━━第27课.mp4 [17.3M]
┃ ┣━━第28课.mp4 [8.7M]
┃ ┣━━第29课.mp4 [17.3M]
┃ ┣━━第30课.mp4 [9.1M]
┃ ┣━━第31课.mp4 [10M]
┃ ┣━━第32课.mp4 [9.2M]
┃ ┣━━第33课.mp4 [23.3M]
┃ ┣━━第34课.mp4 [19M]
┃ ┣━━第35课.mp4 [13.9M]
┃ ┣━━第36课.mp4 [11M]
┃ ┣━━第37课.mp4 [8.7M]
┃ ┣━━第38课.mp4 [9.5M]
┃ ┣━━第39课.mp4 [5.8M]
┃ ┣━━第40课.mp4 [9.9M]
┃ ┣━━第41课.mp4 [10.8M]
┃ ┣━━第42课.mp4 [18.8M]
┃ ┣━━第43课.mp4 [14.7M]
┃ ┣━━第44课.mp4 [4.2M]
┃ ┣━━第45课.mp4 [21.1M]
┃ ┣━━第46课.mp4 [19M]
┃ ┣━━第47课.mp4 [11M]
┃ ┣━━第48课.mp4 [16.2M]
┃ ┣━━第49课.mp4 [13.4M]
┃ ┣━━第50课.mp4 [15.1M]
┃ ┣━━第51课.mp4 [11.7M]
┃ ┣━━第52课.mp4 [15.4M]
┃ ┣━━第53课.mp4 [9.3M]
┃ ┣━━第54课.mp4 [8.7M]
┃ ┗━━重点难点笔记整理.doc [167K]
┗━━资料包 [3.1G]
┣━━笔记思维导图 [539.6K]
┃ ┣━━句子.png [138.9K]
┃ ┣━━学习方式方法.png [52.9K]
┃ ┗━━疑问句.png [347.8K]
┣━━耿建超词汇 [443.5M]
┃ ┣━━001 默认章.mp4 [275.2M]
┃ ┗━━002 如何做到两小时记忆150单词.mp4 [168.3M]
┣━━耿老师课件 [10.6M]
┃ ┣━━01音标.pptx [520.8K]
┃ ┣━━02疑问句.pptx [483.9K]
┃ ┣━━03被动语态.pptx [1.1M]
┃ ┣━━04现在完成时.pptx [464.2K]
┃ ┣━━05情态动词.pptx [471.6K]
┃ ┣━━06虚拟语气.pptx [402.5K]
┃ ┣━━07陈述句.pptx [537.1K]
┃ ┣━━07陈述句2.pptx [618.7K]
┃ ┣━━08陈述段.pptx [457.8K]
┃ ┣━━09使动词.pptx [451K]
┃ ┣━━10状语从句.pptx [462.5K]
┃ ┣━━11定语从句.pptx [431.8K]
┃ ┣━━12非谓语与做状语.pptx [390.1K]
┃ ┣━━13独立主格.pptx [410.7K]
┃ ┣━━14强调句型.pptx [385.6K]
┃ ┣━━15倒装句.pptx [394.6K]
┃ ┣━━16现在完成时与现在完成进行时.pptx [387.7K]
┃ ┣━━17副词与介词.pptx [400.3K]
┃ ┣━━18 down.pptx [399.3K]
┃ ┣━━19 off.pptx [402.9K]
┃ ┣━━20 over.pptx [406.9K]
┃ ┣━━21 by.pptx [406.6K]
┃ ┗━━22 against.pptx [386.3K]
┣━━讲义笔记 [273.1K]
┃ ┣━━1时态笔记.docx [37.4K]
┃ ┣━━2被动语态笔记.docx [25.7K]
┃ ┣━━3现在完成时笔记.docx [35.2K]
┃ ┣━━4情态动词笔记.docx [67.9K]
┃ ┣━━5虚拟语气笔记.docx [19.8K]
┃ ┣━━6陈述句一笔记.docx [32.6K]
┃ ┗━━7陈述句二笔记.docx [54.5K]
┣━━英语推荐参考 [2.5G]
┃ ┣━━单词 [725.7M]
┃ ┃ ┣━━单词课课件(1~3课).pdf [16.6M]
┃ ┃ ┣━━第1课:高频必考词第一组.mp4 [317.9M]
┃ ┃ ┗━━第2课:高频必考词第2组.mp4 [391.2M]
┃ ┣━━长难句 [978.3M]
┃ ┃ ┣━━第1课:“长”在哪儿?“难”在哪儿?.mp4 [205.6M]
┃ ┃ ┗━━第6课:破解长难句的三个步骤.mp4 [772.7M]
┃ ┣━━作文 [900.6M]
┃ ┃ ┣━━1“英语高分作文36法则”微课PPT(Lesson1).pdf [3M]
┃ ┃ ┣━━2“英语高分作文36法则”微课PPT(Lesson2).pdf [3.1M]
┃ ┃ ┣━━第1课:钻石法则1:主语从句+系动词+表语从句.mp4 [336.1M]
┃ ┃ ┗━━第2课:钻石法则2:冒号用于引出分述或提起下文.mp4 [558.4M]
┃ ┗━━推荐资料,自用.jpg [322K]
┣━━治愈系英语录音提问 [64.1M]
┃ ┣━━治愈系 结课仪式完整版.mp3 [57.4M]
┃ ┣━━治愈系英语录音提问1.mp3 [1.6M]
┃ ┣━━治愈系英语录音提问2.mp3 [1.3M]
┃ ┣━━治愈系英语录音提问3.mp3 [1.6M]
┃ ┣━━治愈系英语录音提问使用方法.mp3 [2.2M]
┃ ┗━━治愈系英语疑问100句.xlsx [15.2K]
┣━━作业 [4.5M]
┃ ┣━━结课复习前五节课 [3.7M]
┃ ┃ ┣━━1.jpg [49.1K]
┃ ┃ ┣━━2.jpg [47.1K]
┃ ┃ ┣━━3.jpg [34.5K]
┃ ┃ ┣━━4.jpg [59.3K]
┃ ┃ ┣━━5.jpg [36.3K]
┃ ┃ ┣━━6.jpg [43.3K]
┃ ┃ ┣━━7.jpg [39.4K]
┃ ┃ ┣━━8.jpg [53.5K]
┃ ┃ ┣━━9.jpg [52.2K]
┃ ┃ ┣━━10.jpg [41K]
┃ ┃ ┣━━11.jpg [53.3K]
┃ ┃ ┣━━12.jpg [36.2K]
┃ ┃ ┣━━13.jpg [31K]
┃ ┃ ┣━━14.jpg [40.1K]
┃ ┃ ┣━━15.jpg [154.8K]
┃ ┃ ┣━━16.jpg [151.9K]
┃ ┃ ┣━━17.jpg [87K]
┃ ┃ ┣━━18.jpg [40K]
┃ ┃ ┣━━19.jpg [43K]
┃ ┃ ┗━━资料说明.png [2.6M]
┃ ┣━━语音作业—时态 [326.1K]
┃ ┃ ┣━━作业1.jpg [43.4K]
┃ ┃ ┣━━作业2.jpg [62.8K]
┃ ┃ ┣━━作业3.jpg [95.6K]
┃ ┃ ┣━━作业4.jpg [68.8K]
┃ ┃ ┗━━作业5.jpg [55.5K]
┃ ┣━━1·5次作业.xlsx [14.8K]
┃ ┣━━被动式作业1.xlsx [10.9K]
┃ ┣━━被动式作业2.xlsx [11K]
┃ ┣━━陈述句(2) 连词.xlsx [15.4K]
┃ ┣━━陈述句(2)1.xlsx [13.8K]
┃ ┣━━陈述句(2)2与3.xlsx [16.8K]
┃ ┣━━陈述句(2)4与5.xlsx [15.1K]
┃ ┣━━陈述句(2)陈述段.xlsx [21.1K]
┃ ┣━━陈述句(2)代词.xlsx [13.9K]
┃ ┣━━陈述句作业1.xlsx [15.3K]
┃ ┣━━陈述句作业2.xlsx [12.4K]
┃ ┣━━陈述句作业3.xlsx [13.8K]
┃ ┣━━陈述句作业4与5.xlsx [16.1K]
┃ ┣━━陈述句作业6.xlsx [12.2K]
┃ ┣━━陈述句作业7.xlsx [17.1K]
┃ ┣━━从句-表语从句.xlsx [15.7K]
┃ ┣━━从句-宾语从句.xlsx [17.2K]
┃ ┣━━从句-时间状语从句.xlsx [17.8K]
┃ ┣━━从句-主语从句.xlsx [17.1K]
┃ ┣━━定语从句.xlsx [19.1K]
┃ ┣━━非谓语动词做宾补 及 使役动词.xlsx [19.3K]
┃ ┣━━非谓语动词做宾语与表语.xlsx [13.3K]
┃ ┣━━非谓语动词做定语.xlsx [12K]
┃ ┣━━非谓语动词做主语.xlsx [13.7K]
┃ ┣━━名词性从句的虚拟语气.xlsx [10.9K]
┃ ┣━━情态动词过去式作业1.xlsx [13.3K]
┃ ┣━━情态动词作业1.xlsx [17.7K]
┃ ┣━━情态动词作业2.xlsx [12.6K]
┃ ┣━━现在完成时作业.xlsx [13.9K]
┃ ┣━━虚拟语气作业1.xlsx [9.9K]
┃ ┣━━虚拟语气作业2.xlsx [11.4K]
┃ ┣━━虚拟语气作业3.xlsx [12.4K]
┃ ┣━━治愈系第1课作业 .xlsx [9.5K]
┃ ┣━━状语从句2.xlsx [15.2K]
┃ ┗━━状语从句3.xlsx [15.7K]
┗━━作业总结 [3.5M]
┣━━被动语态练习.png [423.2K]
┣━━被动语态语音作业.png [329.9K]
┣━━被动语态作业.png [391.3K]
┣━━时态语音作业.png [366.6K]
┣━━时态作业.png [664.6K]
┗━━疑问句100句.png [1.3M]

链接: https://pan.baidu.com/s/1m2jx_u4i8n21oDJN-Gew8g 提取码: db66 复制这段内容后打开百度网盘手机App,操作更方便哦

轻松解决Tensorflow报错illegal instruction (core dumped)

轻松解决Tensorflow报错illegal instruction (core dumped)
运行 import tensorflow 的时候,出现下面的问题:

1
illegal instruction (core dumped)

关于问题的讨论在Github上有开issue #17441。stackoverflow也有相关问题回答。
总结相关回答:新版本(version >= 1.6.0)的Tensorflow binary release是在avx指令环境下编译的。如果你的CPU不支持该类型指令,就不能使用新版本。[1]
解决方案
首先要确定的是:如果你使用的是虚拟机,要确定是否支持avx指令集!
cat /proc/cpuinfo #下图中没有avx,则不支持。
1 降级Tensorflow版本到1.5或更低。(不推荐,但可以尝试一下。)

1
pip install --upgrade tensorflow==1.5
  1. tensorflow源码编译的方法。(不推荐,太麻烦了)
  2. 换个CPU 。(不推荐,有钱任性也可以)
  3. 使用conda的环境解决。(推荐,好用)
1
2
3
conda create -n tensorflow python=3.6  # 创建虚拟环境,已经是虚拟环境就忽略吧
source activate tensorflow # 激活虚拟环境
conda install tensorflow-gpu == 1.14.0 # 安装tensorflow