[Pidgin] #2520: msimprpl crashes if set signed-on signal handler

Pidgin trac at pidgin.im
Sun Aug 12 01:50:34 EDT 2007


#2520: msimprpl crashes if set signed-on signal handler
-----------------------+----------------------------------------------------
 Reporter:  jeff       |       Owner:  jeff 
     Type:  defect     |      Status:  new  
 Priority:  minor      |   Milestone:       
Component:  libpurple  |     Version:  2.1.0
 Keywords:  msimprpl   |     Pending:  0    
-----------------------+----------------------------------------------------
 purple_presence_set_idle(purple_account_get_presence(session->account),
                         TRUE, time(NULL)); in my code and it didn't crash

 disclaimer: i do it the call inside the "signed-on" signal handler



 {{{
 (10:36:54 PM) 229089172: body(raw):
 Challenge=2616438588ChallengeData=m4eiuvKWDfWFZIggtN8LTlxuNrZm5Smsa+I/1efKe4THG9m0T9MZGb++9lwFqTIu4wDJ6KcXjxzZo+9HJlNTIRA==Challenge=2616438591ChallengeData=l8+U7l0hIipUcjBS2CWlHKhJS8IyPjDNcs2hpS06FJ42/1mnW2fjbqAtekMwgc/159o8wA68DBeOEzqJl8ftv01A==Challenge=2616438590ChallengeData=saxrcF4Upbu7n+OkJBSs3sjps0QnEkze04IIu5WsGZ+xj0IFjioZb4k3LL4uTmi/10LQHfCsLSJv0dan+G/1ynrQ==Challenge=2616438577ChallengeData=01tLhm2QSSrUMmJWDJC8Hezp0zLvyXSeVXSW8efmBs5ReWaXDfXDITLkm61w0FEhRCs8edDFNoIqGt0KjhSHTw==Challenge=2616438576ChallengeData=ehCdtpYdDSr06uFIP1ITUfq8Fwju++pYTrqJLsz7sXtTBIMeg6umrsoXOK/1u+ly+uIu7I2xyl9xm+XvJvmoLVw==
 /MsimMessage>(01:36:03) msim: buffer at 0 (max 15360), reading up to 15360
 (01:36:03) msim: msim_input_cb: going to null terminate at n=102
 (01:36:03) msim: msim_input_cb: read=102
 (01:36:03) msim: msim_parse: got <\error\\err\3\fatal\\errmsg\This request
 cannot be processed because of an invalid session key.>
 (01:36:03) msim: msim_error: Protocol error, code 3: This request cannot
 be processed because of an invalid session key.
 (01:36:03) msim: fatal error, closing
 (01:36:03) msim_msg_dump: debug_str=<MsimMessage:
 error(raw):
 err(raw): 3
 fatal(raw):
 errmsg(raw): This request cannot be processed because of an invalid
 session key.
 /MsimMessage>
 (01:36:03) msim: msim_msg_free: freeing <MsimMessage:
 error(raw):
 err(raw): 3
 fatal(raw):
 errmsg(raw): This request cannot be processed because of an invalid
 session key.
 /MsimMessage>(01:36:03) msim: buffer at 0 (max 15360), reading up to 15360
 (01:36:03) msim: msim_input_cb: server disconnected
 (01:36:03) account: Disconnecting account 0x80824f8
 (01:36:03) connection: Disconnecting connection 0x80825c8
 (01:36:03) idle: Setting yourimstatus at gmail.com unidle
 (01:36:03) msim: msim_set_status_code: going to set status to code=1,str=
 (01:36:03) msim: msim_send_raw: writing
 <\status\1\sesskey\459478529\statstring\\locstring\\final\>
 (01:36:03) msim_msg_dump: debug_str=<MsimMessage:
 (10:37:08 PM) 229089172: sorry bout the flooding
 (10:37:17 PM) 229089172: but that's the output if i have the code in
 (10:38:03 PM) 229089172: disclaimer: i do it the call inside the "signed-
 on" signal handler
 {{{
  body(raw):
 Challenge=2616438588ChallengeData=m4eiuvKWDfWFZIggtN8LTlxuNrZm5Smsa+I/1efKe4THG9m0T9MZGb++9lwFqTIu4wDJ6KcXjxzZo+9HJlNTIRA==Challenge=2616438591ChallengeData=l8+U7l0hIipUcjBS2CWlHKhJS8IyPjDNcs2hpS06FJ42/1mnW2fjbqAtekMwgc/159o8wA68DBeOEzqJl8ftv01A==Challenge=2616438590ChallengeData=saxrcF4Upbu7n+OkJBSs3sjps0QnEkze04IIu5WsGZ+xj0IFjioZb4k3LL4uTmi/10LQHfCsLSJv0dan+G/1ynrQ==Challenge=2616438577ChallengeData=01tLhm2QSSrUMmJWDJC8Hezp0zLvyXSeVXSW8efmBs5ReWaXDfXDITLkm61w0FEhRCs8edDFNoIqGt0KjhSHTw==Challenge=2616438576ChallengeData=ehCdtpYdDSr06uFIP1ITUfq8Fwju++pYTrqJLsz7sXtTBIMeg6umrsoXOK/1u+ly+uIu7I2xyl9xm+XvJvmoLVw==
 /MsimMessage>(01:36:03) msim: buffer at 0 (max 15360), reading up to 15360
 (01:36:03) msim: msim_input_cb: going to null terminate at n=102
 (01:36:03) msim: msim_input_cb: read=102
 (01:36:03) msim: msim_parse: got <\error\\err\3\fatal\\errmsg\This request
 cannot be processed because of an invalid session key.>
 (01:36:03) msim: msim_error: Protocol error, code 3: This request cannot
 be processed because of an invalid session key.
 (01:36:03) msim: fatal error, closing
 (01:36:03) msim_msg_dump: debug_str=<MsimMessage:
 error(raw):
 err(raw): 3
 fatal(raw):
 errmsg(raw): This request cannot be processed because of an invalid
 session key.
 /MsimMessage>
 (01:36:03) msim: msim_msg_free: freeing <MsimMessage:
 error(raw):
 err(raw): 3
 fatal(raw):
 errmsg(raw): This request cannot be processed because of an invalid
 session key.
 /MsimMessage>(01:36:03) msim: buffer at 0 (max 15360), reading up to 15360
 (01:36:03) msim: msim_input_cb: server disconnected
 (01:36:03) account: Disconnecting account 0x80824f8
 (01:36:03) connection: Disconnecting connection 0x80825c8
 (01:36:03) idle: Setting yourimstatus at gmail.com unidle
 (01:36:03) msim: msim_set_status_code: going to set status to code=1,str=
 (01:36:03) msim: msim_send_raw: writing
 <\status\1\sesskey\459478529\statstring\\locstring\\final\>
 (01:36:03) msim_msg_dump: debug_str=<MsimMessage:
 }}}

 demonstrates crash:
  * attached nullclient.c is from the libpurple/examples directory
  * all i did is i added the signal handler
  * and inside i call the purple_presence_set_idle()

-- 
Ticket URL: <http://developer.pidgin.im/ticket/2520>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list