Re: Possible thread synchronization issue in futex implementation

2018-01-10 Thread Nadav Har'El
On Thu, Jan 11, 2018 at 1:28 AM, Waldek Kozaczuk wrote: > I added more debug statements and now I think it might be a deadlock > scenario between 3 threads. It might be a bug in Golang but why it work > fine in Linux. > > Here is a newest debug output and latest linux.cc. What I find interesting

Re: Possible thread synchronization issue in futex implementation

2018-01-10 Thread Nadav Har'El
On Thu, Jan 11, 2018 at 1:28 AM, Waldek Kozaczuk wrote: > I added more debug statements and now I think it might be a deadlock > scenario between 3 threads. It might be a bug in Golang but why it work > fine in Linux. > I'll look at your traces in a few minutes, but before I do, I still need to

Re: Possible thread synchronization issue in futex implementation

2018-01-10 Thread Waldek Kozaczuk
Lastly very rarely I see crashes in httpserver app when after a while of no activity it would get into this infinite looks and spills this type of messages to the console over and ober: ... [signal SIGSEGV: segmentation violation code=0xaed190 addr=0x0 pc=0x11127d05] runtime stack: runtime

Re: Possible thread synchronization issue in futex implementation

2018-01-10 Thread Waldek Kozaczuk
I added more debug statements and now I think it might be a deadlock scenario between 3 threads. It might be a bug in Golang but why it work fine in Linux. Here is a newest debug output and latest linux.cc. What I find interesting is why sometimes (first WAKE for example) is called when nobody

Build failed in Jenkins: osv-build-nightly #1348

2018-01-10 Thread jenkins
See -- [...truncated 140.07 KB...] Adding /tests/misc-console.so... Adding /tests/misc-leak.so... Adding /tests/misc-readbench.so... Adding /tests/misc-mmap-anon-perf.so... Addi

[PATCH v2] * clean ROOTFS if it already exists

2018-01-10 Thread geraldo netto
Signed-off-by: geraldo netto --- tomcat/GET | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tomcat/GET b/tomcat/GET index 6ec6f28..8228b5f 100755 --- a/tomcat/GET +++ b/tomcat/GET @@ -25,11 +25,10 @@ popd popd -if [ ! -f ROOTFS/usr/tomcat ]; +if [ -d ROOTFS/usr/tomca

Re: [PATCH 2/2] * clean ROOTFS if it already exists

2018-01-10 Thread Geraldo Netto
Hey, Sorry it's -d :P +if [ ! -d ROOTFS/usr/tomcat ]; +then +mkdir -p ROOTFS/usr/tomcat +else +rm -rf ROOTFS/usr/tomcat +fi Kind Regards, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ On 10 January 2018 at 10:45, geraldo netto wrote: > Signed-off-by: geraldo net

[PATCH 1/2] * avoid downloading tomcat if it already exists

2018-01-10 Thread geraldo netto
Signed-off-by: geraldo netto --- tomcat/GET | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tomcat/GET b/tomcat/GET index b96d963..35351d8 100755 --- a/tomcat/GET +++ b/tomcat/GET @@ -8,7 +8,12 @@ archive=$dir.tar.gz mkdir -p upstream pushd upstream -wget http://arc

[PATCH 0/2] apps/tomcat - avoid downloading if exists, clean ROOTFS every for every execution

2018-01-10 Thread geraldo netto
geraldo netto (2): * avoid downloading tomcat if it already exists * clean ROOTFS if it already exists tomcat/GET | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.7.4 -- You received this message because you are subscribed to the Google Groups "OSv Development"

[PATCH 2/2] * clean ROOTFS if it already exists

2018-01-10 Thread geraldo netto
Signed-off-by: geraldo netto --- tomcat/GET | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tomcat/GET b/tomcat/GET index 35351d8..6ec6f28 100755 --- a/tomcat/GET +++ b/tomcat/GET @@ -25,7 +25,11 @@ popd popd +if [ ! -f ROOTFS/usr/tomcat ]; +then +mkdir -p ROO