https://bugs.documentfoundation.org/show_bug.cgi?id=145391

            Bug ID: 145391
           Summary: Segfault importing Basic macros
           Product: LibreOffice
           Version: 7.3.0.0 alpha0+ Master
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: jim.av...@gmail.com

Description:
In master.  A SIGSEGV abort occurs when importing macros from another document.
 The abort occurs after selecting the document but before anything is
displayed.

The Segfault is in strcmp, called from libgtk3 stuff... ugh.

I'll attach two backtraces, one from the pre-built master build (no symbols),
the other from my locally-built-from-git with symbols:

Here are the juicy bits:

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
__strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:101
101 ../sysdeps/x86_64/multiarch/strcmp-avx2.S: No such file or directory.
#0  __strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:101
#1  0x00007fffe4362369 in (anonymous namespace)::foreach_find(GtkTreeModel*,
GtkTreePath*, GtkTreeIter*, gpointer) (model=0x555558e9f9e0,
path=0x555558f7b080, iter=0x7fffffff9cd0, data=0x7fffffff9d40) at
/home/jima/src/libreoffice/vcl/unx/gtk3/gtkinst.cxx:12691
#2  0x00007fffe3d6005a in  () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#3  0x00007fffe3d6148a in gtk_tree_model_foreach () at
/lib/x86_64-linux-gnu/libgtk-3.so.0
#4  0x00007fffe4369154 in (anonymous
namespace)::GtkInstanceTreeView::find_text(rtl::OUString const&) const
(this=0x55555921ba10, rText=...) at
/home/jima/src/libreoffice/vcl/unx/gtk3/gtkinst.cxx:14128
#5  0x00007fffd3c7ca25 in basctl::LibPage::InsertLib() (this=0x555558b92960) at
/home/jima/src/libreoffice/basctl/source/basicide/moduldl2.cxx:645
#6  0x00007fffd3c79465 in basctl::LibPage::ButtonHdl(weld::Button&)
(this=0x555558b92960, rButton=...) at
/home/jima/src/libreoffice/basctl/source/basicide/moduldl2.cxx:446
#7  0x00007fffd3c790bd in basctl::LibPage::LinkStubButtonHdl(void*,
weld::Button&) (instance=0x555558b92960, data=...) at
/home/jima/src/libreoffice/basctl/source/basicide/moduldl2.cxx:422
#8  0x00007fffe43b4627 in Link<weld::Button&, void>::Call(weld::Button&) const
(this=0x555558bdcdf0, data=...) at
/home/jima/src/libreoffice/include/tools/link.hxx:111
#9  0x00007fffe43aa6df in weld::Button::signal_clicked() (this=0x555558bdcde8)
at /home/jima/src/libreoffice/include/vcl/weld.hxx:1406
#10 0x00007fffe4354d66 in (anonymous
namespace)::GtkInstanceButton::signalClicked(GtkButton*, gpointer)
(widget=0x555558bdcb30) at
/home/jima/src/libreoffice/vcl/unx/gtk3/gtkinst.cxx:9197


Steps to Reproduce:
1. wget https://www.pitonyak.org/oo.php (or use copy attached to this bug)
2. /path/to/soffice --backtrace --calc

3. Tools->Macros->Organize Macros->Basic
   Select "My Macros" with mouse
   Click "Organizer..."
   Click "Libraries" tab at top
   Click "Import..."
   Select the file AndrewPersonalLibs.odt downloaded above

Actual Results:
SIGSEGV in soffice.bin (see backtrace)


Expected Results:
Not that


Reproducible: Always


User Profile Reset: No



Additional Info:
.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to