Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267536 - app-editors/cooledit-3.17.17: cut/copy/paste operations cause crash
Summary: app-editors/cooledit-3.17.17: cut/copy/paste operations cause crash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 12:57 UTC by Frank Peters
Modified: 2011-09-10 17:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge-info.txt,2.53 KB, text/plain)
2009-04-26 12:58 UTC, Frank Peters
Details
Patch to correct cut/copy/paste crash behavior (missing_mode.patch,772 bytes, patch)
2009-04-26 13:01 UTC, Frank Peters
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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