Skip to content

Instantly share code, notes, and snippets.

@jzaefferer
Created August 18, 2011 09:25
Show Gist options
  • Save jzaefferer/e0ad2c8dd39c775d97a3 to your computer and use it in GitHub Desktop.
Save jzaefferer/e0ad2c8dd39c775d97a3 to your computer and use it in GitHub Desktop.
~/dev/phantomjs [git:master?] $ qmake CONFIG+=DEBUG -spec macx-g++ && make
cd src/ && make -f Makefile.phantomjs
/usr/bin/qmake -spec /usr/local/Qt4.7/mkspecs/macx-g++ -o Makefile.phantomjs phantomjs.pro
g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_NO_DEBUG_OUTPUT -DHAVE_CONFIG_H -DHAVE_STDINT_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -[...]
~/dev/phantomjs/bin [git:master?] $ gdb phantomjs
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...
warning: Unable to read symbols for QtWebKit.framework/Versions/4/QtWebKit (file not found).
warning: Unable to read symbols from "QtWebKit" (not yet mapped into memory).
warning: Unable to read symbols for QtGui.framework/Versions/4/QtGui (file not found).
warning: Unable to read symbols from "QtGui" (not yet mapped into memory).
warning: Unable to read symbols for QtCore.framework/Versions/4/QtCore (file not found).
warning: Unable to read symbols from "QtCore" (not yet mapped into memory).
warning: Unable to read symbols for QtNetwork.framework/Versions/4/QtNetwork (file not found).
warning: Unable to read symbols from "QtNetwork" (not yet mapped into memory).
Reading symbols for shared libraries ... done
(gdb) set args test.js
(gdb) run
Starting program: /Users/jza/dev/phantomjs/bin/phantomjs /Users/jza/dev/phantomjs/bin/test.js
Reading symbols for shared libraries .....++................................................................................................ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Unable to access network: fail
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000088
0x00000001005601b7 in WebCore::ScriptExecutionContext::stopActiveDOMObjects ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment