摘要: 在使用c++多线程使用libcurl抓取网页时,遇到程序随机core掉的情况,gdb 一下出错信息有这么一条:longjmp causes uninitialized stack frame。在网上查了一下原来是curl有“CURLOPT_NOSIGNAL” ,将这个值设为1就忽略抛出的信号了~具体解释:CURLOPT_NOSIGNALPass a long. If it is 1, libcurl will not use any functions that install signal handlers or any functions that cause signals to be 阅读全文
posted @ 2014-03-20 20:17 anexplore 阅读(426) 评论(0) 推荐(0) 编辑