Closed GoogleCodeExporter closed 9 years ago
if the account has been created, pidgin will say "Unable to connect to
api.twitter.com: SSL Connection Failed" and then crash
(13:44:40) util: requesting to fetch a URL
(13:44:40) dns: DNS query for 'api.twitter.com' queued
(13:44:40) twitter: looking for twitgin
(13:44:40) twitter: registering twitgin-replying-message signal
(13:44:40) autorecon: done calling purple_account_connect
(13:44:40) dns: Wait for DNS child 6022 failed: No child processes
(13:44:40) dns: Created new DNS child 6024, there are now 1 children.
(13:44:40) dns: Successfully sent DNS request to child 6024
(13:44:40) dns: Got response for 'api.twitter.com'
(13:44:40) dnsquery: IP resolved for api.twitter.com
(13:44:40) proxy: Attempting connection to 1.2.3.4
(13:44:40) proxy: Connecting to api.twitter.com:443 with no proxy
(13:44:40) proxy: Connection in progress
dns[6024]: nobody needs me... =(
(13:45:01) proxy: Connecting to api.twitter.com:443.
(13:45:01) proxy: Error connecting to api.twitter.com:443 (Connection timed
out).
(13:45:01) proxy: Connection attempt failed: Connection timed out
(13:45:01) mb_net: mb_conn_fetch_url_cb: url_data = 0xb4ef90
(13:45:01) mb_net: mb_conn_data_free: conn_data = 0xb4ecc0
(13:45:01) mb_net: freeing host name
(13:45:01) mb_net: freeing HTTP data->response
(13:45:01) mb_http: freeing http data
(13:45:01) mb_http: freeing header hash table
(13:45:01) mb_http: freeing self
(13:45:01) mb_net: freeing HTTP data->request
(13:45:01) mb_http: freeing http data
(13:45:01) mb_http: freeing host
(13:45:01) mb_http: freeing path
(13:45:01) mb_http: freeing header hash table
(13:45:01) mb_http: freeing fixed headers
(13:45:01) mb_http: freeing each parameter
(13:45:01) mb_http: freeing parameter, oauth_consumer_key=PCWAdQpyyR12ezp2fVwEhw
(13:45:01) mb_http: freeing parameter, oauth_nonce=1Sj82uNao48sj46wNryzEoWXJOeTt
(13:45:01) mb_http: freeing parameter, oauth_signature_method=HMAC-SHA1
(13:45:01) mb_http: freeing parameter, oauth_timestamp=1283060680
(13:45:01) mb_http: freeing parameter,
oauth_token=184100932-NGNM6pR31kMnvYfPWnAgycyuayB00CHAMYEaabec
(13:45:01) mb_http: freeing parameter, oauth_version=1.0
(13:45:01) mb_http: freeing parameter,
oauth_signature=6YT0/X6gtJW+Kn6DEfL5YKHkrH0=
(13:45:01) mb_http: freeing all params
(13:45:01) mb_http: freeing packet
(13:45:01) mb_http: freeing self
(13:45:01) mb_net: unregistering conn_data from MbAccount
(13:45:01) mb_net: freeing self at 0xb4ecc0
Segmentation fault
Original comment by worldweave@gmail.com
on 29 Aug 2010 at 5:47
Here is my investigation: crashh occures in twitter_verify_authen() when it
accesses conn_data->response.
It happens because conn_data->response is already freed in
mb_conn_fetch_url_cb(): Here is the code (line 162 on trunk)
if(error_message != NULL) {
mb_conn_data_free(conn_data); // <-- it frees conn_data and conn_data->response
if(conn_data->handler) {
retval = conn_data->handler(conn_data, conn_data->handler_data, error_message); // it calls twitter_verify_authen() which access conn_data and conn_data->response
Classic fault ;-)
Patch is attached
Original comment by e.a.agaf...@gmail.com
on 19 Jan 2011 at 9:24
Attachments:
Nice work. I was just in the process of investigating this myself... it can
also happen when a network connection is dropped, or when coming out of standby.
Thanks for the patch
Original comment by mikeage
on 19 Jan 2011 at 9:56
Patch landed in SVN. Thanks for your help.
Original comment by somsaks
on 19 Jan 2011 at 12:18
You are welcome!
I'm interested in the plugin ;-)
So wait for more patches
Original comment by e.a.agaf...@gmail.com
on 24 Jan 2011 at 9:39
Original issue reported on code.google.com by
worldweave@gmail.com
on 29 Aug 2010 at 5:41