Re: xterm access violations (again)

2011-04-04 Thread Jon TURNEY
On 01/04/2011 17:05, Jim Reisert AD1C wrote:
 On Sun, Mar 27, 2011 at 1:50 PM, Jim Reisert AD1C wrote:
 On Sat, Mar 26, 2011 at 12:35 PM, Christopher Faylor wrote:
 Could someone try this with the latest snapshot?  I haven't made any
 changes but I just want to confirm that it still fails with something
 close to what will become Cygwin 1.7.9.

 http://cygwin.com/snapshots/

 You just have to replace the DLL.  Don't bother with a cygwin-inst*
 tarball.

 Yes, still there:
 
 How can I/we assist in debugging this problem?  First we need to
 determine where the problem lies, whether it's in Cygwin itself, or
 xterm. Today it took me 3-4 tries to get an xterm up.  As I was
 running late for work, it was kind of frustrating.

I think you could:

1. Obtain the cygwin1.dbg file corresponding to your cygwin1.dll (for
snapshots, it is available from the snapshot page, for releases, I believe it
is in the corresponding cygwin src package), and place it next to your 
cygwin1.dll
2. Run xterm under gdb
3. Obtain a backtrace when the segv occurs
4. Diagnose the problem
5. Write and test a patch to fix it

You'll probably want to refer to [1] for that last step. :-)

[1] http://cygwin.com/contrib.html

-- 
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/



Re: xterm access violations (again)

2011-04-04 Thread Christopher Faylor
On Mon, Apr 04, 2011 at 02:27:27PM +0100, Jon TURNEY wrote:
On 01/04/2011 17:05, Jim Reisert AD1C wrote:
 On Sun, Mar 27, 2011 at 1:50 PM, Jim Reisert AD1C wrote:
 On Sat, Mar 26, 2011 at 12:35 PM, Christopher Faylor wrote:
 Could someone try this with the latest snapshot?  I haven't made any
 changes but I just want to confirm that it still fails with something
 close to what will become Cygwin 1.7.9.

 http://cygwin.com/snapshots/

 You just have to replace the DLL.  Don't bother with a cygwin-inst*
 tarball.

 Yes, still there:
 
 How can I/we assist in debugging this problem?  First we need to
 determine where the problem lies, whether it's in Cygwin itself, or
 xterm. Today it took me 3-4 tries to get an xterm up.  As I was
 running late for work, it was kind of frustrating.

I think you could:

1. Obtain the cygwin1.dbg file corresponding to your cygwin1.dll (for
snapshots, it is available from the snapshot page, for releases, I believe it
is in the corresponding cygwin src package), and place it next to your 
cygwin1.dll
2. Run xterm under gdb
3. Obtain a backtrace when the segv occurs
4. Diagnose the problem
5. Write and test a patch to fix it

You'll probably want to refer to [1] for that last step. :-)

[1] http://cygwin.com/contrib.html

FWIW, I know what is causing the problem but not how to fix it.  It's
similar to

http://cygwin.com/ml/cygwin/2011-04/msg1.html

Rebasing should fix that particular problem but it's not a panacea.

cgf

--
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/



Re: xterm access violations (again)

2011-04-04 Thread richardvo...@gmail.com
 FWIW, I know what is causing the problem but not how to fix it.  It's
 similar to

 http://cygwin.com/ml/cygwin/2011-04/msg1.html

 Rebasing should fix that particular problem but it's not a panacea.

The strace output in that other thread shows that GetLastError of 997
formerly caused some pipe handling functions deep in cygwin1.dll to
return success and now is converted to an error.  997 is one of the
rare non-zero success codes (in some sense).

#define ERROR_IO_PENDING 997L


Ben Voigt

--
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/