* [9fans] 9VX failure @ 2010-09-11 7:02 Lucio De Re 2010-09-11 7:14 ` Lucio De Re 0 siblings, 1 reply; 11+ messages in thread From: Lucio De Re @ 2010-09-11 7:02 UTC (permalink / raw) To: 9fans Not much more than init: starting /bin/rc Segmentation fault from a freshly compiled 9vx or the 9vx.Linux contained in the HG repository on bitbucket.org. I was hoping to try 9vx.tgz from swtch.com which is not 9vx*.bz2, but that does not behave any differently. The platform Linux fangle 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 i686 GNU/Linux Ubuntu Lucid Lynx on an HP Laptop. ++L ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 7:02 [9fans] 9VX failure Lucio De Re @ 2010-09-11 7:14 ` Lucio De Re 2010-09-11 16:34 ` ron minnich 0 siblings, 1 reply; 11+ messages in thread From: Lucio De Re @ 2010-09-11 7:14 UTC (permalink / raw) To: 9fans On Sat, Sep 11, 2010 at 09:02:36AM +0200, Lucio De Re wrote: > > I was hoping to try 9vx.tgz from swtch.com which is not 9vx*.bz2, but > that does not behave any differently. > s/not 9/now 9/ ++L ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 7:14 ` Lucio De Re @ 2010-09-11 16:34 ` ron minnich 2010-09-11 17:18 ` Lucio De Re 0 siblings, 1 reply; 11+ messages in thread From: ron minnich @ 2010-09-11 16:34 UTC (permalink / raw) To: lucio, Fans of the OS Plan 9 from Bell Labs I am pretty sure Charle's patch will fix this problem ron ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 16:34 ` ron minnich @ 2010-09-11 17:18 ` Lucio De Re 2010-09-11 17:24 ` ron minnich 0 siblings, 1 reply; 11+ messages in thread From: Lucio De Re @ 2010-09-11 17:18 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Sat, Sep 11, 2010 at 09:34:20AM -0700, ron minnich wrote: > > I am pretty sure Charle's patch will fix this problem > Is that included in rminnich/vx32, where default compilation fails with a missing "pcap.h"? What should I be looking for? ++L ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 17:18 ` Lucio De Re @ 2010-09-11 17:24 ` ron minnich 2010-09-11 17:38 ` Lucio De Re 0 siblings, 1 reply; 11+ messages in thread From: ron minnich @ 2010-09-11 17:24 UTC (permalink / raw) To: lucio, Fans of the OS Plan 9 from Bell Labs On Sat, Sep 11, 2010 at 10:18 AM, Lucio De Re <lucio@proxima.alt.za> wrote: > On Sat, Sep 11, 2010 at 09:34:20AM -0700, ron minnich wrote: >> >> I am pretty sure Charle's patch will fix this problem >> > Is that included in rminnich/vx32, where default compilation fails with > a missing "pcap.h"? the pcap.h thing is unrelated and I think I'm going to change it so that it builds default with no pcap support, since I'm not the only person seeing this build error. no, I have to get his patch included. I had a question in to his customer support people about the patch first before i went with the patch :-) ron ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 17:24 ` ron minnich @ 2010-09-11 17:38 ` Lucio De Re 2010-09-11 17:46 ` Devon H. O'Dell 0 siblings, 1 reply; 11+ messages in thread From: Lucio De Re @ 2010-09-11 17:38 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Sat, Sep 11, 2010 at 10:24:05AM -0700, ron minnich wrote: > >> > > Is that included in rminnich/vx32, where default compilation fails with > > a missing "pcap.h"? > > the pcap.h thing is unrelated and I think I'm going to change it so > that it builds default with no pcap support, since I'm not the only > person seeing this build error. > > no, I have to get his patch included. I had a question in to his > customer support people about the patch first before i went with the > patch :-) > That means that there are two patches required here: Charles' adjustment (why have I not seen it, I wonder) and the pcap.h thing. Can you post them here in the interim? I'm not sure I want to know why pcap.h is being included and not found... ++L ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 17:38 ` Lucio De Re @ 2010-09-11 17:46 ` Devon H. O'Dell 2010-09-11 18:14 ` Lucio De Re 0 siblings, 1 reply; 11+ messages in thread From: Devon H. O'Dell @ 2010-09-11 17:46 UTC (permalink / raw) To: lucio, Fans of the OS Plan 9 from Bell Labs pcap is for the virtual ethernet driver to use the native ip stack. there's another one that uses TAP that yiyus finalized from someone else's efforts (I'm not giving due credit here, sorry). If you don't have pcap just don't build etherve.c. --dho 2010/9/11 Lucio De Re <lucio@proxima.alt.za>: > On Sat, Sep 11, 2010 at 10:24:05AM -0700, ron minnich wrote: >> >> >> > Is that included in rminnich/vx32, where default compilation fails with >> > a missing "pcap.h"? >> >> the pcap.h thing is unrelated and I think I'm going to change it so >> that it builds default with no pcap support, since I'm not the only >> person seeing this build error. >> >> no, I have to get his patch included. I had a question in to his >> customer support people about the patch first before i went with the >> patch :-) >> > That means that there are two patches required here: Charles' adjustment > (why have I not seen it, I wonder) and the pcap.h thing. Can you post > them here in the interim? I'm not sure I want to know why pcap.h is > being included and not found... > > ++L > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 17:46 ` Devon H. O'Dell @ 2010-09-11 18:14 ` Lucio De Re 2010-09-11 19:02 ` yy 0 siblings, 1 reply; 11+ messages in thread From: Lucio De Re @ 2010-09-11 18:14 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Sat, Sep 11, 2010 at 01:46:16PM -0400, Devon H. O'Dell wrote: > > pcap is for the virtual ethernet driver to use the native ip stack. > there's another one that uses TAP that yiyus finalized from someone > else's efforts (I'm not giving due credit here, sorry). If you don't > have pcap just don't build etherve.c. > That bit was easy, just move the leading # from nopcap to etherpcap: #PLAN9PCAP=etherpcap PLAN9PCAP=nopcap Now, where do I find Charles' fix for the segmentation error? ++L ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 18:14 ` Lucio De Re @ 2010-09-11 19:02 ` yy 2010-09-11 20:25 ` ron minnich 0 siblings, 1 reply; 11+ messages in thread From: yy @ 2010-09-11 19:02 UTC (permalink / raw) To: lucio, Fans of the OS Plan 9 from Bell Labs 2010/9/11 Lucio De Re <lucio@proxima.alt.za>: > That bit was easy, just move the leading # from nopcap to etherpcap: >From now on, this is the default in my 9vx version: http://bitbucket.org/yiyus/vx32/ If anybody thinks pcap should be compiled by default, please let me know. > Now, where do I find Charles' fix for the segmentation error? I'm trying to find that one too. -- - yiyus || JGL . 4l77.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 19:02 ` yy @ 2010-09-11 20:25 ` ron minnich 2010-09-11 20:25 ` ron minnich 0 siblings, 1 reply; 11+ messages in thread From: ron minnich @ 2010-09-11 20:25 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs; +Cc: lucio hg diff diff -r c7e9b5edb8d4 src/9vx/main.c --- a/src/9vx/main.c Sun Dec 27 09:49:22 2009 -0800 +++ b/src/9vx/main.c Fri Sep 03 16:58:16 2010 +0100 @@ -55,6 +55,7 @@ static void bootinit(void); static void siginit(void); +static void machkeyinit(void); static char* getuser(void); static char* findroot(void); @@ -80,6 +81,9 @@ char buf[1024]; Here you go, thanks Charles! ron /* Minimal set up to make print work. */ +#ifndef TLS + machkeyinit(); +#endif setmach(&mach0); coherence = nop; quotefmtinstall(); @@ -695,9 +699,6 @@ void mach0init(void) { -#ifndef TLS - machkeyinit(); -#endif conf.nmach = 1; machinit(); /* common per-processor init */ diff -r c7e9b5edb8d4 src/9vx/sched.c --- a/src/9vx/sched.c Sun Dec 27 09:49:22 2009 -0800 +++ b/src/9vx/sched.c Fri Sep 03 16:58:16 2010 +0100 @@ -158,6 +158,8 @@ m->machno, p->pid, p->text, kprocq.n, nrunproc); unlock(&kprocq.lk); punlock(&run); + while(p->mach != nil) + sched_yield(); return p; } diff -r c7e9b5edb8d4 src/Makefrag --- a/src/Makefrag Sun Dec 27 09:49:22 2009 -0800 +++ b/src/Makefrag Fri Sep 03 16:58:16 2010 +0100 @@ -1,7 +1,7 @@ # Main top-level makefile fragment for the vx32 virtual machine. # Compiler flags common to both host and VX32 environment files. -COMMON_CFLAGS = -g -O3 -MD -std=gnu99 -I. $(CFLAGS) +COMMON_CFLAGS = -g -O2 -MD -std=gnu99 -I. -fno-stack-protector $(CFLAGS) #COMMON_CFLAGS = -g -MD -std=gnu99 -I. $(CFLAGS) COMMON_LDFLAGS = -g -L. $(LDFLAGS) diff -r c7e9b5edb8d4 src/libvx32/run32.S --- a/src/libvx32/run32.S Sun Dec 27 09:49:22 2009 -0800 +++ b/src/libvx32/run32.S Fri Sep 03 16:58:16 2010 +0100 @@ -111,6 +111,7 @@ popl %edi popl %esi popl %ebx + cld ret @@ -128,6 +129,8 @@ // (DS/ES/SS were already restored by vxrun_return.) movw VXEMU_HOST_VS(%eax),VSEG + cld + ret // Don't put anything here! ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9VX failure 2010-09-11 20:25 ` ron minnich @ 2010-09-11 20:25 ` ron minnich 0 siblings, 0 replies; 11+ messages in thread From: ron minnich @ 2010-09-11 20:25 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs; +Cc: lucio Try 2. sorry. Thanks again to charles for finding that CLD issue. ron hg diff diff -r c7e9b5edb8d4 src/9vx/main.c --- a/src/9vx/main.c Sun Dec 27 09:49:22 2009 -0800 +++ b/src/9vx/main.c Fri Sep 03 16:58:16 2010 +0100 @@ -55,6 +55,7 @@ static void bootinit(void); static void siginit(void); +static void machkeyinit(void); static char* getuser(void); static char* findroot(void); @@ -80,6 +81,9 @@ char buf[1024]; /* Minimal set up to make print work. */ +#ifndef TLS + machkeyinit(); +#endif setmach(&mach0); coherence = nop; quotefmtinstall(); @@ -695,9 +699,6 @@ void mach0init(void) { -#ifndef TLS - machkeyinit(); -#endif conf.nmach = 1; machinit(); /* common per-processor init */ diff -r c7e9b5edb8d4 src/9vx/sched.c --- a/src/9vx/sched.c Sun Dec 27 09:49:22 2009 -0800 +++ b/src/9vx/sched.c Fri Sep 03 16:58:16 2010 +0100 @@ -158,6 +158,8 @@ m->machno, p->pid, p->text, kprocq.n, nrunproc); unlock(&kprocq.lk); punlock(&run); + while(p->mach != nil) + sched_yield(); return p; } diff -r c7e9b5edb8d4 src/Makefrag --- a/src/Makefrag Sun Dec 27 09:49:22 2009 -0800 +++ b/src/Makefrag Fri Sep 03 16:58:16 2010 +0100 @@ -1,7 +1,7 @@ # Main top-level makefile fragment for the vx32 virtual machine. # Compiler flags common to both host and VX32 environment files. -COMMON_CFLAGS = -g -O3 -MD -std=gnu99 -I. $(CFLAGS) +COMMON_CFLAGS = -g -O2 -MD -std=gnu99 -I. -fno-stack-protector $(CFLAGS) #COMMON_CFLAGS = -g -MD -std=gnu99 -I. $(CFLAGS) COMMON_LDFLAGS = -g -L. $(LDFLAGS) diff -r c7e9b5edb8d4 src/libvx32/run32.S --- a/src/libvx32/run32.S Sun Dec 27 09:49:22 2009 -0800 +++ b/src/libvx32/run32.S Fri Sep 03 16:58:16 2010 +0100 @@ -111,6 +111,7 @@ popl %edi popl %esi popl %ebx + cld ret @@ -128,6 +129,8 @@ // (DS/ES/SS were already restored by vxrun_return.) movw VXEMU_HOST_VS(%eax),VSEG + cld + ret // Don't put anything here! ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-09-11 20:25 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-09-11 7:02 [9fans] 9VX failure Lucio De Re 2010-09-11 7:14 ` Lucio De Re 2010-09-11 16:34 ` ron minnich 2010-09-11 17:18 ` Lucio De Re 2010-09-11 17:24 ` ron minnich 2010-09-11 17:38 ` Lucio De Re 2010-09-11 17:46 ` Devon H. O'Dell 2010-09-11 18:14 ` Lucio De Re 2010-09-11 19:02 ` yy 2010-09-11 20:25 ` ron minnich 2010-09-11 20:25 ` ron minnich
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).