Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV on Addition of JOIN to existing query #3525

Open
SilverNexus opened this issue May 12, 2019 · 0 comments

Comments

@SilverNexus
Copy link

commented May 12, 2019

Details

If you load an existing query into the SQL Editor, say to make a view similar to one you already have, and then try to add a join to an existing subquery by typing it in where it goes in the query, SQLite Studio throws a SIGSEGV in the QString destructor.

2019-05-12-121148_1366x768_scrot

Stack trace from gdb:
#0 0x0000000000407d43 in QString::~QString() ()
#1 0x00007ffff79b4cb6 in yy_reduce(yyParser*, int) ()
from /home/dan/Downloads/SQLiteStudio/lib/libcoreSQLiteStudio.so.1
#2 0x00007ffff79b5bee in sqlite3_parse(void*, int, Token*, ParserContext*) ()
from /home/dan/Downloads/SQLiteStudio/lib/libcoreSQLiteStudio.so.1
#3 0x00007ffff79bb141 in Parser::parseInternal(QString const&, bool) ()
from /home/dan/Downloads/SQLiteStudio/lib/libcoreSQLiteStudio.so.1
#4 0x00007ffff7369247 in SqlEditor::parseContents() ()
from /home/dan/Downloads/SQLiteStudio/lib/libguiSQLiteStudio.so.1
#5 0x00007ffff6184bc9 in QMetaObject::activate(QObject*, int, int, void**) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#6 0x00007ffff6184ef6 in QMetaObject::activate(QObject*, int, int, void**) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#7 0x00007ffff61913e7 in QTimer::timeout(QTimer::QPrivateSignal) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#8 0x00007ffff61916b8 in QTimer::timerEvent(QTimerEvent*) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#9 0x00007ffff6185adb in QObject::event(QEvent*) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#10 0x00007ffff6b1854c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /home/dan/Downloads/SQLiteStudio/lib/libQt5Widgets.so.5
#11 0x00007ffff6b1f897 in QApplication::notify(QObject*, QEvent*) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Widgets.so.5
---Type to continue, or q to quit---
#12 0x00007ffff61599f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#13 0x00007ffff61ad08e in QTimerInfoList::activateTimers() ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#14 0x00007ffff61ad8a9 in ?? ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#15 0x00007ffff1261417 in g_main_context_dispatch ()
from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff1261650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff12616dc in g_main_context_iteration ()
from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff61adbaf in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#19 0x00007fffef8599a1 in ?? ()
from /home/dan/Downloads/SQLiteStudio/platforms/../lib/libQt5XcbQpa.so.5
#20 0x00007ffff615826a in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#21 0x00007ffff6160da4 in QCoreApplication::exec() ()
from /home/dan/Downloads/SQLiteStudio/lib/libQt5Core.so.5
#22 0x0000000000405e65 in main ()

Steps to reproduce

Take an existing query with a subquery and load it into the SQL Editor. Attempt to add a join to the subquery by typing it after any existing joins in the subquery. SQLite Studio crashes.

Note that I only have thus far tested changes in subqueries, rather than the outermost query. I will update when I gather additional information on this.

Operating system

Linux Mint 19

SQLiteStudio version

3.2.1

@pawelsalawa pawelsalawa added the bug label May 12, 2019

@pawelsalawa pawelsalawa added this to the 3.2.2 milestone May 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.