9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p acme freezes on devdraw read in MacOS X
@ 2008-10-08  8:36 Christian Kellermann
  2008-10-08 11:23 ` underspecified
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Kellermann @ 2008-10-08  8:36 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Dear List,

I am experiencing a strange behaviour of p9p acme: When I scroll
with the mouse wheel acme just hangs. The console prints acme: bad
rpc tag 2 (no one waiting on that tag)

attaching with gdb says:

0x9526a1b5 in read$UNIX2003 ()
(gdb) bt
#0  0x9526a1b5 in read$UNIX2003 ()
#1  0x000089e7 in threadmain ()
#2  0x0001aeac in threadmainstart (v=0x0) at thread.c:699
#3  0x0001a808 in threadstart (y=552960, x=0) at thread.c:95

and detaching makes acme crash completely with

settag/send tag 3: Broken pipe
settag/send tag 3: Broken pipe
Oct  8 10:27:23.908 write error: Broken pipe
settag/send tag 3: Broken pipe

Has any one else seen this? It feels like a race condition since I
cannot reproduce it reliably other than opening a window with some
content and scrolling around with the mouse wheel. I have tried to
pull from the repo but it seems that

changeset:   2915:dd72218f97d9
tag:         tip
user:        Russ Cox <rsc@swtch.com>
date:        Thu Aug 14 10:29:29 2008 -0400
summary:     rc: fix local variables in functions

is the latest tip.

What can I do to help debugging this? It is really an annoying bug
I must say.

Thanks for your insights,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08  8:36 [9fans] p9p acme freezes on devdraw read in MacOS X Christian Kellermann
@ 2008-10-08 11:23 ` underspecified
  2008-10-08 11:40   ` Christian Kellermann
  0 siblings, 1 reply; 12+ messages in thread
From: underspecified @ 2008-10-08 11:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Greetings,
I have been using a scroll wheel in p9p's acme on OS-X for some time without
any problems.
This raises a few questions about your setup:

1) Are you sure you are running the new, native gui version? Your hg info
suggests this is the case, but I want to make sure you recompiled the
binaries between now and then.
2) What kind of mouse is is?
3) Does the scroll wheel behave normally in other apps on OS-X?
4) Are you using any non-standard mouse drivers?
5) If you are on a laptop, does scrolling with the touchpad cause this
error?

--underspecified

On Wed, Oct 8, 2008 at 5:36 PM, Christian Kellermann <
Christian.Kellermann@nefkom.net> wrote:

> Dear List,
>
> I am experiencing a strange behaviour of p9p acme: When I scroll
> with the mouse wheel acme just hangs. The console prints acme: bad
> rpc tag 2 (no one waiting on that tag)
>
> attaching with gdb says:
>
> 0x9526a1b5 in read$UNIX2003 ()
> (gdb) bt
> #0  0x9526a1b5 in read$UNIX2003 ()
> #1  0x000089e7 in threadmain ()
> #2  0x0001aeac in threadmainstart (v=0x0) at thread.c:699
> #3  0x0001a808 in threadstart (y=552960, x=0) at thread.c:95
>
> and detaching makes acme crash completely with
>
> settag/send tag 3: Broken pipe
> settag/send tag 3: Broken pipe
> Oct  8 10:27:23.908 write error: Broken pipe
> settag/send tag 3: Broken pipe
>
> Has any one else seen this? It feels like a race condition since I
> cannot reproduce it reliably other than opening a window with some
> content and scrolling around with the mouse wheel. I have tried to
> pull from the repo but it seems that
>
> changeset:   2915:dd72218f97d9
> tag:         tip
> user:        Russ Cox <rsc@swtch.com>
> date:        Thu Aug 14 10:29:29 2008 -0400
> summary:     rc: fix local variables in functions
>
> is the latest tip.
>
> What can I do to help debugging this? It is really an annoying bug
> I must say.
>
> Thanks for your insights,
>
> Christian
>
> --
> You may use my gpg key for replies:
> pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)
>

[-- Attachment #2: Type: text/html, Size: 2737 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 11:23 ` underspecified
@ 2008-10-08 11:40   ` Christian Kellermann
  2008-10-08 12:09     ` underspecified
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Kellermann @ 2008-10-08 11:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

* underspecified <underspecified@gmail.com> [081008 13:26]:
> 1) Are you sure you are running the new, native gui version? Your hg info
> suggests this is the case, but I want to make sure you recompiled the
> binaries between now and then.
Yes I do run native and I rebuild everything just to make sure.

> 2) What kind of mouse is is?
A standard USB Logitech mouse

> 3) Does the scroll wheel behave normally in other apps on OS-X?
Yep.

> 4) Are you using any non-standard mouse drivers?
No.

> 5) If you are on a laptop, does scrolling with the touchpad cause this
> error?
I cannot reproduce that with the touchpad, but I am not sure if that really matters...


HTH,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 11:40   ` Christian Kellermann
@ 2008-10-08 12:09     ` underspecified
  2008-10-08 12:20       ` Christian Kellermann
  0 siblings, 1 reply; 12+ messages in thread
From: underspecified @ 2008-10-08 12:09 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Greetings,
On Wed, Oct 8, 2008 at 8:40 PM, Christian Kellermann <
Christian.Kellermann@nefkom.net> wrote:

> * underspecified <underspecified@gmail.com> [081008 13:26]:
> > 1) Are you sure you are running the new, native gui version? Your hg info
> > suggests this is the case, but I want to make sure you recompiled the
> > binaries between now and then.
> Yes I do run native and I rebuild everything just to make sure.
>
> > 2) What kind of mouse is is?
> A standard USB Logitech mouse
>
> > 3) Does the scroll wheel behave normally in other apps on OS-X?
> Yep.
>
> > 4) Are you using any non-standard mouse drivers?
> No.
>
> > 5) If you are on a laptop, does scrolling with the touchpad cause this
> > error?
> I cannot reproduce that with the touchpad, but I am not sure if that really
> matters...


In principle the scroll wheel and touchpad should be sending the same events
when scrolling,
so if it fails with just the mouse, I think the problem is more likely to be
specific to that mouse.
Have you tried any other mice? My Lenovo 3-button mouse and Logitec 3-button
mouse scroll
fine.

What version of OS-X are you running?

--underspecified

HTH,
>
> Christian
>
> --
> You may use my gpg key for replies:
> pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)
>

[-- Attachment #2: Type: text/html, Size: 2129 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 12:09     ` underspecified
@ 2008-10-08 12:20       ` Christian Kellermann
  2008-10-08 20:41         ` Russ Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Kellermann @ 2008-10-08 12:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

* underspecified <underspecified@gmail.com> [081008 14:14]:
> 
> In principle the scroll wheel and touchpad should be sending the same events
> when scrolling,
> so if it fails with just the mouse, I think the problem is more likely to be
> specific to that mouse.
> Have you tried any other mice? My Lenovo 3-button mouse and Logitec 3-button
> mouse scroll
> fine.

I agree, I have tried several different usb mice, and in the meantime
can provoke the error with the touchpad as well. It seems that
wildly selecting text also triggers the behaviour.  This is strange...

I am using 10.5.5 on a MacBook Pro...

HTH,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 12:20       ` Christian Kellermann
@ 2008-10-08 20:41         ` Russ Cox
  2008-10-08 22:05           ` Russ Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Russ Cox @ 2008-10-08 20:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I have tracked this down along with another OS X display problem.
I will push out the fix later today.

Russ


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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 20:41         ` Russ Cox
@ 2008-10-08 22:05           ` Russ Cox
  2008-10-08 22:53             ` Noah Evans
  0 siblings, 1 reply; 12+ messages in thread
From: Russ Cox @ 2008-10-08 22:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Oct 8, 2008 at 1:41 PM, Russ Cox <rsc@swtch.com> wrote:
> I have tracked this down along with another OS X display problem.
> I will push out the fix later today.

This fix and the resize fix is now in hg and cvs.

Russ


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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 22:05           ` Russ Cox
@ 2008-10-08 22:53             ` Noah Evans
  2008-10-09  7:18               ` Philippe Anel
  0 siblings, 1 reply; 12+ messages in thread
From: Noah Evans @ 2008-10-08 22:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

The fixes work very well. Thank you.

On Wed, Oct 8, 2008 at 5:05 PM, Russ Cox <rsc@swtch.com> wrote:
> On Wed, Oct 8, 2008 at 1:41 PM, Russ Cox <rsc@swtch.com> wrote:
>> I have tracked this down along with another OS X display problem.
>> I will push out the fix later today.
>
> This fix and the resize fix is now in hg and cvs.
>
> Russ
>
>



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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 22:53             ` Noah Evans
@ 2008-10-09  7:18               ` Philippe Anel
  0 siblings, 0 replies; 12+ messages in thread
From: Philippe Anel @ 2008-10-09  7:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


----- Original Message -----
From: "Noah Evans" <noah.evans@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Sent: Thursday, October 09, 2008 12:53 AM
Subject: Re: [9fans] p9p acme freezes on devdraw read in MacOS X


> The fixes work very well. Thank you.
>
> On Wed, Oct 8, 2008 at 5:05 PM, Russ Cox <rsc@swtch.com> wrote:
>> On Wed, Oct 8, 2008 at 1:41 PM, Russ Cox <rsc@swtch.com> wrote:
>>> I have tracked this down along with another OS X display problem.
>>> I will push out the fix later today.
>>
>> This fix and the resize fix is now in hg and cvs.
>>
>> Russ
>>
>>
>
>

[-- Attachment #2: thème 08-09.pdf --]
[-- Type: application/pdf, Size: 22126 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
  2008-10-08 11:44 erik quanstrom
@ 2008-10-08 12:01 ` underspecified
  0 siblings, 0 replies; 12+ messages in thread
From: underspecified @ 2008-10-08 12:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Here native = the carbon OS-X gui rewrite, not native plan 9. Sorry for the
confusion!
--underspecified

On Wed, Oct 8, 2008 at 8:44 PM, erik quanstrom <quanstro@quanstro.net>wrote:

> > > 1) Are you sure you are running the new, native gui version? Your hg
> info
> > > suggests this is the case, but I want to make sure you recompiled the
> > > binaries between now and then.
> > Yes I do run native and I rebuild everything just to make sure.
>
> i'm confused.  you send a gdb backtrace from native plan 9?
>
> - erik
>
>

[-- Attachment #2: Type: text/html, Size: 930 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
       [not found] <d3f8019b394810b0dbada3b5e2414f23@quanstro.net>
@ 2008-10-08 11:51 ` Christian Kellermann
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Kellermann @ 2008-10-08 11:51 UTC (permalink / raw)
  To: erik quanstrom; +Cc: 9fans

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

* erik quanstrom <quanstro@quanstro.net> [081008 13:46]:
> > > 1) Are you sure you are running the new, native gui version? Your hg info
> > > suggests this is the case, but I want to make sure you recompiled the
> > > binaries between now and then.
> > Yes I do run native and I rebuild everything just to make sure.
> 
> i'm confused.  you send a gdb backtrace from native plan 9?
native in this context refers to native ui.

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

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

* Re: [9fans] p9p acme freezes on devdraw read in MacOS X
@ 2008-10-08 11:44 erik quanstrom
  2008-10-08 12:01 ` underspecified
  0 siblings, 1 reply; 12+ messages in thread
From: erik quanstrom @ 2008-10-08 11:44 UTC (permalink / raw)
  To: Christian.Kellermann, 9fans

> > 1) Are you sure you are running the new, native gui version? Your hg info
> > suggests this is the case, but I want to make sure you recompiled the
> > binaries between now and then.
> Yes I do run native and I rebuild everything just to make sure.

i'm confused.  you send a gdb backtrace from native plan 9?

- erik



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

end of thread, other threads:[~2008-10-09  7:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08  8:36 [9fans] p9p acme freezes on devdraw read in MacOS X Christian Kellermann
2008-10-08 11:23 ` underspecified
2008-10-08 11:40   ` Christian Kellermann
2008-10-08 12:09     ` underspecified
2008-10-08 12:20       ` Christian Kellermann
2008-10-08 20:41         ` Russ Cox
2008-10-08 22:05           ` Russ Cox
2008-10-08 22:53             ` Noah Evans
2008-10-09  7:18               ` Philippe Anel
2008-10-08 11:44 erik quanstrom
2008-10-08 12:01 ` underspecified
     [not found] <d3f8019b394810b0dbada3b5e2414f23@quanstro.net>
2008-10-08 11:51 ` Christian Kellermann

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 NNTP newsgroup(s).