Does anyone recognize this error?

249 views
Skip to first unread message

C. Mundi

unread,
Mar 20, 2012, 1:44:12 AM3/20/12
to nod...@googlegroups.com

I apologize for asking without posting code, but I have not yet finished isolating the code which throws this. 

Here is the error.  No line numbers, no stack trace:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Does anyone recognize this?  Node v0.6.13 on Linux kernel 3.0.0-16 x64.  

What I do know is that node is being asked to allocate about 64 KB when this happens.  The system is absolutely not under memory pressure and the process VM and RSS are only a few MB bigger than the "quiet" values for node.

Any advice on how I would start hunting this thing?  I have only glanced at the discussions of node memory management, so go ahead and assume I know nothing -- it will be close to the truth.  Maybe there's a way to instrument the code with something more clever than console.error?

Thanks!



Ben Noordhuis

unread,
Mar 20, 2012, 7:17:25 AM3/20/12
to nod...@googlegroups.com

`backtrace` in gdb will tell you where the exception originates from,
`frame #` and `list`, `print`, etc. will let you inspect the code and
variables at the call site.

Compile with -g, otherwise you won't get debug symbols or line
numbers. That's `./configure --debug && make` with v0.6, `make
BUILDTYPE=Debug` with master.

C. Mundi

unread,
Mar 20, 2012, 11:08:23 AM3/20/12
to nod...@googlegroups.com

Ok.  I was looking to get as much info (if any more exists) as possible with my release build but I will make a debug build.  My luck (nothing to so with node) is that I find issues which show up only in release.  I will report back what I find...may be a couple days.

Thanks!

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Reply all
Reply to author
Forward
0 new messages