Skip to content

Instantly share code, notes, and snippets.

conversions = {}
Encoding.list.each do |from|
Encoding.list.each do |to|
if from != to
begin
Encoding::Converter.new(from, to)
rescue Encoding::ConverterNotFoundError
else
conversions[from.to_s] ||= []
0x000000348807cdc1 in _int_free () from /lib64/libc.so.6
(gdb) bt
#0 0x000000348807cdc1 in _int_free () from /lib64/libc.so.6
#1 0x00000034928c5e9c in QString::free(QString::Data*) () from /usr/lib64/libQtCore.so.4
#2 0x000000349292b9a9 in QUrl::~QUrl() () from /usr/lib64/libQtCore.so.4
#3 0x0000003492e932aa in ?? () from /usr/lib64/libQtNetwork.so.4
#4 0x0000003492e93d59 in ?? () from /usr/lib64/libQtNetwork.so.4
#5 0x0000003492ef62c5 in ?? () from /usr/lib64/libQtNetwork.so.4
#6 0x00000034929909e6 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#7 0x0000003493bc96f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
$ make
cd src/ && make -f Makefile.phantomjs
make[1]: Entering directory `/home/turnip/Code/phantomjs/src'
g++ -m64 -Wl,-O1 -Wl,-rpath,/home/turnip/Code/phantomjs/deploy/Qt-4.8/lib -o ../bin/phantomjs phantom.o webpage.o webserver.o main.o csconverter.o utils.o networkaccessmanager.o cookiejar.o filesystem.o terminal.o encoding.o config.o gif_err.o gifalloc.o egif_lib.o gif_hash.o quantize.o gifwriter.o mongoose.o moc_phantom.o moc_webpage.o moc_webserver.o moc_networkaccessmanager.o moc_filesystem.o moc_config.o qrc_phantomjs.o -L/home/turnip/Code/phantomjs/deploy/Qt-4.8/lib -lQtWebKit -lQtGui -L/home/turnip/Code/phantomjs/deploy/Qt-4.8/lib -L/usr/X11R6/lib64 -lQtNetwork -lQtCore -lpthread
/usr/bin/ld: mongoose.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [../bin/phant
turnip@mercutio:~/Code/rails:master$ bundle exec railties/bin/rails new testapp --dev
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
#0 0x00007ffff4797d91 in _int_free () from /lib64/libc.so.6
#1 0x00007ffff5096b3b in QUrlPrivate::authority(QFlags<QUrl::FormattingOption>) const () from /home/turnip/Code/phantomjs/deploy/Qt-4.8/lib/libQtCore.so.4
#2 0x00007ffff5096e2c in QUrl::toString(QFlags<QUrl::FormattingOption>) const () from /home/turnip/Code/phantomjs/deploy/Qt-4.8/lib/libQtCore.so.4
#3 0x000000000041c267 in NetworkAccessManager::createRequest(QNetworkAccessManager::Operation, QNetworkRequest const&, QIODevice*) ()
#4 0x00007ffff5461c84 in QNetworkAccessManager::get(QNetworkRequest const&) () from /home/turnip/Code/phantomjs/deploy/Qt-4.8/lib/libQtNetwork.so.4
#5 0x00007ffff6fe623b in WebCore::QNetworkReplyHandler::sendNetworkRequest(QNetworkAccessManager*, WebCore::ResourceRequest const&) () from /home/turnip/Code/phantomjs/deploy/Qt-4.8/lib/libQtWebKit.so.4
#6 0x00007ffff6fe7851 in WebCore::QNetworkReplyHandler::start() () from /home/turnip/Code/phantomjs/deploy/Qt-4.8/lib/libQtWebKit.so.4
#7 0x00007ffff6fe69a4 in WebCore::
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 46b8dea..df998b6 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -120,7 +120,7 @@ QNetworkReply *NetworkAccessManager::createRequest(Operation op, const QNetworkR
QVariantMap data;
data["id"] = m_idCounter;
- data["url"] = req.url().toString();
+ // data["url"] = req.url().toString();
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 46b8dea..37bc2fe 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -101,6 +101,8 @@ void NetworkAccessManager::setPassword(const QString &password)
// protected:
QNetworkReply *NetworkAccessManager::createRequest(Operation op, const QNetworkRequest & req, QIODevice * outgoingData)
{
+ QString url = req.url().toString();
+
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb
index 8d69880..10797c0 100644
--- a/actionpack/lib/action_view/template.rb
+++ b/actionpack/lib/action_view/template.rb
@@ -3,33 +3,6 @@ require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/try'
require 'active_support/core_ext/kernel/singleton_class'
-if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && RUBY_VERSION == '1.9.3' && RUBY_PATCHLEVEL == 0
- # This is a hack to work around a bug in Ruby 1.9.3p0:
#0 0x0000003f7f940cfa in __memcpy_ssse3_back () from /lib64/libc.so.6
#1 0x0000003f8a4c86fc in QString::realloc (this=0x7ffefffce200, alloc=13707443) at /usr/include/bits/string3.h:52
#2 0x0000003f8a52e0f6 in reserve (asize=<optimized out>, this=0x7ffefffce200) at ../../src/corelib/tools/qstring.h:881
#3 operator+=<QLatin1Char, QString> (b=<optimized out>, a=...) at ../../src/corelib/tools/qstringbuilder.h:447
#4 QUrlPrivate::authority (this=0x7fff9c012720, options=...) at io/qurl.cpp:3552
#5 0x0000003f8a52fd22 in QUrlPrivate::validate (this=0x7fff9c012720) at io/qurl.cpp:3796
#6 0x0000003f8a52fed6 in QUrl::port (this=0x7ffefffce330) at io/qurl.cpp:4827
#7 0x0000003f8aa93b74 in QHttpThreadDelegate::startRequest (this=0xbb7840) at access/qhttpthreaddelegate.cpp:271
#8 0x0000003f8aaf62c5 in QHttpThreadDelegate::qt_static_metacall (_o=0xbb7840, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qhttpthreaddelegate_p.cpp:113
#9 0x0000003f8a5909e6 in QObject::event (t