Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 267536

Summary: app-editors/cooledit-3.17.17: cut/copy/paste operations cause crash
Product: Gentoo Linux Reporter: Frank Peters <frank.peters>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of emerge --info
Patch to correct cut/copy/paste crash behavior

Description Frank Peters 2009-04-26 12:57:49 UTC
Any attempt to cut, copy, or paste text to/from the clipboard will cause cooledit to immediately crash.

I have just switched to Gentoo from another distribution and the portage tree is the latest.  But because the system is new I cannot compare this present behavior of cooledit to any behavior from a prior configuration.


Reproducible: Always

Steps to Reproduce:
1. emerge cooledit
2. start cooledit with a text file loaded, e.g. # cooledit file.txt &
3. select some text and then cut or copy to clipboard

Actual Results:  
After the above steps the program will immediately crash.


Expected Results:  
The program should not crash and the selected text should be placed into the clipboard.

The error messages associated with the crash indicate "invalid open call: O_CREAT without mode."  This was traced to a missing mode parameter in an open call in the file widget/editcmd.c.  A patch which fixes this missing mode is attached.

However, although this patch corrects the cut/copy/paste-induced crash, there are other bugs in the program as well.  If cooledit is started with no text file loaded, any attempt to enter text will cause the program to crash.  The reason for this has not been determined and the attached patch does not correct this other problem.

The output from "emerge --info" is also attached.
Comment 1 Frank Peters 2009-04-26 12:58:43 UTC
Created attachment 189486 [details]
Output of emerge --info
Comment 2 Frank Peters 2009-04-26 13:01:23 UTC
Created attachment 189488 [details, diff]
Patch to correct cut/copy/paste crash behavior
Comment 3 Frank Peters 2009-04-26 16:27:07 UTC
See also bug report #267567 for a separate issue that has also been fixed.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2011-09-10 17:41:46 UTC
Fixed. Thanks for the patches