https://bugs.documentfoundation.org/show_bug.cgi?id=103632
Bug ID: 103632
Summary: Segfault during sort in ScColumn::GetCellValue
Product: LibreOffice
Version: 5.3.0.0.alpha1
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs@lists.freedesktop.org
Reporter: jim.av...@gmail.com
Description:
After some macro code runs (which I can't pin down), sort segfaults.
Unfortunatly the unknown precursor operations are in BASIC macro code, so you
have to enable macros to reproduce the problem. I could not repro the crash
doing a "manual" sort which seems equivalent to what the macro code is doing.
Fortunately I have a test case which causes the segfault every time with a
single button click.
In any case, LO should never segfault, even if BASIC macros are mis-coded.
I'll attach the gdb backtrace from running with --backtrace. It starts with
this:
Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffb11852ae in
mdds::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<52,
svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<53,
EditTextObject>, mdds::mtv::noncopyable_managed_element_block<54,
ScFormulaCell> >, sc::CellStoreEvent>::position(unsigned long) const () from
program/../program/libsclo.so
#0 0x00007fffb11852ae in
mdds::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<52,
svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<53,
EditTextObject>, mdds::mtv::noncopyable_managed_element_block<54,
ScFormulaCell> >, sc::CellStoreEvent>::position(unsigned long) const () from
program/libsclo.so
#1 0x00007fffb11778e0 in ScColumn::GetCellValue(int) const () from
program/../program/libsclo.so
#2 0x00007fffb12f1171 in ScTable::Compare(int, int) const () from
program/../program/libsclo.so
#3 0x00007fffb12fa22a in ScTable::Sort(ScSortParam const&, bool, bool,
ScProgress*, sc::ReorderParam*) () from program/libsclo.so
Steps to Reproduce:
1. Start LO on the attached test.ods.
2. [if necessary] Tools->Options->LibreOffice->Security->Macro Security... set
to "Medium" and restart.
3. Enable macro execution when prompted.
4. Click the "MO, TV%" button in the top middle (near column P or Q). This is
supposed to sort the sheet by Month and then TV%
Actual Results:
Libre Office crash dialog appears
Expected Results:
No crash
Reproducible: Always
User Profile Reset: No
Additional Info:
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101
Firefox/49.0
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs