more info:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff943d3f06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff9fded4ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff905166df abort + 129
3 libsystem_malloc.dylib 0x00007fff8ec7c041 free + 425
4 texmacs.bin 0x000000010bc4b299
array_repscm_unused_struct*::~array_rep() + 41 (array.hpp:30)
5 texmacs.bin 0x000000010bbd65cb void
tm_deletearray_repscm_unused_struct* (array_repscm_unused_struct**) + 43
(fast_alloc.hpp:623)
6 texmacs.bin 0x000000010bbd6596 arrayscm_unused_struct*::~array() +
54 (array.hpp:49)
7 texmacs.bin 0x000000010bbd4f85 arrayscm_unused_struct*::~array() +
21 (array.hpp:49)
8 texmacs.bin 0x000000010bc49672 call(char const*, arrayobject) + 146
(object.cpp:397)
9 texmacs.bin 0x000000010b951b15 call_mouse_event(string, int, int,
int, long) + 405 (edit_mouse.cpp:534)
10 texmacs.bin 0x000000010b9514cd
edit_interface_rep::handle_mouse(string, int, int, int, long) + 1309
(edit_mouse.cpp:575)
11 texmacs.bin 0x000000010b952529 virtual thunk to
edit_interface_rep::handle_mouse(string, int, int, int, long) + 73
(edit_mouse.cpp:549)
12 texmacs.bin 0x000000010c297a06
qt_gui_rep::process_queued_events(int) + 1478 (qt_gui.cpp:567)
13 texmacs.bin 0x000000010c29718b qt_gui_rep::update() + 715
(qt_gui.cpp:775)
14 texmacs.bin 0x000000010c2f1535 QTMGuiHelper::doUpdate() + 21
(QTMGuiHelper.cpp:24)
15 texmacs.bin 0x000000010c32310c
QTMGuiHelper::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) +
204 (moc_QTMGuiHelper.cpp:101)
16 org.qt-project.QtCore 0x000000010de01e20 QMetaObject::activate(QObject*,
int, int, void**) + 2992
17 org.qt-project.QtCore 0x000000010ddf9a8d QObject::event(QEvent*) + 77
18 org.qt-project.QtWidgets 0x000000010cfef116
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 294
19 org.qt-project.QtWidgets 0x000000010cff0649
QApplication::notify(QObject*, QEvent*) + 441
20 texmacs.bin 0x000000010c322611 QTMApplication::notify(QObject*,
QEvent*) + 33 (QTMApplication.hpp:51)
21 org.qt-project.QtCore 0x000000010ddcd8b4
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
22 org.qt-project.QtCore 0x000000010de25e11
QTimerInfoList::activateTimers() + 1025
23 libqcocoa.dylib 0x0000000110734852 0x110713000 + 137298
24 com.apple.CoreFoundation 0x00007fff9bd127e1
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 com.apple.CoreFoundation 0x00007fff9bcf1f0c __CFRunLoopDoSources0 + 556
26 com.apple.CoreFoundation 0x00007fff9bcf142f __CFRunLoopRun + 927
27 com.apple.CoreFoundation 0x00007fff9bcf0e28 CFRunLoopRunSpecific + 296
28 com.apple.HIToolbox 0x00007fff9dc5b935 RunCurrentEventLoopInMode + 235
29 com.apple.HIToolbox 0x00007fff9dc5b677 ReceiveNextEventCommon + 184
30 com.apple.HIToolbox 0x00007fff9dc5b5af
_BlockUntilNextEventMatchingListInModeWithFilter + 71
31 com.apple.AppKit 0x00007fff8edeedf6 _DPSNextEvent + 1067
32 com.apple.AppKit 0x00007fff8edee226 -[NSApplication
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
33 com.apple.AppKit 0x00007fff8ede2d80 -[NSApplication run] + 682
34 libqcocoa.dylib 0x0000000110735525 0x110713000 + 140581
35 org.qt-project.QtCore 0x000000010ddc9b91
QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 417
36 org.qt-project.QtCore 0x000000010ddcdf27 QCoreApplication::exec() + 343
37 texmacs.bin 0x000000010c296eab qt_gui_rep::event_loop() + 43
(qt_gui.cpp:462)
38 texmacs.bin 0x000000010c297370 gui_start_loop() + 16
(qt_gui.cpp:484)
39 texmacs.bin 0x000000010bd5f87c TeXmacs_main(int, char**) + 19820
(texmacs.cpp:439)
40 texmacs.bin 0x000000010bbd4793 new_call_back(void*, int, char**) +
35 (guile_tm.cpp:36)
41 libguile.17.dylib 0x000000010cdac4ad invoke_main_func + 36
42 libguile.17.dylib 0x000000010cd85bf3 c_body + 15
43 libguile.17.dylib 0x000000010cde102e scm_c_catch + 415
44 libguile.17.dylib 0x000000010cd85b7a scm_i_with_continuation_barrier +
152
45 libguile.17.dylib 0x000000010cd85bda scm_c_with_continuation_barrier +
52
46 libguile.17.dylib 0x000000010cddf775 scm_i_with_guile_and_parent + 41
47 libguile.17.dylib 0x000000010cdac473 scm_boot_guile + 39
48 texmacs.bin 0x000000010bbd476a start_scheme(int, char**, void
(*)(int, char**)) + 74 (guile_tm.cpp:57)
49 texmacs.bin 0x000000010bd61439 main + 569 (texmacs.cpp:600)
50 libdyld.dylib 0x00007fff9e03f5ad start + 1
原始邮件
发件人:[email protected]
收件人:[email protected]
发送时间:2017年9月23日(周六) 22:27
主题:Re: [Texmacs-dev] malloc error on MacOS (build by myself)
Switched to g++-6 and it still crashes
[ 5%] Building CXX object
src/CMakeFiles/texmacs.bin.dir/Data/Convert/Scheme/to_scheme.cpp.o
cd /Users/rendong/github/texmacs/src/build/src /usr/local/bin/g++-6
-DQTTEXMACS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB
-iframework /usr/local/opt/qt5/lib -isystem
/usr/local/opt/qt5/lib/QtCore.framework/Headers -isystem
/usr/local/opt/qt5/./mkspecs/macx-clang -isystem
/usr/local/opt/qt5/lib/QtGui.framework/Headers -isystem
/System/Library/Frameworks/OpenGL.framework/Headers -isystem
/usr/local/opt/qt5/lib/QtWidgets.framework/Headers -isystem
/usr/local/opt/qt5/lib/QtPrintSupport.framework/Headers
-I/Users/rendong/github/texmacs/src/src/./Data/Convert
-I/Users/rendong/github/texmacs/src/src/./Data/Document
-I/Users/rendong/github/texmacs/src/src/./Data/Drd
-I/Users/rendong/github/texmacs/src/src/./Data/History
-I/Users/rendong/github/texmacs/src/src/./Data/Observers
-I/Users/rendong/github/texmacs/src/src/./Data/String
-I/Users/rendong/github/texmacs/src/src/./Data/Tree
-I/Users/rendong/github/texmacs/src/src/./Edit
-I/Users/rendong/github/texmacs/src/src/./Edit/Editor
-I/Users/rendong/github/texmacs/src/src/./Edit/Interface
-I/Users/rendong/github/texmacs/src/src/./Edit/Modify
-I/Users/rendong/github/texmacs/src/src/./Edit/Process
-I/Users/rendong/github/texmacs/src/src/./Edit/Replace
-I/Users/rendong/github/texmacs/src/src/./Graphics/Bitmap_fonts
-I/Users/rendong/github/texmacs/src/src/./Graphics/Colors
-I/Users/rendong/github/texmacs/src/src/./Graphics/Fonts
-I/Users/rendong/github/texmacs/src/src/./Graphics/Gui
-I/Users/rendong/github/texmacs/src/src/./Graphics/Handwriting
-I/Users/rendong/github/texmacs/src/src/./Graphics/Mathematics
-I/Users/rendong/github/texmacs/src/src/./Graphics/Pictures
-I/Users/rendong/github/texmacs/src/src/./Graphics/Renderer
-I/Users/rendong/github/texmacs/src/src/./Graphics/Spacial
-I/Users/rendong/github/texmacs/src/src/./Graphics/Types
-I/Users/rendong/github/texmacs/src/src/./Kernel/Abstractions
-I/Users/rendong/github/texmacs/src/src/./Kernel/Containers
-I/Users/rendong/github/texmacs/src/src/./Kernel/Types
-I/Users/rendong/github/texmacs/src/src/./Plugins
-I/Users/rendong/github/texmacs/src/src/./Scheme
-I/Users/rendong/github/texmacs/src/src/./Scheme/Guile
-I/Users/rendong/github/texmacs/src/src/./Scheme/Scheme
-I/Users/rendong/github/texmacs/src/src/./System
-I/Users/rendong/github/texmacs/src/src/./System/Boot
-I/Users/rendong/github/texmacs/src/src/./System/Classes
-I/Users/rendong/github/texmacs/src/src/./System/Files
-I/Users/rendong/github/texmacs/src/src/./System/Language
-I/Users/rendong/github/texmacs/src/src/./System/Link
-I/Users/rendong/github/texmacs/src/src/./System/Misc
-I/Users/rendong/github/texmacs/src/src/./Texmacs
-I/Users/rendong/github/texmacs/src/src/./Texmacs/Data
-I/Users/rendong/github/texmacs/src/src/./Typeset
-I/Users/rendong/github/texmacs/src/src/./Typeset/Bridge
-I/Users/rendong/github/texmacs/src/src/./Typeset/Concat
-I/Users/rendong/github/texmacs/src/src/./Typeset/Page
-I/Users/rendong/github/texmacs/src/TeXmacs/include
-I/Users/rendong/github/texmacs/src/build/src/System
-I/usr/local/Cellar/[email protected]/1.8.8/include -I/usr/local/include/freetype2
-Wno-deprecated-register -fPIC -std=gnu++11 -o
CMakeFiles/texmacs.bin.dir/Data/Convert/Scheme/to_scheme.cpp.o -c
/Users/rendong/github/texmacs/src/src/Data/Convert/Scheme/to_scheme.cpp
Installing internal plug-ins...
Opening display...
Starting server...
TeXmacs] debug-std, Evaluating
/Users/rendong/software/texmacs/share/TeXmacs/progs/init-texmacs.scm...
Creating 'no name' buffer...
TeXmacs] debug-fonts, Try tfm ecrm10.tfm
TeXmacs] debug-fonts, Open pk ecrm10.600pk
TeXmacs] debug-fonts, Loading larm.enc
TeXmacs] debug-fonts, Loading grmn.enc
TeXmacs] debug-fonts, Try tfm ecss10.tfm
TeXmacs] debug-fonts, Open pk ecss10.600pk
TeXmacs] debug-std, Redefined color dark slate
TeXmacs] debug-std, #2F4F4F replaced by #483D8B
TeXmacs] debug-std, Redefined color light slate
TeXmacs] debug-std, #778899 replaced by #8470FF
TeXmacs] debug-std, Redefined color light goldenrod
TeXmacs] debug-std, #FAFAD2 replaced by #EEDD82
TeXmacs] debug-std, Evaluating
/Users/rendong/software/texmacs/share/TeXmacs/progs/init-buffer.scm...
Starting event loop...
texmacs.bin(67303,0x7fff7e29f000) malloc: *** error for object 0x7f888569c5a8:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
I notice the 0x7fff7e29f000 is unchanged.
原始邮件
发件人:[email protected]
收件人:[email protected]
发送时间:2017年9月23日(周六) 22:17
主题:Re: [Texmacs-dev] malloc error on MacOS (build by myself)
According tohttp://savannah.gnu.org/bugs/?46075
I will use gcc and try again.
some additional info:
cd /Users/rendong/github/texmacs/src/build/src
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-DQTTEXMACS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB
-iframework /usr/local/opt/qt5/lib -isystem
/usr/local/opt/qt5/lib/QtCore.framework/Headers -isystem
/usr/local/opt/qt5/./mkspecs/macx-clang -isystem
/usr/local/opt/qt5/lib/QtGui.framework/Headers -isystem
/System/Library/Frameworks/OpenGL.framework/Headers -isystem
/usr/local/opt/qt5/lib/QtWidgets.framework/Headers -isystem
/usr/local/opt/qt5/lib/QtPrintSupport.framework/Headers
-I/Users/rendong/github/texmacs/src/src/./Data/Convert
-I/Users/rendong/github/texmacs/src/src/./Data/Document
-I/Users/rendong/github/texmacs/src/src/./Data/Drd
-I/Users/rendong/github/texmacs/src/src/./Data/History
-I/Users/rendong/github/texmacs/src/src/./Data/Observers
-I/Users/rendong/github/texmacs/src/src/./Data/String
-I/Users/rendong/github/texmacs/src/src/./Data/Tree
-I/Users/rendong/github/texmacs/src/src/./Edit
-I/Users/rendong/github/texmacs/src/src/./Edit/Editor
-I/Users/rendong/github/texmacs/src/src/./Edit/Interface
-I/Users/rendong/github/texmacs/src/src/./Edit/Modify
-I/Users/rendong/github/texmacs/src/src/./Edit/Process
-I/Users/rendong/github/texmacs/src/src/./Edit/Replace
-I/Users/rendong/github/texmacs/src/src/./Graphics/Bitmap_fonts
-I/Users/rendong/github/texmacs/src/src/./Graphics/Colors
-I/Users/rendong/github/texmacs/src/src/./Graphics/Fonts
-I/Users/rendong/github/texmacs/src/src/./Graphics/Gui
-I/Users/rendong/github/texmacs/src/src/./Graphics/Handwriting
-I/Users/rendong/github/texmacs/src/src/./Graphics/Mathematics
-I/Users/rendong/github/texmacs/src/src/./Graphics/Pictures
-I/Users/rendong/github/texmacs/src/src/./Graphics/Renderer
-I/Users/rendong/github/texmacs/src/src/./Graphics/Spacial
-I/Users/rendong/github/texmacs/src/src/./Graphics/Types
-I/Users/rendong/github/texmacs/src/src/./Kernel/Abstractions
-I/Users/rendong/github/texmacs/src/src/./Kernel/Containers
-I/Users/rendong/github/texmacs/src/src/./Kernel/Types
-I/Users/rendong/github/texmacs/src/src/./Plugins
-I/Users/rendong/github/texmacs/src/src/./Scheme
-I/Users/rendong/github/texmacs/src/src/./Scheme/Guile
-I/Users/rendong/github/texmacs/src/src/./Scheme/Scheme
-I/Users/rendong/github/texmacs/src/src/./System
-I/Users/rendong/github/texmacs/src/src/./System/Boot
-I/Users/rendong/github/texmacs/src/src/./System/Classes
-I/Users/rendong/github/texmacs/src/src/./System/Files
-I/Users/rendong/github/texmacs/src/src/./System/Language
-I/Users/rendong/github/texmacs/src/src/./System/Link
-I/Users/rendong/github/texmacs/src/src/./System/Misc
-I/Users/rendong/github/texmacs/src/src/./Texmacs
-I/Users/rendong/github/texmacs/src/src/./Texmacs/Data
-I/Users/rendong/github/texmacs/src/src/./Typeset
-I/Users/rendong/github/texmacs/src/src/./Typeset/Bridge
-I/Users/rendong/github/texmacs/src/src/./Typeset/Concat
-I/Users/rendong/github/texmacs/src/src/./Typeset/Page
-I/Users/rendong/github/texmacs/src/TeXmacs/include
-I/Users/rendong/github/texmacs/src/build/src/System
-I/usr/local/Cellar/[email protected]/1.8.8/include -I/usr/local/include/freetype2
-Wno-deprecated-register -g -fPIC -std=gnu++11 -o
CMakeFiles/texmacs.bin.dir/Data/Convert/Tex/fromtex_post.cpp.o -c
/Users/rendong/github/texmacs/src/src/Data/Convert/Tex/fromtex_post.cpp
原始邮件
发件人:[email protected]
收件人:[email protected]
发送时间:2017年9月23日(周六) 22:01
主题:[Texmacs-dev] malloc error on MacOS (build by myself)
Just successfully built TeXmacs on MacOS using
CMake(usinghttps://github.com/sadhen/texmacs)
But TeXmacs failed to launch.
I have tried several Qt versions including 5.6.2, 5.7.1, 5.9.1 (installed using
home-brew)
Here is the log:
➜ texmacs bin/texmacs --debug
Installing internal plug-ins...
Opening display...
Starting server...
TeXmacs] debug-std, Evaluating
/Users/rendong/software/texmacs/share/TeXmacs/progs/init-texmacs.scm...
Creating 'no name' buffer...
TeXmacs] debug-fonts, Try tfm ecrm10.tfm
TeXmacs] debug-fonts, Open pk ecrm10.600pk
TeXmacs] debug-fonts, Loading larm.enc
TeXmacs] debug-fonts, Loading grmn.enc
TeXmacs] debug-fonts, Try tfm ecss10.tfm
TeXmacs] debug-fonts, Open pk ecss10.600pk
TeXmacs] debug-std, Redefined color dark slate
TeXmacs] debug-std, #2F4F4F replaced by #483D8B
TeXmacs] debug-std, Redefined color light slate
TeXmacs] debug-std, #778899 replaced by #8470FF
TeXmacs] debug-std, Redefined color light goldenrod
TeXmacs] debug-std, #FAFAD2 replaced by #EEDD82
TeXmacs] debug-std, Evaluating
/Users/rendong/software/texmacs/share/TeXmacs/progs/init-buffer.scm...
Starting event loop...
texmacs.bin(59582,0x7fff7e29f000) malloc: *** error for object 0x7fc6f68a9768:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 59582 abort bin/texmacs --debug
_______________________________________________
Texmacs-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-dev