da-liii/texmacs-1

Segmentation Fault

Closed this issue · 3 comments

Throwing segmentation fault
-------------------------------------------------
Error message:
  segmentation fault

System information:
  TeXmacs version  : 1.99.5
  Built by         : rendong
  Building date    : 2017-09-26T22:33:35
  Operating system : linux-gnu
  Vendor           : pc
  Processor        : x86_64
  Crash date       : 2017年 9月27日 星期三 01时29分28秒 CST

Editor status:
  Root path          : [ 1 ]
  Current path       : [ 1, 0, 2, 0, 1, 1 ]
  Shifted path       : [ 1, 0, 2, 0, 1, 1 ]
  Physical selection : [ 1, 0, 2, 0, 1, 1 ] -- [ 1, 0, 2, 0, 1, 1 ]

Backtrace of C++ stack:
  1   texmacs.bin                         0x0000000109f18e1f : get_crash_report(char const*) + 415
  2   texmacs.bin                         0x0000000109d960ba : tm_throw(char const*) + 90
  3   texmacs.bin                         0x0000000109f1caaa : clean_exit_on_segfault(int) + 26
  4   libsystem_platform.dylib            0x00007fff9032f52a : _sigtramp() + 26
  5   AppKit                              0x00007fff8d7c4d9f : __NSStyleNameIndexTable() + 387471
  6   AppKit                              0x00007fff8ce1dbec -[NSMenu : _enableItem:]() + 706
  7   AppKit                              0x00007fff8ce1d8cb -[NSMenu : _enableItems]() + 222
  8   libqcocoa.dylib                     0x000000010e54036e : qt_plugin_instance() + 150862
  9   libqcocoa.dylib                     0x000000010e5444f2 : qt_plugin_instance() + 167634
  10  libqcocoa.dylib                     0x000000010e54415a : qt_plugin_instance() + 166714
  11  QtWidgets                           0x000000010b1b01cb : QMenuBar::actionEvent(QActionEvent*) + 1003
  12  QtWidgets                           0x000000010b0732e3 : QWidget::event(QEvent*) + 275
  13  QtWidgets                           0x000000010b1b07c2 : QMenuBar::event(QEvent*) + 482
  14  QtWidgets                           0x000000010b038ded : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
  15  QtWidgets                           0x000000010b03a167 : QApplication::notify(QObject*, QEvent*) + 391
  16  texmacs.bin                         0x000000010a4af331 : QTMApplication::notify(QObject*, QEvent*) + 33
  17  QtCore                              0x000000010bcd1ea4 : QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
  18  QtWidgets                           0x000000010b06758f : QWidget::insertAction(QAction*, QAction*) + 367
  19  texmacs.bin                         0x000000010a450faa : qt_tm_widget_rep::install_main_menu() + 554
  20  texmacs.bin                         0x000000010a4515fc : qt_tm_widget_rep::write(slot, blackbox, widget) + 1164
  21  texmacs.bin                         0x0000000109f07b45 : write(widget, slot, widget) + 101
  22  texmacs.bin                         0x0000000109f36179 : set_main_menu(widget, widget) + 89
  23  texmacs.bin                         0x0000000109f36081 : tm_window_rep::menu_main(string) + 193
  24  texmacs.bin                         0x0000000109f2f3ac : tm_frame_rep::menu_main(string) + 76
  25  texmacs.bin                         0x0000000109f2f405 : virtual thunk to tm_frame_rep::menu_main(string) + 37
  26  texmacs.bin                         0x0000000109b6a240 : edit_interface_rep::update_menus() + 176
  27  texmacs.bin                         0x0000000109b6b192 : edit_interface_rep::apply_changes() + 178
  28  texmacs.bin                         0x0000000109b71995 : virtual thunk to edit_interface_rep::apply_changes() + 37
  29  texmacs.bin                         0x0000000109f1b689 : tm_server_rep::interpose_handler() + 281
  30  texmacs.bin                         0x0000000109f1b855 : virtual thunk to tm_server_rep::interpose_handler() + 37
  31  texmacs.bin                         0x0000000109f19d66 : texmacs_interpose_handler() + 54
  32  texmacs.bin                         0x000000010a42fcf3 : qt_gui_rep::update() + 611
  33  texmacs.bin                         0x000000010a482535 : QTMGuiHelper::doUpdate() + 21
  34  texmacs.bin                         0x000000010a4afcf7 : QTMGuiHelper::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 199
  35  QtCore                              0x000000010bd03d49 : QMetaObject::activate(QObject*, int, int, void**) + 3113
  36  QtCore                              0x000000010bd0b8c4 : QTimer::timerEvent(QTimerEvent*) + 100
  37  QtCore                              0x000000010bcfba7d : QObject::event(QEvent*) + 77
  38  QtWidgets                           0x000000010b038ded : QApplicationPrivate::notify_helper(QObject*, QEvent*) + 301
  39  QtWidgets                           0x000000010b03a167 : QApplication::notify(QObject*, QEvent*) + 391
  40  texmacs.bin                         0x000000010a4af331 : QTMApplication::notify(QObject*, QEvent*) + 33
  41  QtCore                              0x000000010bcd1ea4 : QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
  42  QtCore                              0x000000010bd29f01 : QTimerInfoList::activateTimers() + 897
  43  libqcocoa.dylib                     0x000000010e539f42 : qt_plugin_instance() + 125218
  44  CoreFoundation                      0x00007fff99b837e1 : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__() + 17
  45  CoreFoundation                      0x00007fff99b62f0c : __CFRunLoopDoSources0() + 556
  46  CoreFoundation                      0x00007fff99b6242f : __CFRunLoopRun() + 927
  47  CoreFoundation                      0x00007fff99b61e28 : CFRunLoopRunSpecific() + 296
  48  HIToolbox                           0x00007fff9c280935 : RunCurrentEventLoopInMode() + 235
  49  HIToolbox                           0x00007fff9c28076f : ReceiveNextEventCommon() + 432
  50  HIToolbox                           0x00007fff9c2805af : _BlockUntilNextEventMatchingListInModeWithFilter() + 71
  51  AppKit                              0x00007fff8cc7fdf6 : _DPSNextEvent() + 1067
  52  AppKit                              0x00007fff8cc7f226 -[NSApplication : _nextEventMatchingEventMask:untilDate:inMode:dequeue:]() + 454
  53  AppKit                              0x00007fff8cc73d80 -[NSApplication : run]() + 682
  54  libqcocoa.dylib                     0x000000010e53ac23 : qt_plugin_instance() + 128515
  55  QtCore                              0x000000010bccda31 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
  56  QtCore                              0x000000010bcd2548 : QCoreApplication::exec() + 392
  57  texmacs.bin                         0x000000010a42fa7b : qt_gui_rep::event_loop() + 43
  58  texmacs.bin                         0x000000010a42ff30 : gui_start_loop() + 16
  59  texmacs.bin                         0x0000000109f2117d : TeXmacs_main(int, char**) + 18013
  60  texmacs.bin                         0x0000000109dc2143 : new_call_back(void*, int, char**) + 35
  61  libguile.17.dylib                   0x000000010ade91bd : invoke_main_func() + 36
  62  libguile.17.dylib                   0x000000010adc28eb : c_body() + 15
  63  libguile.17.dylib                   0x000000010ae1df3a : scm_c_catch() + 415
  64  libguile.17.dylib                   0x000000010adc2872 : scm_i_with_continuation_barrier() + 152
  65  libguile.17.dylib                   0x000000010adc28d2 : scm_c_with_continuation_barrier() + 52
  66  libguile.17.dylib                   0x000000010ae1c681 : scm_i_with_guile_and_parent() + 41
  67  libguile.17.dylib                   0x000000010ade9183 : scm_boot_guile() + 39
  68  texmacs.bin                         0x0000000109dc211a : start_scheme(int, char**, void (*)(int, char**)) + 74
  69  texmacs.bin                         0x0000000109f22d7f : main() + 1359
  70  libdyld.dylib                       0x00007fff9bd435ad : start() + 1

-------------------------------------------------
Error message:
  segmentation fault

System information:
  TeXmacs version  : 1.99.5
  Built by         : rendong
  Building date    : 2017-09-26T22:33:35
  Operating system : linux-gnu
  Vendor           : pc
  Processor        : x86_64
  Crash date       : 2017年 9月27日 星期三 01时37分34秒 CST

Editor status:
  Root path          : [ 1 ]
  Current path       : [ 1, 0, 4, 0, 0, 0 ]
  Shifted path       : [ 1, 0, 4, 0, 0, 0 ]
  Physical selection : [ 1, 0, 0, 0, 6, 0, 1 ] -- [ 1, 0, 0, 0, 6, 0, 1 ]

Backtrace of C++ stack:
  1   texmacs.bin                         0x000000010c819e1f : get_crash_report(char const*) + 415
  2   texmacs.bin                         0x000000010c6970ba : tm_throw(char const*) + 90
  3   texmacs.bin                         0x000000010c81daaa : clean_exit_on_segfault(int) + 26
  4   libsystem_platform.dylib            0x00007fff9032f52a : _sigtramp() + 26
  5   ???                                 0x00000001171639d0 : 0x0() + 4682299856
  6   texmacs.bin                         0x000000010cd87988 : QTMLazyMenu::transferActions(QList<QAction*>*) + 56
  7   texmacs.bin                         0x000000010cd87b6a : QTMLazyMenu::force() + 154
  8   texmacs.bin                         0x000000010cdb1bac : QTMLazyMenu::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 108
  9   QtCore                              0x000000010e600d49 : QMetaObject::activate(QObject*, int, int, void**) + 3113
  10  QtWidgets                           0x000000010da9c96a : QMenu::hovered(QAction*) + 1354
  11  QtCore                              0x000000010e600d49 : QMetaObject::activate(QObject*, int, int, void**) + 3113
  12  AppKit                              0x00007fff8d273919 -[NSMenu : _sendMenuOpeningNotification:]() + 107
  13  AppKit                              0x00007fff8d03af7f -[NSCarbonMenuImpl : _carbonOpenEvent:handlerCallRef:]() + 94
  14  AppKit                              0x00007fff8ce1ffd9 : NSSLMMenuEventHandler() + 708
  15  HIToolbox                           0x00007fff9c2587be : DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1231
  16  HIToolbox                           0x00007fff9c257c48 : SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 404
  17  HIToolbox                           0x00007fff9c257aab : SendEventToEventTargetWithOptions() + 43
  18  HIToolbox                           0x00007fff9c2c9770 : SendMenuOpening(MenuSelectData*, MenuData*, double, unsigned int, unsigned int, __CFDictionary*, unsigned char, unsigned char*) + 490
  19  HIToolbox                           0x00007fff9c2e3d24 : DrawTheMenu(MenuSelectData*, __CFArray**, unsigned char, unsigned char*) + 280
  20  HIToolbox                           0x00007fff9c2f0c35 : OpenSubmenu(MenuSelectData*, MenuData*, unsigned char, unsigned char*) + 233
  21  HIToolbox                           0x00007fff9c3fe380 : TrackMenuCommon(MenuSelectData&, unsigned char*, SelectionData*, MenuResult*, MenuResult*) + 1552
  22  HIToolbox                           0x00007fff9c2e34fa : MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 555
  23  HIToolbox                           0x00007fff9c2e3230 : _HandleMenuSelection2() + 460
  24  AppKit                              0x00007fff8ce0b0fa : _NSHandleCarbonMenuEvent() + 277
  25  AppKit                              0x00007fff8cc8013d : _DPSNextEvent() + 1906
  26  AppKit                              0x00007fff8cc7f226 -[NSApplication : _nextEventMatchingEventMask:untilDate:inMode:dequeue:]() + 454
  27  AppKit                              0x00007fff8cc73d80 -[NSApplication : run]() + 682
  28  libqcocoa.dylib                     0x0000000110f3ac23 : qt_plugin_instance() + 128515
  29  QtCore                              0x000000010e5caa31 : QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
  30  QtCore                              0x000000010e5cf548 : QCoreApplication::exec() + 392
  31  texmacs.bin                         0x000000010cd30a7b : qt_gui_rep::event_loop() + 43
  32  texmacs.bin                         0x000000010cd30f30 : gui_start_loop() + 16
  33  texmacs.bin                         0x000000010c82217d : TeXmacs_main(int, char**) + 18013
  34  texmacs.bin                         0x000000010c6c3143 : new_call_back(void*, int, char**) + 35
  35  libguile.17.dylib                   0x000000010d6ee1bd : invoke_main_func() + 36
  36  libguile.17.dylib                   0x000000010d6c78eb : c_body() + 15
  37  libguile.17.dylib                   0x000000010d722f3a : scm_c_catch() + 415
  38  libguile.17.dylib                   0x000000010d6c7872 : scm_i_with_continuation_barrier() + 152
  39  libguile.17.dylib                   0x000000010d6c78d2 : scm_c_with_continuation_barrier() + 52
  40  libguile.17.dylib                   0x000000010d721681 : scm_i_with_guile_and_parent() + 41
  41  libguile.17.dylib                   0x000000010d6ee183 : scm_boot_guile() + 39
  42  texmacs.bin                         0x000000010c6c311a : start_scheme(int, char**, void (*)(int, char**)) + 74
  43  texmacs.bin                         0x000000010c823d7f : main() + 1359
  44  libdyld.dylib                       0x00007fff9bd435ad : start() + 1

-------------------------------------------------

I will debug it using lldb. @KarlHegbloom