9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] bug in rio: unhiding deleted windows
@ 2008-10-08 20:51 andrey mirtchovski
  2008-10-10 11:53 ` Rudolf Sykora
  2008-11-23 19:50 ` Rudolf Sykora
  0 siblings, 2 replies; 29+ messages in thread
From: andrey mirtchovski @ 2008-10-08 20:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

while looking around for information on the RC strangeness i triggered
a bug with rio: if the last window on the "hidden" stack disappears
_while_ the third mouse button menu is opened, then upon attempting to
unhide the window without releasing the mouse button in between will
result in a read addr fault in 'wunhide()'

here's a stack trace and error message:

acid: lstk()
wunhide(h=0x1)+0x30 /sys/src/cmd/rio/rio.c:1099
	w=0x1768e0
	i=0x0
unhide(h=0x6)+0x27 /sys/src/cmd/rio/rio.c:1129
button3menu()+0x97 /sys/src/cmd/rio/rio.c:686
mousethread()+0x2c4 /sys/src/cmd/rio/rio.c:589
	sending=0x0
	scrolling=0x0
	moving=0x0
	winput=0xdaf40
	xy=0x1f6
	inside=0x1
	tmp=0x0
	w=0xdaf40
	oin=0x929e0
	band=0x1
	r=0xfefefefe

to reproduce:

open a rio window
run "window -hide 'sleep 10'"
click the third mouse button (to bring the "New" menu)
wait 10 seconds (you will know that 10 seconds have passed if you move
the mouse over the last hidden window and the highlighted text appears
to be gibberish)
unhide the last hidden window by releasing the third mouse button
while pointing at it in the menu

if you simply release the third mouse button and bring the menu up
again you will see that the window has disappeared. it is only a bug
when rio isn't given a chance to refresh the third button menu.

cheers: andrey



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

end of thread, other threads:[~2008-11-26 20:55 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-08 20:51 [9fans] bug in rio: unhiding deleted windows andrey mirtchovski
2008-10-10 11:53 ` Rudolf Sykora
2008-10-10 12:32   ` andrey mirtchovski
2008-10-10 12:54     ` erik quanstrom
2008-10-10 20:23       ` Lyndon Nerenberg
2008-10-11  3:05         ` Russ Cox
2008-10-11 11:11           ` Rudolf Sykora
2008-10-10 13:15     ` andrey mirtchovski
2008-10-10 13:21       ` Rudolf Sykora
2008-10-10 13:18         ` erik quanstrom
2008-10-10 14:02           ` Rudolf Sykora
2008-10-10 14:41             ` erik quanstrom
2008-10-10 15:25               ` Rudolf Sykora
2008-10-10 15:21                 ` erik quanstrom
2008-10-10 15:42                   ` Rudolf Sykora
2008-10-10 15:33                 ` ron minnich
2008-10-10 15:41                   ` Rudolf Sykora
2008-10-10 16:20                     ` andrey mirtchovski
2008-10-10 16:26                       ` Rudolf Sykora
2008-10-10 16:30                         ` andrey mirtchovski
2008-10-10 16:43                           ` Rudolf Sykora
2008-10-10 15:45                   ` andrey mirtchovski
2008-10-10 16:36               ` matt
2008-10-10 16:40                 ` Rudolf Sykora
2008-10-11 12:44                 ` erik quanstrom
2008-11-23 19:50 ` Rudolf Sykora
2008-11-23 21:51   ` erik quanstrom
2008-11-26 19:52     ` Rudolf Sykora
2008-11-26 20:55       ` erik quanstrom

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