| Summary: | std::out_of_range in formatters/astyle/lib/ASFormatter.cpp:3017 when editing certain c++ code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | glad08 | ||||
| Component: | kdevelop | Assignee: | Than Ngo <than> | ||||
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 23 | CC: | glad08, jgrulich, kde-sig, ovasik, rdieter, smparrish, than | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-12-20 21:21:32 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Created attachment 1191835 [details]
proposed patch
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
Description of problem: std::out_of_range in formatters/astyle/lib/ASFormatter.cpp:3017 when editing certain c++ code Version-Release number of selected component (if applicable): kdevelop 4.7.3 How reproducible: every time Additional info: Breakpoint 1, __cxxabiv1::__cxa_throw (obj=obj@entry=0x5555609953a0, tinfo=0x7ffff2d26ad8 <typeinfo for std::out_of_range>, dest=0x7ffff2a54d00 <std::out_of_range::~out_of_range()>) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:62 62 { (gdb) bt #0 0x00007ffff2a3fb30 in __cxxabiv1::__cxa_throw(void*, std::type_info*, void (*)(void*)) (obj=obj@entry=0x5555609953a0, tinfo=0x7ffff2d26ad8 <typeinfo for std::out_of_range>, dest=0x7ffff2a54d00 <std::out_of_range::~out_of_range()>) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:62 #1 0x00007ffff2a68797 in std::__throw_out_of_range_fmt(char const*, ...) (__fmt=__fmt@entry=0x7fff35e406f0 "%s: __pos (which is %zu) > this->size() (which is %zu)") at ../../../../../libstdc++-v3/src/c++11/functexcept.cc:104 #2 0x00007fff35e38aab in astyle::ASFormatter::formatPointerOrReference() (__s=<optimized out>, __pos=<optimized out>, this=<optimized out>) at /usr/include/c++/5.3.1/bits/basic_string.h:261 #3 0x00007fff35e38aab in astyle::ASFormatter::formatPointerOrReference() (__n2=<optimized out>, __s=<optimized out>, __n1=<optimized out>, __pos=<optimized out>, this=<optimized out>) at /usr/include/c++/5.3.1/bits/basic_string.h:1583 #4 0x00007fff35e38aab in astyle::ASFormatter::formatPointerOrReference() (__str=..., __pos1=<optimized out>, this=<optimized out>) at /usr/include/c++/5.3.1/bits/basic_string.h:1330 #5 0x00007fff35e38aab in astyle::ASFormatter::formatPointerOrReference() (this=this@entry=0x5555580fb060) at /usr/src/debug/kdevelop-4.7.3/formatters/astyle/lib/ASFormatter.cpp:3017 #6 0x00007fff35e3bbaa in astyle::ASFormatter::nextLine[abi:cxx11]() (this=0x5555580fb060) at /usr/src/debug/kdevelop-4.7.3/formatters/astyle/lib/ASFormatter.cpp:1226 #7 0x00007fff35e258ea in AStyleFormatter::formatSource(QString const&, QString const&, QString const&) (this=0x5555580fb060, text=..., leftContext=..., rightContext=...) at /usr/src/debug/kdevelop-4.7.3/formatters/astyle/astyle_formatter.cpp:54 #8 0x00007fff35e12bbe in AStylePlugin::formatSourceWithStyle(KDevelop::SourceFormatterStyle, QString const&, KUrl const&, KSharedPtr<KMimeType> const&, QString const&, QString const&) (this=0x5555580dad50, s=..., text=..., mime=..., leftContext=..., rightContext=...) at /usr/src/debug/kdevelop-4.7.3/formatters/astyle/astyle_plugin.cpp:87 #9 0x00007fff352c65a3 in CppLanguageSupport::specialLanguageObjectNavigationWidget(KUrl const&, KDevelop::SimpleCursor const&) (this=<optimized out>, url=..., position=...) at /usr/src/debug/kdevelop-4.7.3/languages/cpp/cpplanguagesupport.cpp:864 #10 0x00007fff359a9200 in ContextBrowserPlugin::updateForView(KTextEditor::View*) (this=this@entry=0x555558128ee0, view=<optimized out>) at /usr/src/debug/kdevplatform-1.7.3/plugins/contextbrowser/contextbrowser.cpp:688 #11 0x00007fff359a982c in ContextBrowserPlugin::updateViews() (this=0x555558128ee0) at /usr/src/debug/kdevplatform-1.7.3/plugins/contextbrowser/contextbrowser.cpp:728 #12 0x00007fff359a364d in ContextBrowserPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x555558128ee0, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdevplatform-1.7.3/x86_64-redhat-linux-gnu/plugins/contextbrowser/moc_contextbrowser.cpp:121 #13 0x00007ffff3101950 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=0x555558103600, m=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3567 #14 0x00007ffff31075c3 in QObject::event(QEvent*) (this=0x555558103600, e=<optimized out>) at kernel/qobject.cpp:1253 #15 0x00007ffff3acd93c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55555586c8c0, receiver=receiver@entry=0x555558103600, e=e@entry=0x7fffffffd9e0) at kernel/qapplication.cpp:4565 #16 0x00007ffff3ad4796 in QApplication::notify(QObject*, QEvent*) (this=this@entry=0x7fffffffde70, receiver=receiver@entry=0x555558103600, e=e@entry=0x7fffffffd9e0) at kernel/qapplication.cpp:4351 #17 0x00007ffff4fd863a in KApplication::notify(QObject*, QEvent*) (this=0x7fffffffde70, receiver=0x555558103600, event=0x7fffffffd9e0) at /usr/src/debug/kdelibs-4.14.20/kdeui/kernel/kapplication.cpp:311 #18 0x00007ffff30ed7fd in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7fffffffde70, receiver=0x555558103600, event=event@entry=0x7fffffffd9e0) at kernel/qcoreapplication.cpp:955 #19 0x00007ffff3120250 in QTimerInfoList::activateTimers() (event=0x7fffffffd9e0, receiver=<optimized out>) at kernel/qcoreapplication.h:231 ---Type <return> to continue, or q <return> to quit--- #20 0x00007ffff3120250 in QTimerInfoList::activateTimers() (this=0x55555586adb0) at kernel/qeventdispatcher_unix.cpp:621 #21 0x00007ffff311d3c1 in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193 #22 0x00007fffeb25de5a in g_main_context_dispatch (context=0x55555586ac90) at gmain.c:3154 #23 0x00007fffeb25de5a in g_main_context_dispatch (context=context@entry=0x55555586ac90) at gmain.c:3769 #24 0x00007fffeb25e1f0 in g_main_context_iterate (context=context@entry=0x55555586ac90, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3840 #25 0x00007fffeb25e29c in g_main_context_iteration (context=0x55555586ac90, may_block=may_block@entry=1) at gmain.c:3901 #26 0x00007ffff311dd7e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55555579cdc0, flags=...) at kernel/qeventdispatcher_glib.cpp:450 #27 0x00007ffff3b76416 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207 #28 0x00007ffff30ec071 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffdc60, flags=...) at kernel/qeventloop.cpp:149 #29 0x00007ffff30ec3e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffdc60, flags=...) at kernel/qeventloop.cpp:204 #30 0x00007ffff30f1f79 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1227 #31 0x0000555555566caf in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdevelop-4.7.3/app/main.cpp:582