public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* xterm crashing when trying to access Ctrl-<mouse click> menu items
@ 2014-05-05 18:39 Nem W Schlecht
  2014-05-12 10:34 ` Jon TURNEY
  0 siblings, 1 reply; 3+ messages in thread
From: Nem W Schlecht @ 2014-05-05 18:39 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

Hello all,

For over a month now I've been having issues with my xterms in Cygwin.
 If I try to access *any* menu item under the Ctrl-<mouse button> menu
items (change font, turn on/off scrollbar, redraw window, etc.), my
xterm crashes the moment I un-press my mouse button.  I don't access
them all that often, so I don't know how long the issue has been
around, but it's been a couple of months now.

I've tried launching it with an empty .Xdefaults file (home dir) and
by moving my .bashrc/.bash_profile files out of the way - still the
same result.  I've also gone out and downloaded the latest XTerm code
and have a version compiled with debugging, but my C skills are really
rusty and I'm not seeing anything terribly useful in gdb (I set my
CYGWIN env var to "error_start=dumper -d %1 %2" so I would get core
dumps).  I compiled a version with a different "DEFCLASS" set so that
I *know* it's not a bad resource or resource file.

I'm running 64 bit on Windows 7.  More details in the attached cygcheck.out.

Anybody else on 64bit Cygwin / Win 7 having the same issues?

-- 
Nem W Schlecht                   nem@emptec.com
Empyreal Technologies    http://www.emptec.com/
 "Perl did the magic.  I just waved the wand."

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 268615 bytes --]

[-- Attachment #3: Type: text/plain, Size: 223 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xterm crashing when trying to access Ctrl-<mouse click> menu items
  2014-05-05 18:39 xterm crashing when trying to access Ctrl-<mouse click> menu items Nem W Schlecht
@ 2014-05-12 10:34 ` Jon TURNEY
  2014-05-12 14:37   ` Nem W Schlecht
  0 siblings, 1 reply; 3+ messages in thread
From: Jon TURNEY @ 2014-05-12 10:34 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: nem

On 05/05/2014 19:39, Nem W Schlecht wrote:
> For over a month now I've been having issues with my xterms in Cygwin.
>   If I try to access *any* menu item under the Ctrl-<mouse button> menu
> items (change font, turn on/off scrollbar, redraw window, etc.), my
> xterm crashes the moment I un-press my mouse button.  I don't access
> them all that often, so I don't know how long the issue has been
> around, but it's been a couple of months now.
>
> I've tried launching it with an empty .Xdefaults file (home dir) and
> by moving my .bashrc/.bash_profile files out of the way - still the
> same result.  I've also gone out and downloaded the latest XTerm code
> and have a version compiled with debugging, but my C skills are really
> rusty and I'm not seeing anything terribly useful in gdb (I set my
> CYGWIN env var to "error_start=dumper -d %1 %2" so I would get core
> dumps).  I compiled a version with a different "DEFCLASS" set so that
> I *know* it's not a bad resource or resource file.
>
> I'm running 64 bit on Windows 7.  More details in the attached cygcheck.out.
>
> Anybody else on 64bit Cygwin / Win 7 having the same issues?

Thanks for reporting this issue.  I can reproduce it.

This appears to be an issue with Xt, as a Cygwin-specific patch does not 
work correctly on x86_64 when another DLL which is using Xt is loaded 
 >2GB away from it.

Until we have a fix, you *might* be able to work around this by rebasing 
the DLLs, e.g. in the specific case of xterm, which uses Xaw:

cd /usr/bin
rebase -v -b 0x400000000 cygXt-6.dll
rebase -v -b 0x410000000 cygXaw-7.dll

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xterm crashing when trying to access Ctrl-<mouse click> menu items
  2014-05-12 10:34 ` Jon TURNEY
@ 2014-05-12 14:37   ` Nem W Schlecht
  0 siblings, 0 replies; 3+ messages in thread
From: Nem W Schlecht @ 2014-05-12 14:37 UTC (permalink / raw)
  To: cygwin-xfree

Thanks for the reply, Jon!  I'm happy you were able to reproduce the
issue - I assumed I had screwed something up in my environment. :)

Your attempted fix with rebase worked perfectly - all of my menus are
now working correctly.  If you'd like me to do any additional testing
in the future, don't hesitate to ask.

On Mon, May 12, 2014 at 5:34 AM, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> On 05/05/2014 19:39, Nem W Schlecht wrote:
>>
>> For over a month now I've been having issues with my xterms in Cygwin.
>>   If I try to access *any* menu item under the Ctrl-<mouse button> menu
>> items (change font, turn on/off scrollbar, redraw window, etc.), my
>> xterm crashes the moment I un-press my mouse button.  I don't access
>> them all that often, so I don't know how long the issue has been
>> around, but it's been a couple of months now.
>>
>> I've tried launching it with an empty .Xdefaults file (home dir) and
>> by moving my .bashrc/.bash_profile files out of the way - still the
>> same result.  I've also gone out and downloaded the latest XTerm code
>> and have a version compiled with debugging, but my C skills are really
>> rusty and I'm not seeing anything terribly useful in gdb (I set my
>> CYGWIN env var to "error_start=dumper -d %1 %2" so I would get core
>> dumps).  I compiled a version with a different "DEFCLASS" set so that
>> I *know* it's not a bad resource or resource file.
>>
>> I'm running 64 bit on Windows 7.  More details in the attached
>> cygcheck.out.
>>
>> Anybody else on 64bit Cygwin / Win 7 having the same issues?
>
>
> Thanks for reporting this issue.  I can reproduce it.
>
> This appears to be an issue with Xt, as a Cygwin-specific patch does not
> work correctly on x86_64 when another DLL which is using Xt is loaded >2GB
> away from it.
>
> Until we have a fix, you *might* be able to work around this by rebasing the
> DLLs, e.g. in the specific case of xterm, which uses Xaw:
>
> cd /usr/bin
> rebase -v -b 0x400000000 cygXt-6.dll
> rebase -v -b 0x410000000 cygXaw-7.dll
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer



-- 
Nem W Schlecht                   nem@emptec.com
Empyreal Technologies    http://www.emptec.com/
 "Perl did the magic.  I just waved the wand."

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-12 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-05 18:39 xterm crashing when trying to access Ctrl-<mouse click> menu items Nem W Schlecht
2014-05-12 10:34 ` Jon TURNEY
2014-05-12 14:37   ` Nem W Schlecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).