9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] plan9port on linux (i386) suse 9.1
@ 2004-04-20 15:25 Robin Hu
  2004-04-20 17:57 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Robin Hu @ 2004-04-20 15:25 UTC (permalink / raw)
  To: 9fans


hi all:

   I just download the latest plan9port source, from cvs.pdos.lcs.mit.edu.
   Here are two problems I found.

   1. a lot of programs use libdraw failed to start on my systerm.
      stack overflow is reported.
 
      gdb bt shows:
 
#0  _sched () at sched.c:170
#1  0x0806cc80 in _alt (alts=0x80d2450) at channel.c:122
#2  0x0806d359 in runop (op=Variable "op" is not available.
                ) at channel.c:233
#3  0x0806d5a9 in recvul (c=0x80d24c0) at channel.c:301
#4  0x0806e13f in _threadfdwait (fd=32, rw=114, pc=134669225) at fdwait.c:198
#5  0x0806e34c in threadread (fd=13, a=0x80d2578, n=4) at fdwait.c:241
#6  0x0806e3a9 in threadreadn (fd=13, a=0x80d2578, n=4) at fdwait.c:292
#7  0x0806c064 in _fsrecv (mux=0x20) at fs.c:274
#8  0x0806c68a in _muxrecv (mux=0x80f4500) at io.c:96
#9  0x0806c4ad in muxrpc (mux=0x80f4500, tx=0x80f45b8) at mux.c:68
#10 0x0806bb9c in fsrpc (fs=0x80f44d0, tx=0x80d2810, rx=0x80d2650, freep=0x80d264c)
    at fs.c:171
#11 0x0806bcea in fsversion (fs=0x80f44d0, msize=32, version=0x80f44d0 "9P2000",
                    nversion=20) at fs.c:117
#12 0x0806bfe9 in fsmount (fd=13, aname=0x807aca6 "") at fs.c:64
#13 0x0806b221 in nsmount (name=0x807acbd "plumb", aname=0x807aca6 "") at ns.c:30
#14 0x0806b175 in plumbopen (name=0x8078c98 "send", omode=1) at mesg.c:17
#15 0x0804e252 in plumbstart () at 9term.c:1677
#16 0x0804a883 in threadmain (argc=0, argv=0xbffff198) at 9term.c:229
#17 0x0806ebb5 in mainlauncher (arg=0x20) at main.c:77
#18 0x0806fc5d in launcher386 (f=0x806eba0 <mainlauncher>, arg=0x80ca008) at 386.c:6
#19 0xfefefefe in ?? ()
 
     I found _threadgetproc()->thread->stk is modified by XCreateBitMap
     in x11-init.c accidently. Since I am a newbie to both X programming
     and plan9, I can't tell why this happens indeed, but the
     following change can workaround it.
 
-       pmid = XCreatePixmap(_x.display, _x.drawable, 1, 1, 1);
+       pmid = XCreatePixmap(_x.display, _x.drawable, Dx(r), Dy(r), _x.depth);
 
     My XFree's version is 4.3.99, carried by SuSE 9.1.

     If anyone can help to debug, I can provide more details on this problem.

   2. Acme keeps anonnying me with the following information

>   acme: cannot handle selection request for 'TIMESTAMP'  (427)

   Can anyone decrypt this message for me ;( thanks a lot.


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

* Re: [9fans] plan9port on linux (i386) suse 9.1
  2004-04-20 15:25 [9fans] plan9port on linux (i386) suse 9.1 Robin Hu
@ 2004-04-20 17:57 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2004-04-20 17:57 UTC (permalink / raw)
  To: 9fans

>      I found _threadgetproc()->thread->stk is modified by XCreateBitMap
>      in x11-init.c accidently. Since I am a newbie to both X programming
>      and plan9, I can't tell why this happens indeed, but the
>      following change can workaround it.
> 
> -       pmid = XCreatePixmap(_x.display, _x.drawable, 1, 1, 1);
> +       pmid = XCreatePixmap(_x.display, _x.drawable, Dx(r), Dy(r), _x.depth);
> 
>      My XFree's version is 4.3.99, carried by SuSE 9.1.
> 
>      If anyone can help to debug, I can provide more details on this problem.

I'm surprised that works at all.  The point of pmid is to
provide a 1-bit bitmap for use in creating the gc contexts
on the next few lines.

You're probably tickling some memory problem.
Could you run valgrind and see if it turns anything up?


>    2. Acme keeps anonnying me with the following information
> 
> >   acme: cannot handle selection request for 'TIMESTAMP'  (427)
> 
>    Can anyone decrypt this message for me ;( thanks a lot.

I just checked in a change that silences this message
for this particular case.

Russ


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

end of thread, other threads:[~2004-04-20 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-20 15:25 [9fans] plan9port on linux (i386) suse 9.1 Robin Hu
2004-04-20 17:57 ` Russ Cox

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