* Re: [9fans] 9vx on OpenBSD
@ 2011-02-16 0:50 rsdehart
0 siblings, 0 replies; 17+ messages in thread
From: rsdehart @ 2011-02-16 0:50 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
A thousand pardons for any noise on the list, everyone. My phone hates me, and I it.
------Original Message------
From: ron minnich
Sender: 9fans-bounces@9fans.net
To: Fans of the OS Plan 9 from Bell Labs
ReplyTo: Fans of the OS Plan 9 from Bell Labs
Subject: Re: [9fans] 9vx on OpenBSD
Sent: Feb 15, 2011 6:10 PM
It's been a long day and my debugging skills are lukewarm ...
can you run it with -g -S and see if we get any more useful output?
ron
Sent via BlackBerry by AT&T
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-15 22:06 ` ron minnich
@ 2011-02-16 17:06 ` Stanley Lieber
2011-02-15 23:34 ` Anthony Martin
0 siblings, 1 reply; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 17:06 UTC (permalink / raw)
To: 9fans
> On Wed, Feb 16, 2011 at 8:42 AM, Stanley Lieber
> <stanley.lieber@gmail.com> wrote:
>> Well, it builds, but it doesn't run.
>>
>> % ./9vx -r /n/plan9 -u glenda
>> % 9vx panic: vxproc_run: Function not implemented
>
> I feel we've been here before. Can you do an strace?
OpenBSD has ktrace[1]. Here's the output for 'ktrace -t c ./9vx -r /n/plan9 -u glenda'::
http://openbsd.stanleylieber.com/9vx/ktrace
-sl
[1] http://www.openbsd.org/cgi-bin/man.cgi?query=ktrace
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
@ 2011-02-16 16:42 Stanley Lieber
2011-02-15 22:06 ` ron minnich
0 siblings, 1 reply; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 16:42 UTC (permalink / raw)
To: 9fans
Well, it builds, but it doesn't run.
% ./9vx -r /n/plan9 -u glenda
% 9vx panic: vxproc_run: Function not implemented
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-15 21:01 ` ron minnich
@ 2011-02-16 16:05 ` Stanley Lieber
0 siblings, 0 replies; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 16:05 UTC (permalink / raw)
To: 9fans
> On Wed, Feb 16, 2011 at 7:36 AM, Stanley Lieber
> <stanley.lieber@gmail.com> wrote:
>> Reading old 9fans posts, I found Iru's modifications of vx32/9vx to run on OpenBSD 4.3.
>> With this minor change:
>>
>> src/9vx/Makefrag:184: echo 'ulong kerndate ="' `date +%s` '";' >9vx/kerndate.h
>>
>> I was able to get it to build on a current snapshot of OpenBSD.
>
> It really needs this change to run?
>
> ron
Without the change, gmake dies here:
echo 'ulong kerndate =' `date +%s` ';' >9vx/kerndate.h
gcc -g -O3 -MD -std=gnu99 -I. -I. -I9vx -I9vx/a -Wall -Wno-missing-braces -c -o 9vx/stub.o 9vx/stub.c
In file included from 9vx/stub.c:405:
9vx/kerndate.h:1: error: 'Wed' undeclared here (not in a function)
9vx/kerndate.h:1: error: expected ',' or ';' before 'Dec'
gmake: *** [9vx/stub.o] Error 1
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* [9fans] 9vx on OpenBSD
@ 2011-02-16 15:36 Stanley Lieber
2011-02-15 21:01 ` ron minnich
0 siblings, 1 reply; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 15:36 UTC (permalink / raw)
To: 9fans
Reading old 9fans posts, I found Iru's modifications of vx32/9vx to run on OpenBSD 4.3.
With this minor change:
src/9vx/Makefrag:184: echo 'ulong kerndate ="' `date +%s` '";' >9vx/kerndate.h
I was able to get it to build on a current snapshot of OpenBSD.
Currently untested, but the modified source is here:
http://openbsd.stanleylieber.com/9vx/vx32-0.10-openbsd-4.9.tgz
Has anyone done any work for OpenBSD on more recent versions of 9vx?
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 1:13 ` Stanley Lieber
2011-02-16 1:17 ` ron minnich
@ 2011-02-16 2:14 ` Anthony Martin
1 sibling, 0 replies; 17+ messages in thread
From: Anthony Martin @ 2011-02-16 2:14 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> % ktrace -d ./9vx -r /n/plan9 -u glenda -g -S
> namec #/
> namec #e/terminal
> namec #e/cputype
> namec #e/rootdir
> namec #e/service
> namec #e/user
> namec #e/sysname
> namec #Zplan9/
> namec /
> namec #p
> namec /proc
> namec #~/mntloop
> namec #Zplan9/
> namec #s/boot
> 9vx panic: vxproc_run: Invalid argument
In src/libvx32/openbsd.c:/vxemu_map
int s, sel;
struct vxproc *vxp;
union descriptor desc;
...
/*if(emu->datasel == 0){
if ((s = i386_set_ldt(LDT_AUTO_ALLOC, &desc, 1)) < 0)
return -1; */
emu->datasel = (s<<3) + 4 + 3; // 4=LDT, 3=RPL
if(i386_set_ldt(emu->datasel >> 3, &desc, 1) < 0)
return -1;
...
The s variable is used un-initialized because
of the commented piece of code, causing EINVAL.
And since LDT_AUTO_ALLOC is only on FreeBSD or
Darwin, you're going to have to get it another
way.
At least, that's what I think from reading the
code since I don't have access to an OpenBSD box.
Anthony
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 1:17 ` ron minnich
2011-02-16 1:23 ` Stanley Lieber
@ 2011-02-16 1:24 ` Devon H. O'Dell
1 sibling, 0 replies; 17+ messages in thread
From: Devon H. O'Dell @ 2011-02-16 1:24 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
He mentioned it being i386
On Feb 15, 2011 8:19 PM, "ron minnich" <rminnich@gmail.com> wrote:
> hey is this 64 or 32 bit system?
> uname -a?
> If you told me that already, sorry, I missed it.
>
> ron
>
[-- Attachment #2: Type: text/html, Size: 361 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 1:17 ` ron minnich
@ 2011-02-16 1:23 ` Stanley Lieber
2011-02-16 1:24 ` Devon H. O'Dell
1 sibling, 0 replies; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 1:23 UTC (permalink / raw)
To: 9fans
> hey is this 64 or 32 bit system?
> uname -a?
> If you told me that already, sorry, I missed it.
>
> ron
% dmesg | sed 6q
OpenBSD 4.9-beta (GENERIC) #625: Fri Jan 14 21:56:02 MST 2011
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) Processor 3300+ ("AuthenticAMD" 686-class, 128KB L2 cache) 2.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem = 1609068544 (1534MB)
avail mem = 1572626432 (1499MB)
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 1:13 ` Stanley Lieber
@ 2011-02-16 1:17 ` ron minnich
2011-02-16 1:23 ` Stanley Lieber
2011-02-16 1:24 ` Devon H. O'Dell
2011-02-16 2:14 ` Anthony Martin
1 sibling, 2 replies; 17+ messages in thread
From: ron minnich @ 2011-02-16 1:17 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
hey is this 64 or 32 bit system?
uname -a?
If you told me that already, sorry, I missed it.
ron
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 0:10 ` ron minnich
@ 2011-02-16 1:13 ` Stanley Lieber
2011-02-16 1:17 ` ron minnich
2011-02-16 2:14 ` Anthony Martin
0 siblings, 2 replies; 17+ messages in thread
From: Stanley Lieber @ 2011-02-16 1:13 UTC (permalink / raw)
To: 9fans
> It's been a long day and my debugging skills are lukewarm ...
>
> can you run it with -g -S and see if we get any more useful output?
>
> ron
% ktrace -d ./9vx -r /n/plan9 -u glenda -g -S
namec #/
namec #e/terminal
namec #e/cputype
namec #e/rootdir
namec #e/service
namec #e/user
namec #e/sysname
namec #Zplan9/
namec /
namec #p
namec /proc
namec #~/mntloop
namec #Zplan9/
namec #s/boot
9vx panic: vxproc_run: Invalid argument
ktrace here:
http://openbsd.stanleylieber.com/9vx/ktrace
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
@ 2011-02-16 0:36 rsdehart
0 siblings, 0 replies; 17+ messages in thread
From: rsdehart @ 2011-02-16 0:36 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
------Original Message------
From: ron minnich
Sender: 9fans-bounces@9fans.net
To: Fans of the OS Plan 9 from Bell Labs
ReplyTo: Fans of the OS Plan 9 from Bell Labs
Subject: Re: [9fans] 9vx on OpenBSD
Sent: Feb 15, 2011 6:10 PM
It's been a long day and my debugging skills are lukewarm ...
can you run it with -g -S and see if we get any more useful output?
ron
Sent via BlackBerry by AT&T
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
@ 2011-02-16 0:26 rsdehart
0 siblings, 0 replies; 17+ messages in thread
From: rsdehart @ 2011-02-16 0:26 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
D
------Original Message------
From: ron minnich
Sender: 9fans-bounces@9fans.net
To: Fans of the OS Plan 9 from Bell Labs
ReplyTo: Fans of the OS Plan 9 from Bell Labs
Subject: Re: [9fans] 9vx on OpenBSD
Sent: Feb 15, 2011 6:10 PM
It's been a long day and my debugging skills are lukewarm ...
can you run it with -g -S and see if we get any more useful output?
ron
Sent via BlackBerry by AT&T
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-15 23:53 ` Stanley Lieber
@ 2011-02-16 0:10 ` ron minnich
2011-02-16 1:13 ` Stanley Lieber
0 siblings, 1 reply; 17+ messages in thread
From: ron minnich @ 2011-02-16 0:10 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
It's been a long day and my debugging skills are lukewarm ...
can you run it with -g -S and see if we get any more useful output?
ron
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-15 23:34 ` Anthony Martin
@ 2011-02-15 23:53 ` Stanley Lieber
2011-02-16 0:10 ` ron minnich
0 siblings, 1 reply; 17+ messages in thread
From: Stanley Lieber @ 2011-02-15 23:53 UTC (permalink / raw)
To: 9fans
>>> % 9vx panic: vxproc_run: Function not implemented
>
> This sounds like a problem setting up the LDT.
> Are you on amd64 or i386? Also, you should run
> ktrace with the -d flag so we can see a trace
> of the child procs.
>
> Anthony
i386. This made me think to check sysctl.conf, but it's set machdep.userldt=1.
Here is new output from ktrace -d:
http://openbsd.stanleylieber.com/9vx/ktrace
-sl
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 17:06 ` Stanley Lieber
@ 2011-02-15 23:34 ` Anthony Martin
2011-02-15 23:53 ` Stanley Lieber
0 siblings, 1 reply; 17+ messages in thread
From: Anthony Martin @ 2011-02-15 23:34 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
>> % 9vx panic: vxproc_run: Function not implemented
This sounds like a problem setting up the LDT.
Are you on amd64 or i386? Also, you should run
ktrace with the -d flag so we can see a trace
of the child procs.
Anthony
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 16:42 Stanley Lieber
@ 2011-02-15 22:06 ` ron minnich
2011-02-16 17:06 ` Stanley Lieber
0 siblings, 1 reply; 17+ messages in thread
From: ron minnich @ 2011-02-15 22:06 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Wed, Feb 16, 2011 at 8:42 AM, Stanley Lieber
<stanley.lieber@gmail.com> wrote:
> Well, it builds, but it doesn't run.
>
> % ./9vx -r /n/plan9 -u glenda
> % 9vx panic: vxproc_run: Function not implemented
I feel we've been here before. Can you do an strace?
ron
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [9fans] 9vx on OpenBSD
2011-02-16 15:36 Stanley Lieber
@ 2011-02-15 21:01 ` ron minnich
2011-02-16 16:05 ` Stanley Lieber
0 siblings, 1 reply; 17+ messages in thread
From: ron minnich @ 2011-02-15 21:01 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Wed, Feb 16, 2011 at 7:36 AM, Stanley Lieber
<stanley.lieber@gmail.com> wrote:
> Reading old 9fans posts, I found Iru's modifications of vx32/9vx to run on OpenBSD 4.3.
> With this minor change:
>
> src/9vx/Makefrag:184: echo 'ulong kerndate ="' `date +%s` '";' >9vx/kerndate.h
>
> I was able to get it to build on a current snapshot of OpenBSD.
It really needs this change to run?
ron
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2011-02-16 17:06 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-16 0:50 [9fans] 9vx on OpenBSD rsdehart
-- strict thread matches above, loose matches on Subject: below --
2011-02-16 16:42 Stanley Lieber
2011-02-15 22:06 ` ron minnich
2011-02-16 17:06 ` Stanley Lieber
2011-02-15 23:34 ` Anthony Martin
2011-02-15 23:53 ` Stanley Lieber
2011-02-16 0:10 ` ron minnich
2011-02-16 1:13 ` Stanley Lieber
2011-02-16 1:17 ` ron minnich
2011-02-16 1:23 ` Stanley Lieber
2011-02-16 1:24 ` Devon H. O'Dell
2011-02-16 2:14 ` Anthony Martin
2011-02-16 15:36 Stanley Lieber
2011-02-15 21:01 ` ron minnich
2011-02-16 16:05 ` Stanley Lieber
2011-02-16 0:36 rsdehart
2011-02-16 0:26 rsdehart
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).