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

Segfault when selecting port #10

Open
Andy1978 opened this issue Jan 22, 2016 · 0 comments
Open

Segfault when selecting port #10

Andy1978 opened this issue Jan 22, 2016 · 0 comments

Comments

@Andy1978
Copy link

Star qmodus, select "Modbus RTU", enable checkbox "Active". The dropdown choice "Serial Port" is now filled with "/dev/ttyS0.../dev/ttyS3", now deactivate "Active" and click it again. The dropdown choice now contains the entries doubled. If you now click on a doubled port you'll see a segfault:

Program received signal SIGSEGV, Segmentation fault.
QString (other=..., this=0x7fffffffd180) at /usr/include/qt4/QtCore/qstring.h:726
726 { Q_ASSERT(&other != this); d->ref.ref(); }
(gdb) bt
#0 QString (other=..., this=0x7fffffffd180) at /usr/include/qt4/QtCore/qstring.h:726
#1 SerialSettingsWidget::changeSerialPort (this=0x6c2f30)

at /home/andy/src/qmodbus/src/serialsettingswidget.cpp:97

#2 0x000000000042468b in SerialSettingsWidget::qt_static_metacall (_o=, _c=,

_id=<optimized out>, _a=<optimized out>) at /home/andy/src/qmodbus/build/src/moc_serialsettingswidget.cxx:55

#3 0x00007ffff6d9871c in QMetaObject::activate(QObject_, QMetaObject const_, int, void**) ()

from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4 0x00007ffff769e4e1 in QComboBox::currentIndexChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant