在无法在中找出我的应用程序中发生了什么之后,我尝试在我的pc上复制它,使用valgrind来查找内存/多线程问题。我在很多地方看到过这样的情况:
==769== Possible data race during write of size 4 at 0xACD3ADC by thread #13
==769== Locks held: none
==769== at 0x4C36067: memset (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so)
==769== by 0x4E4570D: pthread_cre
我在这里看过几个类似的问题,但没有一个问题对我有帮助。我想连接到一个使用单点登录的web服务,通过RSA SecurID keyfob。首先,我尝试加载初始GET请求提供的任何cookie。这是我的命令:
curl -A "Mozilla/5.0" -L -b cookies.txt -c cookies.txt -v -X GET \
https://sso.example.com/sso/login.htm
我得到的回应是:
* About to connect() to sso.example.com port 443 (#0)
* Trying 23.12.24
在我们的生产环境( Red Hat Enterprise Linux Server release 5.4 (Tikanga)和curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5)中,POST请求自动变为GET请求是非常棘手的。以下是nginx提供的相关日志。
cache: [GET /login] miss
url->http://localhost:8080/login
About to connect() to localhost port 8080