Tag: 分段错误

这个错误是什么“尝试释放未标记的标量”?

我正在从nodejs调用一个perl脚本,并得到像这样的错误: Attempt to free unreferenced scalar: SV 0x15810d8 during global destruction. Attempt to free unreferenced scalar: SV 0x15810d8 during global destruction. Attempt to free unreferenced scalar: SV 0x15cffb8 during global destruction. Attempt to free unreferenced scalar: SV 0x15cffb8 during global destruction. Segmentation fault 任何人都可以告诉我这是哪种错误,以及如何debugging它,因为它只是简单地结束节点进程而不提供任何有价值的信息。

Node.JS,C ++模块:当我尝试调用Local <Array>的Length方法时为什么会出现段错误?

当我从js代码和func()调用func()调用arr->Length()然后我有段错误。 但有时候,我在stdout有奇怪的随机值: 283132217, -1222622919, -42974919, -112180935, 997212473, -1412415175. 这是一个例子: #include <node.h> using namespace v8; Local<Array> arr = Array::New(); Handle<Value> func(const Arguments &args) { HandleScope scope; printf("%d\n", arr->Length()); return scope.Close(Undefined()); } void init(Handle<Object> target) { target->Set( String::NewSymbol("func"), FunctionTemplate::New(func)->GetFunction() ); } NODE_MODULE(ctest, init);

nodejs-0.4.2开始时的段错误(固定在v0.4.5)

问候,为了节省你的时间,这个bug在v0.4.5中得到了修复。我今天安装node.js时遇到了一个相当奇怪的问题,通过邮件归档筛选出来,但是却无法把它钉住。 所以我把问题发布到nodejs 这里 只是一个头,我改变snapshot='snapshot=on'从节点wscript到snapshot='' 。 我这样做是因为在做这个之前,我在make中遇到以下错误: scons: *** [obj/release/snapshot.cc] Error -11 现在到我跟着的步骤。 *以root身份login —开始configuration adil-X:/usr/local/nodejs/node-v0.4.2 # ./configure –prefix=/usr/local/nodejs Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok Checking for program gcc or cc […]

为什么我不能在node.js中结束活动的套接字而不会导致分段错误?

我试图阻止node.js中的一些HTTP服务器,但我不想等待所有keep-alive连接超时,才能完全closures服务器。 所以,我一直试图跟踪所有活动的套接字,然后当服务器需要被停止时,我想调用.end()让客户端知道我想closures套接字。 但是,当我这样做时,我得到了一个分段错误。 我已经使用了分段error handling程序来获得更好的堆栈跟踪,但我无法弄清楚会出现什么问题。 这里是跟踪连接的代码: connectionNum = 1 activeHttpConnections = {} trackConnection = (map, socket) -> # save active socket id = connectionNum map[id.toString()] = socket # remove socket once it closes socket.on 'close', -> map[id.toString()] = null delete map[id.toString()] # reset connection number eventually if connectionNum > 1000000 connectionNum = 1 else connectionNum++ […]

无法在Ubuntu 10.04上构buildNode.js

当我尝试在我的Ubuntu 10.04服务器上构buildNode.js时,它失败,出现以下错误: /etc/node/deps/v8/src/hydrogen.cc: In member function 'v8::internal::HInstruction* v8::internal::HGraphBuilder::BuildBinaryOperation(v8::internal::BinaryOperation*, v8::internal::HValue*, v8::internal::HValue*)': /etc/node/deps/v8/src/hydrogen.cc:4912: internal compiler error: Segmentation fault build设时,我跑了下面的命令: git clone –depth 1 git://github.com/joyent/node.git cd node mkdir ~/local ./configure –prefix=$HOME/local/node make 我也尝试编译它没有设置 – 前缀,它的工作。 但是,它没有工作来安装它。 运行make install时出现这个错误: Unable to install the file 'deps/uv/c-ares/ares_build.h' (not found in dir:///etc/node) 我已经尝试0.4.8和0.4.0这个,但我得到了他们两个分段错误。 这里是一些更多的信息: 操作系统:Ubuntu 10.04 Arch:x64 节点版本:0.4.8或0.4.0 GCC版本:4.4.3(Ubuntu 4.4.3-4ubuntu5) 有任何想法吗?

node.js和Segmentation错误

是否有可能在node.js进入分段错误时检查javascript堆栈跟踪? 目前的情况如下:我正在运行一个脚本,它有几个嵌套的async.eachSeries ,这导致了一个奇怪的原因RangeError: Maximum call stack size exceeded 。 因此,我已经增加了堆栈大小通过node –stack-size=1000000堆栈大小node –stack-size=1000000 ,我留下了分段错误。 以下是脚本的源代码: http : //nopaste.info/ca0c118591.html 更新 我也试过segfault-handler ,但由于一些不可思议的原因,它不捕捉我的段错误。

node.js分段错误:11

有一个问题让node.js运行。 我在OSX Lion上,遵循节点的安装说明。 我在v0.5.9-pre,根据节点 – 版本,但是当我尝试运行 节点app.js 我得到“分段错误:11”。 app.js文件只是来自主站点的hello world示例: var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/'); 没什么特别的。 试图寻找networking,但似乎没有回答这个问题。 有任何想法吗?

Node.js源代码构build在ARM上给出分段错误

tl; dr:我尝试在运行Ubuntu 12.10(quantal)的基于ARMv7的Cubox上安装node.js。 从源编译node.js(参见下面的“第二次尝试”)时, node会产生分段错误。 我能在这里做什么? 第一次尝试 首先,我试着通过包pipe理器来安装node.js,按照Ubuntu的说明在这里给出: 通过包pipe理器安装Node.js:Ubuntu,Mint 使用sudo add-apt-repository ppa:chris-lea/node.js添加在那里提到sudo add-apt-repository ppa:chris-lea/node.js似乎工作正常: You are about to add the following PPA to your system: Evented I/O for V8 javascript. Node's goal is to provide an easy way to build scalable network programs More info: https://launchpad.net/~chris-lea/+archive/node.js Press [ENTER] to continue or ctrl-c to cancel adding […]