You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2023. It is now read-only.
version 1.6.1 (built it myself with ./build.sh), on arch linux 64bit.
i can consistently reproduce a segfault with this file:
testcase.js:
var system = require('system');
var page = new WebPage();
var url = system.args[1];
var input_name = system.args[2];
var file_path = system.args[3];
page.open(url, function (status) {
if (status !== "success") {
console.log('OPEN_ERROR', 'unable to open ', url);
} else {
page.uploadFile('input[name='+input_name+']', file_path);
}
});
gdb session:
simple-black-box ❯ gdb phantomjs
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/phantomjs...(no debugging symbols found)...done.
(gdb) run testcase.js http://localhost:8080 file_selector /tmp/tmp.pEZuQAMJss
Starting program: /usr/bin/phantomjs testcase.js http://localhost:8080 file_selector /tmp/tmp.pEZuQAMJss
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
no
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.4-gdb.py", line 9, in <module>
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
import gdb.backtrace
ImportError: No module named backtrace
[New Thread 0x7ffff0f0b700 (LWP 13759)]
[New Thread 0x7ffff060a700 (LWP 13760)]
[New Thread 0x7fffef386700 (LWP 13761)]
[New Thread 0x7fffa7fff700 (LWP 13763)]
Program received signal SIGSEGV, Segmentation fault.
QIODevice::read (this=this@entry=0x0, data=0x99fb78 "", maxSize=maxSize@entry=16384) at io/qiodevice.cpp:769
769 Q_D(QIODevice);
(gdb) no
(gdb) bt
0 ?? () at io/qiodevice.cpp:769
1 0x00007ffff4e118fe in ?? ()
2 0x00007ffff6e9e0ac in ?? ()
3 0x000000000099fb60 in ?? ()
4 0x0000000000000000 in ?? ()
(gdb)
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #694.
🌟 2 people had starred this issue at the time of migration.