public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "ALESSANDRO.SUARDI" <ALESSANDRO.SUARDI@oracle.com>
To: hirofumi@mail.parknet.co.jp
Cc: linux-kernel@vger.kernel.org, davem@redhat.com
Subject: Re: gnome-terminal acts funny in recent 2.5 series
Date: Tue, 19 Feb 2002 06:08:04 -0800 (GMT-08:00)	[thread overview]
Message-ID: <4545776.1014127684480.JavaMail.nobody@web11.us.oracle.com> (raw)

OGAWA Hirofumi wrote:
> 
> Alessandro Suardi <alessandro.suardi@oracle.com> writes:
> 
>> Running Ximian-latest for rh72/i386, latest 2.5 kernels (including
>>   2.5.4-pre2, 2.5.4, 2.5.5-pre1).
>> 
>> Symptom:
>>    - clicking on the panel icon for gnome-terminal shows a flicker
>>       of the terminal window coming up then the window disappears.
>>      No leftover processes.

[snip]

> Probably, this problem had occurred in libzvt which gnome-terminal 
> is using.
> 
> libzvt was using file descriptor passing via UNIX domain socket for
> pseudo terminal. Then because ->passcred was not initialized in
> sock_alloc(), unexpected credential data was passing to libzvt.
> 
> The following patch fixed this problem, but I'm not sure.
> Could you review the patch? (attached file are test program)
> 
> --- socket.c.orig     Mon Feb 11 18:21:59 2002
> +++ socket.c     Tue Feb 19 16:20:18 2002
> @@ -501,6 +501,8 @@ struct socket *sock_alloc(void)
>      sock->ops = NULL;
>      sock->sk = NULL;
>      sock->file = NULL;
> +//     init_waitqueue_head(&sock->wait);     this is needed?
> +     sock->passcred = 0;
> 
>      sockets_in_use[smp_processor_id()].counter++;
>      return sock;

Success on first attempt - thanks. Of course since this wasn't
 fully reproducable I'll assume the patch fixes the bug, unless
 proven wrong.

Thanks again,

--alessandro

             reply	other threads:[~2002-02-19 14:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19 14:08 ALESSANDRO.SUARDI [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-19 16:40 gnome-terminal acts funny in recent 2.5 series Petr Vandrovec
2002-02-19 17:47 ` OGAWA Hirofumi
2002-02-19  0:03 Alessandro Suardi
2002-02-19  0:39 ` Gustavo Noronha Silva
2002-02-19  4:00   ` Wayne Whitney
2002-02-19 12:48     ` Sebastian Dröge
2002-02-19  6:13   ` Sebastian Dröge
2002-02-19 11:44 ` OGAWA Hirofumi
2002-02-19 15:09   ` Dave Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4545776.1014127684480.JavaMail.nobody@web11.us.oracle.com \
    --to=alessandro.suardi@oracle.com \
    --cc=davem@redhat.com \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox