Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2018-01-04 Thread Mattia Rizzolo
Control: fixed -1 8.9.3~dfsg-1

On Mon, Dec 18, 2017 at 09:55:37PM +0100, Jérémy Lal wrote:
> Good news: i don't get this segfault using nodejs 8.9.3 that i just
> uploaded to experimental.

Tweaking metadata to say so, then.

This bug should probably also be closed at some point.

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Processed: Re: Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2018-01-04 Thread Debian Bug Tracking System
Processing control commands:

> fixed -1 8.9.3~dfsg-1
Bug #878674 [nodejs] nodejs segfaults when building d3-* with webpack
There is no source info for the package 'nodejs' at version '8.9.3~dfsg-1' with 
architecture ''
Unable to make a source version for version '8.9.3~dfsg-1'
Marked as fixed in versions 8.9.3~dfsg-1.

-- 
878674: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878674
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Pirate Praveen
On 10/16/2017 03:21 PM, Jérémy Lal wrote:
> 
> Update: i uploaded libuv1 1.11.0 to experimental.
> I strongly suspect the bug you see will be fixed with that version.
> 
> Jérémy

I'm using libuv1 1.11 (built locally) and still seeing the segfault, I
think more dbgsym packages need to be installed.

(gdb) bt
#0  0x2fe38955cd76 in ?? ()
#1  0x40b5c800 in ?? ()
#2  0x15c7 in ?? ()
#3  0x40478000 in ?? ()
#4  0x023b145957053b00 in ?? ()
#5  0x262e40c38fe9 in ?? ()
#6  0x262e40c37d39 in ?? ()
#7  0x0e94d9fc73d9 in ?? ()
#8  0x0929666c22c9 in ?? ()
#9  0x7fff8130 in ?? ()
#10 0x2fe389548c70 in ?? ()
#11 0x002e in ?? ()
#12 0x1117aff862a1 in ?? ()
#13 0x in ?? ()




signature.asc
Description: OpenPGP digital signature


Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Jérémy Lal
2017-10-16 11:28 GMT+02:00 Jérémy Lal :

>
>
> 2017-10-16 9:59 GMT+02:00 Pirate Praveen :
>
>> On 10/16/2017 01:18 PM, Jérémy Lal wrote:
>> >
>> >
>> > 2017-10-16 9:43 GMT+02:00 Pirate Praveen > > >:
>> >
>> > On 10/16/2017 12:47 PM, Jérémy Lal wrote:
>> > > You could get a more useful stack trace by installing
>> nodejs-dbgsym
>> > > package from
>> > > deb http://debug.mirrors.debian.org/debian-debug/
>> >  unstable-debug main
>> >
>> > I have installed it, but the output is still the same, no extra
>> details.
>> >
>> >
>> > You're supposed to run node through gdb:
>> >
>> > gdb node
>> >> run 

Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Jérémy Lal
2017-10-16 9:59 GMT+02:00 Pirate Praveen :

> On 10/16/2017 01:18 PM, Jérémy Lal wrote:
> >
> >
> > 2017-10-16 9:43 GMT+02:00 Pirate Praveen  > >:
> >
> > On 10/16/2017 12:47 PM, Jérémy Lal wrote:
> > > You could get a more useful stack trace by installing nodejs-dbgsym
> > > package from
> > > deb http://debug.mirrors.debian.org/debian-debug/
> >  unstable-debug main
> >
> > I have installed it, but the output is still the same, no extra
> details.
> >
> >
> > You're supposed to run node through gdb:
> >
> > gdb node
> >> run 

Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Pirate Praveen
On 10/16/2017 01:18 PM, Jérémy Lal wrote:
> 
> 
> 2017-10-16 9:43 GMT+02:00 Pirate Praveen  >:
> 
> On 10/16/2017 12:47 PM, Jérémy Lal wrote:
> > You could get a more useful stack trace by installing nodejs-dbgsym
> > package from
> > deb http://debug.mirrors.debian.org/debian-debug/
>  unstable-debug main
> 
> I have installed it, but the output is still the same, no extra details.
> 
> 
> You're supposed to run node through gdb:
> 
> gdb node
>> run 

Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Jérémy Lal
2017-10-16 9:43 GMT+02:00 Pirate Praveen :

> On 10/16/2017 12:47 PM, Jérémy Lal wrote:
> > You could get a more useful stack trace by installing nodejs-dbgsym
> > package from
> > deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main
>
> I have installed it, but the output is still the same, no extra details.
>
>
You're supposed to run node through gdb:

gdb node
> run 

Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Pirate Praveen
On 10/16/2017 12:47 PM, Jérémy Lal wrote:
> You could get a more useful stack trace by installing nodejs-dbgsym
> package from
> deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main

I have installed it, but the output is still the same, no extra details.



signature.asc
Description: OpenPGP digital signature


Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Pirate Praveen
On 10/16/2017 12:47 PM, Jérémy Lal wrote:
> You could get a more useful stack trace by installing nodejs-dbgsym
> package from
> deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main
> 
> Jérémy

I will try that,

meanwhile I tried,
 NODE_PATHocal/lib/node_modules node debug
/usr/lib/nodejs/webpack/bin/webpack.js --config debian/webpack.config.js
index.js build/d3-zoom.js --target=web --output-library=d3-zoom
--output-library-target=umd --module-bind 'js=babel-loader'

and found the line that is causing segfault.

break in /usr/lib/nodejs/babel-loader/lib/index.js:168
 166   const { code, map, metadata } = transpile(source, options);
 167
>168   metadataSubscribers.forEach(s => passMetadata(s, this, metadata));
 169
 170   this.callback(null, code, map);
debug>
break in /usr/lib/nodejs/babel-loader/lib/index.js:170
 168   metadataSubscribers.forEach(s => passMetadata(s, this, metadata));
 169
>170   this.callback(null, code, map);
 171 };
 172 });
debug>
< PID 22632 received SIGSEGV for address: 0x0
<
/usr/local/lib/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x199c)[0x7fec0788b99c]
< /lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7fec0a8580c0]
< [0x7a34cf7e628]




signature.asc
Description: OpenPGP digital signature


Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Jérémy Lal
2017-10-16 8:54 GMT+02:00 Pirate Praveen :

> On 10/16/2017 10:32 AM, Pirate Praveen wrote:
> > I don't think any of them is a C++ addon, probably one of their
> > dependencies.
> >
> >
> >
>
> After using segfault-handler node module, I get this message,
>
> PID 21070 received SIGSEGV for address: 0x0
> /usr/local/lib/node_modules/segfault-handler/build/
> Release/segfault-handler.node(+0x1a0d)[0x7f54aad48a0d]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f54ad5140c0]
> [0x368109d6c128]
>
> npm install -g segfault-handler
>
> and add export NODE_PATH=/usr/local/lib/node_modules in debian/rules
>
> and add these two lines to /usr/lib/nodejs/webpack/bin/webpack.js
>
> var SegfaultHandler = require('segfault-handler');
>
> SegfaultHandler.registerHandler("crash.log");
>

You could get a more useful stack trace by installing nodejs-dbgsym package
from
deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main

Jérémy


Bug#878674: [Pkg-javascript-devel] Bug#878674: Bug#878674: nodejs segfaults when building d3-* with webpack

2017-10-16 Thread Pirate Praveen
On 10/16/2017 10:32 AM, Pirate Praveen wrote:
> I don't think any of them is a C++ addon, probably one of their
> dependencies.
> 
> 
> 

After using segfault-handler node module, I get this message,

PID 21070 received SIGSEGV for address: 0x0
/usr/local/lib/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x1a0d)[0x7f54aad48a0d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f54ad5140c0]
[0x368109d6c128]

npm install -g segfault-handler

and add export NODE_PATH=/usr/local/lib/node_modules in debian/rules

and add these two lines to /usr/lib/nodejs/webpack/bin/webpack.js

var SegfaultHandler = require('segfault-handler');

SegfaultHandler.registerHandler("crash.log");



signature.asc
Description: OpenPGP digital signature