public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on  darwin6.1)
@ 2002-10-14 10:34 Joern Rennecke
  2002-10-14 10:58 ` H. J. Lu
  0 siblings, 1 reply; 10+ messages in thread
From: Joern Rennecke @ 2002-10-14 10:34 UTC (permalink / raw)
  To: Jim Ingham; +Cc: Aldy Hernandez, Andreas Tobler, GCC

> There were some kernel bugs that were causing expect to hang waiting for a program that exited. One bug caused wait to sometimes not return when the program died, this one was fixed in Jaguar. Another caused loss of output from a program that had died (when the program was killed the output buffers were not being flushed or something). This one can be worked around by judicious sleep's before exit (I think the folks here hacked around it this way in gcc - Stan or somebody would know more). It is also fixed, but not in a released kernel.

I see the very same problems in Linux.  It's so bad with cross compiles that
every regression test has to be checked by hand.
I wonder if this might be bugs that have been copied from a common
(BSD? conceptual?) ancestor.  Could you send me the patches, so I can look if
I find some equivalent code in the Linux kernel sources?
 
-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-14 10:34 Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1) Joern Rennecke
@ 2002-10-14 10:58 ` H. J. Lu
  2002-10-14 11:00   ` Jim Ingham
  0 siblings, 1 reply; 10+ messages in thread
From: H. J. Lu @ 2002-10-14 10:58 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: Jim Ingham, Aldy Hernandez, Andreas Tobler, GCC

On Mon, Oct 14, 2002 at 06:03:43PM +0100, Joern Rennecke wrote:
> > There were some kernel bugs that were causing expect to hang waiting for a program that exited. One bug caused wait to sometimes not return when the program died, this one was fixed in Jaguar. Another caused loss of output from a program that had died (when the program was killed the output buffers were not being flushed or something). This one can be worked around by judicious sleep's before exit (I think the folks here hacked around it this way in gcc - Stan or somebody would know more). It is also fixed, but not in a released kernel.
> 
> I see the very same problems in Linux.  It's so bad with cross compiles that
> every regression test has to be checked by hand.
> I wonder if this might be bugs that have been copied from a common
> (BSD? conceptual?) ancestor.  Could you send me the patches, so I can look if
> I find some equivalent code in the Linux kernel sources?
>  

I never saw it under Linux. But please make sure you have an expect
with my patch applied. I believe expect in RedHat 8.0 is ok.


H.J.

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-14 10:58 ` H. J. Lu
@ 2002-10-14 11:00   ` Jim Ingham
  2002-10-14 11:38     ` Joern Rennecke
  2002-10-15 10:58     ` H. J. Lu
  0 siblings, 2 replies; 10+ messages in thread
From: Jim Ingham @ 2002-10-14 11:00 UTC (permalink / raw)
  To: H. J. Lu; +Cc: Joern Rennecke, Aldy Hernandez, Andreas Tobler, GCC

If you have expect patches have you submitted them back to the expect 
maintainers?  This is now hosted at SourceForge.

This won't help gcc & gdb, because they use a weird hacked version of 
expect - the current expect won't run the testsuite correctly.  But if 
you have found some Linux bug, you should submit a patch to the 
SourceForge patch tracker...

Jim

On Monday, October 14, 2002, at 10:25  AM, H. J. Lu wrote:

> On Mon, Oct 14, 2002 at 06:03:43PM +0100, Joern Rennecke wrote:
>>> There were some kernel bugs that were causing expect to hang waiting 
>>> for a program that exited. One bug caused wait to sometimes not 
>>> return when the program died, this one was fixed in Jaguar. Another 
>>> caused loss of output from a program that had died (when the program 
>>> was killed the output buffers were not being flushed or something). 
>>> This one can be worked around by judicious sleep's before exit (I 
>>> think the folks here hacked around it this way in gcc - Stan or 
>>> somebody would know more). It is also fixed, but not in a released 
>>> kernel.
>>
>> I see the very same problems in Linux.  It's so bad with cross 
>> compiles that
>> every regression test has to be checked by hand.
>> I wonder if this might be bugs that have been copied from a common
>> (BSD? conceptual?) ancestor.  Could you send me the patches, so I can 
>> look if
>> I find some equivalent code in the Linux kernel sources?
>>
>
> I never saw it under Linux. But please make sure you have an expect
> with my patch applied. I believe expect in RedHat 8.0 is ok.
>
>
> H.J.
>
--
Jim Ingham                                   jingham@apple.com
Developer Tools
Apple Computer

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on  darwin6.1)
  2002-10-14 11:00   ` Jim Ingham
@ 2002-10-14 11:38     ` Joern Rennecke
  2002-10-14 12:31       ` H. J. Lu
  2002-10-15 10:58     ` H. J. Lu
  1 sibling, 1 reply; 10+ messages in thread
From: Joern Rennecke @ 2002-10-14 11:38 UTC (permalink / raw)
  To: Jim Ingham; +Cc: H. J. Lu, Aldy Hernandez, Andreas Tobler, GCC

Jim Ingham wrote:
> 
> If you have expect patches have you submitted them back to the expect
> maintainers?  This is now hosted at SourceForge.
> 
> This won't help gcc & gdb, because they use a weird hacked version of
> expect - the current expect won't run the testsuite correctly.  But if
> you have found some Linux bug, you should submit a patch to the
> SourceForge patch tracker...

I had already downloaded & installed the unaltered expect 5.38.0 .
This has stopped expect from hanging, but the semi-random loss of output
hasn't improved, if anything, it got worse.
And no, I haven't got patches, I'm fishing for clues where to start.
	
> --
> Jim Ingham                                   jingham@apple.com
> Developer Tools
> Apple Computer

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-14 11:38     ` Joern Rennecke
@ 2002-10-14 12:31       ` H. J. Lu
  2002-10-15  7:24         ` Joern Rennecke
  0 siblings, 1 reply; 10+ messages in thread
From: H. J. Lu @ 2002-10-14 12:31 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: Jim Ingham, Aldy Hernandez, Andreas Tobler, GCC

On Mon, Oct 14, 2002 at 06:54:21PM +0100, Joern Rennecke wrote:
> Jim Ingham wrote:
> > 
> > If you have expect patches have you submitted them back to the expect
> > maintainers?  This is now hosted at SourceForge.
> > 
> > This won't help gcc & gdb, because they use a weird hacked version of
> > expect - the current expect won't run the testsuite correctly.  But if
> > you have found some Linux bug, you should submit a patch to the
> > SourceForge patch tracker...
> 
> I had already downloaded & installed the unaltered expect 5.38.0 .
> This has stopped expect from hanging, but the semi-random loss of output
> hasn't improved, if anything, it got worse.
> And no, I haven't got patches, I'm fishing for clues where to start.
> 	

Try the latest patch from

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=43310

Let me know if it works for you. If it does, I will file a bug report
for expect if it hasn't been fixed already.


H.J.

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on  darwin6.1)
  2002-10-14 12:31       ` H. J. Lu
@ 2002-10-15  7:24         ` Joern Rennecke
  2002-10-15  7:28           ` H. J. Lu
  0 siblings, 1 reply; 10+ messages in thread
From: Joern Rennecke @ 2002-10-15  7:24 UTC (permalink / raw)
  To: H. J. Lu; +Cc: Jim Ingham, Aldy Hernandez, Andreas Tobler, GCC

"H. J. Lu" wrote:
> 
> On Mon, Oct 14, 2002 at 06:54:21PM +0100, Joern Rennecke wrote:
> > Jim Ingham wrote:
> > >
> > > If you have expect patches have you submitted them back to the expect
> > > maintainers?  This is now hosted at SourceForge.
> > >
> > > This won't help gcc & gdb, because they use a weird hacked version of
> > > expect - the current expect won't run the testsuite correctly.  But if
> > > you have found some Linux bug, you should submit a patch to the
> > > SourceForge patch tracker...
> >
> > I had already downloaded & installed the unaltered expect 5.38.0 .
> > This has stopped expect from hanging, but the semi-random loss of output
> > hasn't improved, if anything, it got worse.
> > And no, I haven't got patches, I'm fishing for clues where to start.
> >
> 
> Try the latest patch from
> 
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=43310

I get a message that the connection was refused by the server bugzilla.redhat.com .
	
> Let me know if it works for you. If it does, I will file a bug report
> for expect if it hasn't been fixed already.

In Jack Howarth's message in this thread (only by subject, not by reference),
I found the link
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156854&archive=yes&repeatmerged=yes
and the patch there seems to work.  Running sh64-elf regression tests with this patch
removes 87 spurious failures.

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-15  7:24         ` Joern Rennecke
@ 2002-10-15  7:28           ` H. J. Lu
  0 siblings, 0 replies; 10+ messages in thread
From: H. J. Lu @ 2002-10-15  7:28 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: Jim Ingham, Aldy Hernandez, Andreas Tobler, GCC

On Tue, Oct 15, 2002 at 01:52:44PM +0100, Joern Rennecke wrote:
> "H. J. Lu" wrote:
> > 
> > On Mon, Oct 14, 2002 at 06:54:21PM +0100, Joern Rennecke wrote:
> > > Jim Ingham wrote:
> > > >
> > > > If you have expect patches have you submitted them back to the expect
> > > > maintainers?  This is now hosted at SourceForge.
> > > >
> > > > This won't help gcc & gdb, because they use a weird hacked version of
> > > > expect - the current expect won't run the testsuite correctly.  But if
> > > > you have found some Linux bug, you should submit a patch to the
> > > > SourceForge patch tracker...
> > >
> > > I had already downloaded & installed the unaltered expect 5.38.0 .
> > > This has stopped expect from hanging, but the semi-random loss of output
> > > hasn't improved, if anything, it got worse.
> > > And no, I haven't got patches, I'm fishing for clues where to start.
> > >
> > 
> > Try the latest patch from
> > 
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=43310
> 
> I get a message that the connection was refused by the server bugzilla.redhat.com .
> 	
> > Let me know if it works for you. If it does, I will file a bug report
> > for expect if it hasn't been fixed already.
> 
> In Jack Howarth's message in this thread (only by subject, not by reference),
> I found the link
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156854&archive=yes&repeatmerged=yes
> and the patch there seems to work.  Running sh64-elf regression tests with this patch
> removes 87 spurious failures.

Good. That is the same patch. I will file a bug report against expect.


H.J.

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-14 11:00   ` Jim Ingham
  2002-10-14 11:38     ` Joern Rennecke
@ 2002-10-15 10:58     ` H. J. Lu
  2002-10-15 13:02       ` Jim Ingham
  1 sibling, 1 reply; 10+ messages in thread
From: H. J. Lu @ 2002-10-15 10:58 UTC (permalink / raw)
  To: Jim Ingham; +Cc: Joern Rennecke, Aldy Hernandez, Andreas Tobler, GCC

On Mon, Oct 14, 2002 at 10:33:23AM -0700, Jim Ingham wrote:
> If you have expect patches have you submitted them back to the expect 
> maintainers?  This is now hosted at SourceForge.
> 
> This won't help gcc & gdb, because they use a weird hacked version of 
> expect - the current expect won't run the testsuite correctly.  But if 
> you have found some Linux bug, you should submit a patch to the 
> SourceForge patch tracker...
> 

https://sourceforge.net/tracker/index.php?func=detail&aid=623629&group_id=13179&atid=313179



H.J.

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-15 10:58     ` H. J. Lu
@ 2002-10-15 13:02       ` Jim Ingham
  2002-10-15 13:19         ` H. J. Lu
  0 siblings, 1 reply; 10+ messages in thread
From: Jim Ingham @ 2002-10-15 13:02 UTC (permalink / raw)
  To: H. J. Lu; +Cc: Joern Rennecke, Aldy Hernandez, Andreas Tobler, GCC

Great, thanks...  This also needs to be submitted to  
sources.redhat.com, since they maintain a separate version of expect,  
and I don't know how often they resync with the net version...

Jim

On Tuesday, October 15, 2002, at 09:34  AM, H. J. Lu wrote:

> On Mon, Oct 14, 2002 at 10:33:23AM -0700, Jim Ingham wrote:
>> If you have expect patches have you submitted them back to the expect
>> maintainers?  This is now hosted at SourceForge.
>>
>> This won't help gcc & gdb, because they use a weird hacked version of
>> expect - the current expect won't run the testsuite correctly.  But if
>> you have found some Linux bug, you should submit a patch to the
>> SourceForge patch tracker...
>>
>
> https://sourceforge.net/tracker/ 
> index.php?func=detail&aid=623629&group_id=13179&atid=313179
>
>
>
> H.J.
>
--
Jim Ingham                                   jingham@apple.com
Developer Tools
Apple Computer

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

* Re: Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1)
  2002-10-15 13:02       ` Jim Ingham
@ 2002-10-15 13:19         ` H. J. Lu
  0 siblings, 0 replies; 10+ messages in thread
From: H. J. Lu @ 2002-10-15 13:19 UTC (permalink / raw)
  To: Jim Ingham; +Cc: Joern Rennecke, Aldy Hernandez, Andreas Tobler, GCC

On Tue, Oct 15, 2002 at 11:51:53AM -0700, Jim Ingham wrote:
> Great, thanks...  This also needs to be submitted to  
> sources.redhat.com, since they maintain a separate version of expect,  
> and I don't know how often they resync with the net version...
> 

They should fetch the patch from sourcforge.


H.J.

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

end of thread, other threads:[~2002-10-15 19:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-14 10:34 Subject: Kernel bugs that trip expect (Was: Re: 2 new regression on darwin6.1) Joern Rennecke
2002-10-14 10:58 ` H. J. Lu
2002-10-14 11:00   ` Jim Ingham
2002-10-14 11:38     ` Joern Rennecke
2002-10-14 12:31       ` H. J. Lu
2002-10-15  7:24         ` Joern Rennecke
2002-10-15  7:28           ` H. J. Lu
2002-10-15 10:58     ` H. J. Lu
2002-10-15 13:02       ` Jim Ingham
2002-10-15 13:19         ` H. J. Lu

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).