javascriptlint
javascriptlint copied to clipboard
segfault on duplicate arguments
javascriptlint
segfaults on the following file:
function a(err, data, data) {
return data;
}
On SmartOS with Python 2.6:
% build/install/jsl foo.js
JavaScript Lint
Developed by Matthias Miller (http://www.JavaScriptLint.com)
/home/cody/src/javascriptlint-original/foo.js
/home/cody/src/javascriptlint-original/foo.js(3): warning: duplicate_formal
zsh: segmentation fault (core dumped) build/install/jsl foo.js
On Mac OS X with Python 2.7:
% build/install/jsl foo.js
JavaScript Lint
Developed by Matthias Miller (http://www.JavaScriptLint.com)
/Users/cody.mello/src/javascriptlint/foo.js
/Users/cody.mello/src/javascriptlint/foo.js(3): warning: duplicate_formal
zsh: segmentation fault build/install/jsl foo.js
The stack of the SmartOS core file is:
% pfexec mdb /var/cores/core.python2.6.32761
Loading modules: [ libumem.so.1mdb: couldn't load pydb functions: No such file or directory
mdb: libpython2.6.so.1.0 module failed to initialize
libc.so.1 ld.so.1 ]
> ::stack
libpython2.6.so.1.0`tupleiter_next+0x23(84c520c, 84b3c40, 63, 0, 2, 8520628)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x20b5(85204d4, 0, 84a99bc, 0, 10, 83f6920)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(84aeb60, 84a99bc, 0, 851e6a8, 2, 851e6b0)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(851e554, 0, 84a99bc, 0, 1, 851e870)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x4ae8(851e714, 0, 84a99bc, 0, 2, 84efed0)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x4ae8(84efcd4, 0, 84a99bc, 0, fef22510, fef4af00)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(84ae848, 84a99bc, 0, 8389da8, 9, 8389dcc)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(8389c14, 0, 84a99bc, 0, fef22510, fef4af00)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(84ae968, 84a99bc, 0, 84f3190, 5, 84f31a4)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(84f3014, 0, 84a99bc, 0, 84bf380, 81fdf8c)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(84ae6e0, 84a99bc, 0, 84f3340, 3, 84f334c)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(84f31d4, 0, 84a99bc, 0, fef22510, fef4a9c0)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(84ae728, 84a99bc, 0, 84f36a4, 2, 84f36ac)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(84f3554, 0, 81f98ac, 0, fee59f4a, feed9690)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(81ef0b0, 81f98ac, 0, 84b82e0, 3, 8172cf8)
libpython2.6.so.1.0`function_call+0x194(84b5304, 84b82d4, 84c02d4, fea9a65d, 80c0010, 0)
libpython2.6.so.1.0`PyObject_Call+0x5c(84b5304, 84b82d4, 84c02d4, feac2000, 168, 80c0010)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x286e(84f6e14, 0, 81f98ac, 0, 84b9a8c, 81ff728)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(81f5530, 81f98ac, 0, 828da44, 4, 828da54)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x495c(828d8d4, 0, 81f98ac, 0, fef41c50, 80c0010)
libpython2.6.so.1.0`PyEval_EvalFrameEx+0x4ae8(81ac094, 0, 815e24c, 815e24c, 81fd94c, 8165608)
libpython2.6.so.1.0`PyEval_EvalCodeEx+0x7cd(8165608, 815e24c, 815e24c, 0, 0, 0)
libpython2.6.so.1.0`PyEval_EvalCode+0x63(8165608, 815e24c, 815e24c, 8173c88, feeca0a5, 81fd700)
libpython2.6.so.1.0`run_mod+0x4f(824c1f8, 8047659, 815e24c, 815e24c, 804741c, 8173c88)
libpython2.6.so.1.0`PyRun_FileExFlags+0x97(fed61c30, 8047659, 101, 815e24c, 815e24c, 1)
libpython2.6.so.1.0`PyRun_SimpleFileExFlags+0xdc(fed61c30, 8047659, 1, 804741c, feed803f, 804741c)
libpython2.6.so.1.0`PyRun_AnyFileExFlags+0x7f(fed61c30, 8047659, 1, 804741c, 80474a0, fefdb8fe)
libpython2.6.so.1.0`Py_Main+0xccf(3, 8047518, 133f, 1f80, 80474cc, feffb0a8)
main+0x27(3, 8047518, 8047528, feffb0a8, 804750c, 8050c92)
_start+0x83(3, 8047640, 8047659, 804766b, 0, 8047672)
The stack just shows functions from libpython2.6.so.1.0
, so I'm not sure if this is a problem with the spidermonkey module, or something else.