By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 3173 - TDevelop crashes when right clicking bash files
Summary: TDevelop crashes when right clicking bash files
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdesdk (show other bugs)
Version: R14.1.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Michele Calgaro
URL:
Depends on:
Blocks: R14.0.10
  Show dependency treegraph
 
Reported: 2020-11-20 09:37 CST by Tony Smith
Modified: 2021-01-01 01:25 CST (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Smith 2020-11-20 09:37:42 CST
TDevelop right click works fine with .c and .h files etc, but when I right click in an open file without an extension or something like .sh or .bash then the whole application crashes.

Backtrace
#0  ParsedFile::operator TranslationUnitAST* (this=0x0) at ./lib/cppparser/driver.cpp:883
#1  0x00007fffe5086a4b in CppSupportPart::MakeMemberHelper (this=this@entry=0x5555557bebe0, text=...,
    atLine=@0x7fffffffccc8: -2, atColumn=@0x7fffffffcccc: 0) at ./languages/cpp/cppsupportpart.cpp:1737
#2  0x00007fffe508b196 in CppSupportPart::contextMenu (this=this@entry=0x5555557bebe0, popup=0x555557551a40,
    context=0x7fffffffcf60) at ./languages/cpp/cppsupportpart.cpp:687
#3  0x00007fffe5099e60 in CppSupportPart::tqt_invoke (this=0x5555557bebe0, _id=14, _o=0x7fffffffce80)
    at ./obj-x86_64-linux-gnu/languages/cpp/cppsupportpart.moc:382
#4  0x00007ffff5ebf7a1 in TQObject::activate_signal (this=this@entry=0x555555a921b0, clist=clist@entry=0x555555bc01e0,
    o=o@entry=0x7fffffffce80) at kernel/qobject.cpp:2886
#5  0x00007ffff78ec8ce in KDevCore::contextMenu (this=0x555555a921b0, t0=<optimised out>, t1=0x7fffffffcf60)
    at ./obj-x86_64-linux-gnu/lib/interfaces/kdevcore.moc:169
#6  0x00007ffff7b83d6e in EditorProxy::popupAboutToShow (this=this@entry=0x555557336e40) at ./src/editorproxy.cpp:197
#7  0x00007ffff7b83f80 in EditorProxy::tqt_invoke (this=0x555557336e40, _id=3, _o=0x7fffffffd0b0)
    at ./obj-x86_64-linux-gnu/src/editorproxy.moc:97
#8  0x00007ffff5ebfb3c in TQObject::activate_signal (this=0x555557551a40, clist=<optimised out>,
    o=o@entry=0x7fffffffd0b0) at kernel/qobject.cpp:2813
#9  0x00007ffff5ebfc4e in TQObject::activate_signal (this=this@entry=0x555557551a40, signal=<optimised out>)
    at kernel/qobject.cpp:2747
#10 0x00007ffff6177d78 in TQPopupMenu::aboutToShow (this=this@entry=0x555557551a40)
    at .moc/release-shared-mt/moc_ntqpopupmenu.cpp:184
#11 0x00007ffff5f97240 in TQPopupMenu::popup (this=this@entry=0x555557551a40, pos=..., indexAtPoint=-1)
    at widgets/qpopupmenu.cpp:545
#12 0x00007ffff5f97748 in TQPopupMenu::popup (this=this@entry=0x555557551a40, pos=...,
    indexAtPoint=indexAtPoint@entry=-1) at widgets/qpopupmenu.cpp:689
#13 0x00007fffe0a66c80 in KateViewInternal::contextMenuEvent (this=0x5555573aacb0, e=0x7fffffffd4f0)
    at ./kate/part/kateviewinternal.cpp:2687
#14 0x00007ffff5eefc92 in TQWidget::event (this=0x5555573aacb0, e=0x7fffffffd4f0) at kernel/qwidget.cpp:4870
#15 0x00007ffff5e6f687 in TQApplication::internalNotify (this=this@entry=0x7fffffffdc40,
    receiver=receiver@entry=0x5555573aacb0, e=e@entry=0x7fffffffd4f0) at kernel/qapplication.cpp:2883
#16 0x00007ffff5e6fe71 in TQApplication::notify (this=this@entry=0x7fffffffdc40,
    receiver=receiver@entry=0x5555573aacb0, e=e@entry=0x7fffffffd4f0) at kernel/qapplication.cpp:2681
#17 0x00007ffff68a04e9 in TDEApplication::notify (this=0x7fffffffdc40, receiver=0x5555573aacb0, event=0x7fffffffd4f0)
    at ./tdecore/tdeapplication.cpp:660
#18 0x00007ffff5e1dd39 in TQETWidget::translateMouseEvent (this=this@entry=0x5555573aacb0,
---Type <return> to continue, or q <return> to quit---
    50) at kernel/qapplication_x11.cpp:4411
#19 0x00007ffff5e1d4b5 in TQApplication::x11ProcessEvent (this=0x7fffffffdc40, event=event@entry=0x7fffffffd850) at kernel/qapplication_x11.cpp:3584
#20 0x00007ffff5e53057 in TQEventLoop::processX11Events (this=this@entry=0x5555557f3c60) at kernel/qeventloop_x11_glib.cpp:353
#21 0x00007ffff5e53de0 in TQEventLoop::gsourceDispatch (this=this@entry=0x5555557f3c60, gs=gs@entry=0x5555557f47b0)
    at kernel/qeventloop_x11_glib.cpp:614
#22 0x00007ffff5e53e33 in qt_gsource_dispatch (source=0x5555557f47b0, callback=<optimised out>, user_data=<optimised out>)
    at kernel/qeventloop_x11_glib.cpp:123
#23 0x00007fffefe82417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fffefe82650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fffefe826dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff5e52eeb in TQEventLoop::processEvents (this=0x5555557f3c60, flags=<optimised out>) at kernel/qeventloop_x11_glib.cpp:279
#27 0x00007ffff5e824f1 in TQEventLoop::enterLoop (this=0x5555557f3c60) at kernel/qeventloop.cpp:227
#28 0x00007ffff5e82489 in TQEventLoop::exec (this=0x5555557f3c60) at kernel/qeventloop.cpp:174
#29 0x000055555555bca1 in main (argc=argc@entry=1, argv=argv@entry=0x7fffffffdf28) at ./src/main.cpp:143
#30 0x00007ffff5496b97 in __libc_start_main (main=0x55555555b490 <main(int, char**)>, argc=1, argv=0x7fffffffdf28, init=<optimised out>,
    fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffffffdf18) at ../csu/libc-start.c:310
#31 0x000055555555bfea in _start ()
Comment 1 Slávek Banko 2020-11-24 18:27:08 CST
Great, the backtrace looks good - it should help detect and resolve the crash.

Thank you!
Comment 2 Michele Calgaro 2020-11-27 20:43:44 CST
Hi Tony,
do you have a project opened in TDevelop or just the program?
I get a crash (slightly different point but in the same CppSupportPart::MakeMemberHelper() method if I have a project opened. If no project is opened, I have no crashes.

Also what version of TDE are you using (R14.1 or R14.0 series)?
Comment 3 Michele Calgaro 2020-11-28 01:36:25 CST
Commit 8db22231 ins R14.1 and commit f6002795 in R14.0 fixes the crash I had on my computer. This may or may not be enough to fix the reported bug since the backtrace refers to a slightly different point.

Tony, could you try again with the latest fix and let us know whether that fixes the problem for you too? If not, can you let us know how you reproduce the fix? (TDevelop doesn't crash on right clicking bash files anymore now, on my computer).
Comment 4 Michele Calgaro 2021-01-01 01:25:54 CST
Closing this bug report.
I believe the fix made is enough and there has been no further response after asking for feedback using the latest commit.
Feel free to reopen it if the problem still happens with the mentioned commit.