Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created February 26, 2013 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/5036002 to your computer and use it in GitHub Desktop.
Save isaacs/5036002 to your computer and use it in GitHub Desktop.
(gdb) break malloc_error_break
Note: breakpoint 1 also set at pc 0x7fff8dfa46c0.
Breakpoint 2 at 0x7fff8dfa46c0
(gdb) set follow-fork-mode child
(gdb) set args test/simple/test-debugger-repl.js
(gdb) run
Starting program: /Users/isaacs/dev/js/node-master/node test/simple/test-debugger-repl.js
Reading symbols for shared libraries . done
./node debug --port=13683 /Users/isaacs/dev/js/node-master/test/fixtures/breakpoints.js
node(34427) malloc: *** mmap(size=18446744072116768768) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
line> debug>< debugger listening on port 13683
line> debug>connecting...quit
!= /break in .*:1/ug>connecting...quit
Program exited with code 01.
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment