Mail Archives: cygwin/2005/03/04/11:56:18
On Fri, 4 Mar 2005, Pat Kane wrote:
> I am having problems using /dev/clipboard. When there is a text
> selection on the Windows clipboard things work as expected, but if
> there is some other type of selection I get: "Segmentation fault (core
> dumped)"
>
> To duplicate the problem try: cat /dev/clipboard
> first with a text selection and then after using Windows to copy a program
> (right click, copy),
> or after taking a screen snapshot (cntrl-alt-prntScrn).
>
> I am using Cygwin DLL 1.5.13-1 on Win2k V5 SP4,
Ok, I can reproduce this on WinXP Pro SP1. The last few lines of strace
before the exception[*] show a read call that executes normally, and then
a SEGV. Someone with a debug version of Cygwin should be able to trace
through this in gdb.
> below is the output of cygcheck.
In the future, please *attach* the output of cygcheck instead of including
it inline, to avoid false positives in archive searches. Thanks,
Igor
[*] Here is a relevant (IMO) snippet of the strace:
115 31208 [main] cat 9200 build_fh_pc: fh 0x61791454
42 31250 [main] cat 9200 fhandler_base::set_flags: flags 0x20000, supplied_bin 0x0
35 31285 [main] cat 9200 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x20000
33 31318 [main] cat 9200 fhandler_base::set_flags: filemode set to text
32 31350 [main] cat 9200 open: 3 = open (/dev/clipboard, 0x0)
33 31383 [main] cat 9200 fhandler_base::fstat: here
35 31418 [main] cat 9200 fstat64: 0 = fstat (3, 0x22EF30)
70 31488 [main] cat 9200 readv: readv (3, 0x22EE40, 1) blocking, sigcatchers 0
43 31531 [main] cat 9200 readv: no need to call ready_for_read
84 31615 [main] cat 9200 handle_exceptions: In cygwin_except_handler exc 0xC0000005 at 0x610D3F51 sp 0x22ED24
37 31652 [main] cat 9200 handle_exceptions: In cygwin_except_handler sig 11 at 0x610D3F51
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -