[Psi-Devel] Bug Report: Psi crashes when sending a message to an offline user

Norka Lucena norka.lucena at collabworx.com
Wed Nov 2 10:09:14 PDT 2011


The crash occurs when sending a message to one of your contacts and that 
contacts goes offline at the exact moment you are sending the message. 
Although observation of the crash was accidental, you can reproduce it 
as follows:

Sender's side:
	1. Right click on a any online contact.
	2. Select the option 'Send Message To'.
	3. Select a specific resource, but do not click.

Receiver's side:
	4. Go offline in the specific resource.

Sender's side:
	5. Click to send meeting invitation .


The crash occurs because of an invalid reference access in the function 
ContactProfile::doContextMenu in contactview.cpp, line 1546.

1544	//if(res > 0) {
1545		const UserResource &r = rl[res];
1546		rname = r.name();
1547	//}

Notice that removing the comment will not really solve the problem. The 
problem is caused by rl (resource list) becoming empty before the rname 
(resource name) assignment. r is invalid.

Do you plan to fix this problem any time soon?


-- 

Norka Lucena
CollabWorx, Inc.

CONFIDENTIALITY NOTICE - This email is ONLY for the person(s) named in 
the message header. Unless otherwise indicated, it contains information 
that is confidential, privileged or exempt from disclosure under 
applicable law. If you have received it in error, please notify the 
sender of the error and delete the message.


More information about the Psi-Devel mailing list