cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl_share_lock twice?? bug??

From: 邓民文 (dengminwen) <dengminwen_at_gmail.com>
Date: Wed, 27 Aug 2008 14:13:35 +0800

my program use curl_share_setopt with curl-7.18.2 in ubuntu 8.04

piece of call stack is as below

3: Curl_cookie_loadfiles() in cookie.c:144 <---- my program halt here
2: flush_cookies() in url.c:354
    ...
    other stuff
    ...
1: main()

the reason may be:
Curl_share_lock() be call twice, both in flush_cookies() and
Curl_cookie_loadfiles()

by the way:
       in windows, calling lock() twice is ok;
       but in pthread in linux, program will halt when call lock() twice.

-- 
dengminwen_at_gmail_dot_com
Received on 2008-08-27