pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51229: nodejs SIGSEGV on NetBSD/evbarm



The following reply was made to PR pkg/51229; it has been noted by GNATS.

From: Benjamin Lorenz <inbox@benjaminlorenz.email>
To: gnats-bugs%NetBSD.org@localhost, pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	pkgsrc-bugs%netbsd.org@localhost, netbsd@benjaminlorenz.email
Cc: 
Subject: Re: pkg/51229: nodejs SIGSEGV on NetBSD/evbarm
Date: Fri, 10 Jun 2016 20:41:46 +0200

 --=-Hv3ucA4XeAua2UCDQj99
 Content-Type: text/plain; charset="utf-8"
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Jun 09, 2016 at 07:25:37AM -0400, Christos Zoulas wrote:=C2=A0
 
  > On Jun 9, =C2=A07:45am, netbsd@benjaminlorenz.email (netbsd@benjaminlore=
 nz.email) wrote:=20
  > -- Subject: pkg/51229: nodejs SIGSEGV on NetBSD/evbarm=20
  > =20
  > DO we get the right cpp define for the processor?=20
  > =20
  > https://github.com/nodejs/node/blob/master/deps/v8/src/base/atomicops_in=
 ternals_arm_gcc.h=20
  =20
  lang/nodejs is missing the fix from lang/nodejs4.=20
  =20
  Joerg=20
 
 
 
 nodejs4 currently also crashes at startup:
 
 
 
 (gdb) start=20
 Temporary breakpoint 1 at 0x5a34dc: file ../src/node_main.cc, line 44.=20
 Starting program: /usr/pkg/src/lang/nodejs4/work/node-v4.4.5/out/Release/no=
 de=C2=A0=20
 [Switching to LWP 1]=20
 
 =20
 Temporary breakpoint 1, main (argc=3D1, argv=3D0x7fffcccc) at ../src/node_m=
 ain.cc:44=20
 44=C2=A0 =C2=A0 =C2=A0 =C2=A0 setvbuf(stderr, NULL, _IOLBF, 1024);=20
 (gdb) l=20
 39=C2=A0 =C2=A0 =C2=A0 =C2=A0 return node::Start(argc, argv);=20
 40=C2=A0 =C2=A0 =C2=A0 }=20
 41=C2=A0 =C2=A0 =C2=A0 #else=20
 42=C2=A0 =C2=A0 =C2=A0 // UNIX=20
 43=C2=A0 =C2=A0 =C2=A0 int main(int argc, char *argv[]) {=20
 44=C2=A0 =C2=A0 =C2=A0 =C2=A0 setvbuf(stderr, NULL, _IOLBF, 1024);=20
 45=C2=A0 =C2=A0 =C2=A0 =C2=A0 return node::Start(argc, argv);=20
 46=C2=A0 =C2=A0 =C2=A0 }=20
 47=C2=A0 =C2=A0 =C2=A0 #endif=20
 (gdb) n=20
 
 =20
 Program received signal SIGSEGV, Segmentation fault.=20
 0xffff0fc0 in ?? ()=20
 (gdb) bt=20
 #0=C2=A0 0xffff0fc0 in ?? ()=20
 #1=C2=A0 0x0087ddd8 in v8::base::(anonymous namespace)::LinuxKernelCmpxchg =
 (=20
 =C2=A0 =C2=A0 old_value=3D0, new_value=3D1, ptr=3D0x12cb500 <v8::base::entr=
 opy_mutex>)=20
 =C2=A0 =C2=A0 at ../deps/v8/src/base/atomicops_internals_arm_gcc.h:186=20
 #2=C2=A0 0x0087dec4 in v8::base::Acquire_CompareAndSwap (=20
 =C2=A0 =C2=A0 ptr=3D0x12cb500 <v8::base::entropy_mutex>, old_value=3D0, new=
 _value=3D1)=20
 =C2=A0 =C2=A0 at ../deps/v8/src/base/atomicops_internals_arm_gcc.h:243=20
 #3=C2=A0 0x00e6da3c in v8::base::CallOnceImpl (=20
 =C2=A0 =C2=A0 once=3D0x12cb500 <v8::base::entropy_mutex>, init_func=3D=20
 =C2=A0 =C2=A0 0x862da4 <v8::base::LazyInstanceImpl<v8::base::Mutex, v8::bas=
 e::StaticallyAllocatedInstanceTrait<v8::base::Mutex>, v8::base::DefaultCons=
 tructTrait<v8::base::Mutex>, v8::base::ThreadSafeInitOnceTrait, v8::base::L=
 eakyInstanceTrait<v8::base::Mutex> >::InitInstance(v8::base::StaticallyAllo=
 catedInstanceTrait<v8::base::Mutex>::StorageType*)>, arg=3D0x12cb504 <v8::b=
 ase::entropy_mutex+4>)=20
 =C2=A0 =C2=A0 at ../deps/v8/src/base/once.cc:33
 
 =
 
 --=-Hv3ucA4XeAua2UCDQj99
 Content-Type: text/html; charset="utf-8"
 
 <html><head></head><body>On Thu, Jun 09, 2016 at 07:25:37AM -0400, Christos Zoulas wrote:&nbsp;<br><div><blockquote class="mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;"> &gt; On Jun 9, &nbsp;7:45am, netbsd@benjaminlorenz.email (netbsd@benjaminlorenz.email) wrote:
 <br> &gt; -- Subject: pkg/51229: nodejs SIGSEGV on NetBSD/evbarm
 <br> &gt; 
 <br> &gt; DO we get the right cpp define for the processor?
 <br> &gt; 
 <br> &gt; https://github.com/nodejs/node/blob/master/deps/v8/src/base/atomicops_internals_arm_gcc.h
 <br> 
 <br> lang/nodejs is missing the fix from lang/nodejs4.
 <br> 
 <br> Joerg
 </blockquote></div><div><br></div><div><br></div>nodejs4 currently also crashes at startup:<div><br></div><div><p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">(gdb) start</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">Temporary breakpoint 1 at 0x5a34dc: file ../src/node_main.cc, line 44.</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">Starting program: /usr/pkg/src/lang/nodejs4/work/node-v4.4.5/out/Release/node&nbsp;</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">[Switching to LWP 1]</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 15px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">Temporary breakpoint 1, main (argc=1, argv=0x7fffcccc) at ../src/node_main.cc:44</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">44&nbsp; &nbsp; &nbsp; &nbsp; setvbuf(stderr, NULL, _IOLBF, 1024);</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">(gdb) l</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">39&nbsp; &nbsp; &nbsp; &nbsp; return node::Start(argc, argv);</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">40&nbsp; &nbsp; &nbsp; }</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">41&nbsp; &nbsp; &nbsp; #else</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">42&nbsp; &nbsp; &nbsp; // UNIX</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">43&nbsp; &nbsp; &nbsp; int main(int argc, char *argv[]) {</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">44&nbsp; &nbsp; &nbsp; &nbsp; setvbuf(stderr, NULL, _IOLBF, 1024);</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">45&nbsp; &nbsp; &nbsp; &nbsp; return node::Start(argc, argv);</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">46&nbsp; &nbsp; &nbsp; }</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">47&nbsp; &nbsp; &nbsp; #endif</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">(gdb) n</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 15px;"><span style="font-variant-ligatures: no-common-ligatures"></span><br></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">Program received signal SIGSEGV, Segmentation fault.</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">0xffff0fc0 in ?? ()</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">(gdb) bt</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">#0&nbsp; 0xffff0fc0 in ?? ()</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">#1&nbsp; 0x0087ddd8 in v8::base::(anonymous namespace)::LinuxKernelCmpxchg (</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; old_value=0, new_value=1, ptr=0x12cb500 &lt;v8::base::entropy_mutex&gt;)</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; at ../deps/v8/src/base/atomicops_internals_arm_gcc.h:186</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">#2&nbsp; 0x0087dec4 in v8::base::Acquire_CompareAndSwap (</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; ptr=0x12cb500 &lt;v8::base::entropy_mutex&gt;, old_value=0, new_value=1)</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; at ../deps/v8/src/base/atomicops_internals_arm_gcc.h:243</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">#3&nbsp; 0x00e6da3c in v8::base::CallOnceImpl (</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; once=0x12cb500 &lt;v8::base::entropy_mutex&gt;, init_func=</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; 0x862da4 &lt;v8::base::LazyInstanceImpl&lt;v8::base::Mutex, v8::base::StaticallyAllocatedInstanceTrait&lt;v8::base::Mutex&gt;, v8::base::DefaultConstructTrait&lt;v8::base::Mutex&gt;, v8::base::ThreadSafeInitOnceTrait, v8::base::LeakyInstanceTrait&lt;v8::base::Mutex&gt; &gt;::InitInstance(v8::base::StaticallyAllocatedInstanceTrait&lt;v8::base::Mutex&gt;::StorageType*)&gt;, arg=0x12cb504 &lt;v8::base::entropy_mutex+4&gt;)</span></p>
 <p style="margin: 0px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">&nbsp; &nbsp; at ../deps/v8/src/base/once.cc:33</span></p></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div></body></html>
 --=-Hv3ucA4XeAua2UCDQj99--
 


Home | Main Index | Thread Index | Old Index