Bug 103937 - CRASH - SIGABRT in Base ODB when activating macros - thread mutex release problem
Summary: CRASH - SIGABRT in Base ODB when activating macros - thread mutex release pro...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha1+
Hardware: All macOS (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, regression
Depends on:
Blocks:
 
Reported: 2016-11-15 13:28 UTC by Alex Thurgood
Modified: 2017-06-27 09:09 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace from lldb debugging session (34.00 KB, text/plain)
2016-11-15 13:30 UTC, Alex Thurgood
Details
Test ODB file containing macros (20.32 KB, application/vnd.oasis.opendocument.database)
2016-11-15 13:33 UTC, Alex Thurgood
Details
LLDB Backtrace after stuck (1.51 MB, text/plain)
2016-11-19 15:18 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2016-11-15 13:28:22 UTC
Description:
1) Open attached ODB file.
2) Agree to activate macros
3) The Base window freezes (spinning beachball in OSX) in a non-debug build requiring force kill - in a debug build, a SIGABRT is thrown and can be traced.

Steps to Reproduce:
1) Open attached ODB file.
2) Agree to activate macros
3) The Base window freezes (spinning beachball in OSX) in a non-debug build requiring force kill, no user interaction with the Base application buttons is possible - in a debug build, a SIGABRT is thrown and can be traced.

Actual Results:  
Base causes a SIGBART and dies (debug build) or requires force kill (release build)

Expected Results:
Base should activate the macros and allow corresponding user interaction (opening of tables, queries, forms, etc)


Reproducible: Always

User Profile Reset: No

Additional Info:
Backtrace included


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 Alex Thurgood 2016-11-15 13:30:20 UTC
Created attachment 128761 [details]
backtrace from lldb debugging session
Comment 2 Alex Thurgood 2016-11-15 13:33:59 UTC
Created attachment 128762 [details]
Test ODB file containing macros
Comment 3 Telesto 2016-11-19 15:04:55 UTC
I can't confirm the SIGABERT. I can confirm base isn't responding and requires a forces kill

Steps I did:
1. Start LibreOffice
2. Open Base from Start Center
3. Open attached Test ODB
4. Accept Enabling Macro's

Actual Results:  
Base isn't responsive, and running at 100% CPU requiring force kill

Tested with:
Version: 5.3.0.0.alpha1+
Build ID: 074f0ab1d76f16fe92493868e2f2de75e67792ef
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-15_00:29:07
Locale: en-US (en_US.UTF-8); Calc: group
Comment 4 Telesto 2016-11-19 15:18:49 UTC
Created attachment 128873 [details]
LLDB Backtrace after stuck

Version: 5.3.0.0.alpha1+
Build ID: 074f0ab1d76f16fe92493868e2f2de75e67792ef
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; Layout Engine: new; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-15_00:29:07
Locale: en-US (en_US.UTF-8); Calc: group

I quite a few backtraces I did I always see:
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__

I also noticed:
@"AppKit cannot convert carbon mouse event of kind '%ld' to CGEventRef."
Comment 5 Telesto 2016-11-19 16:00:32 UTC
A more complete list of errors:
- @"AppKit cannot convert carbon event class '%.4s' to CGEventRef."
- @"AppKit cannot convert carbon mouse event of kind '%ld' to CGEventRef."
- @"AppKit cannot convert carbon mouse events of button '%ld' to CGEventRef."
- @"WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future."
- THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__

Most of time also seen in - for example - bug 103571 and 99784
Comment 6 Alex Thurgood 2017-06-27 09:06:15 UTC
Testing with

Version: 5.3.4.2
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
Threads CPU : 4; Version de l'OS :Mac OS X 10.12.5; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
1) open the file : OK, file loads
2) activate the macros by responding to message prompt : OK
3) in the Forms module, double-clicking on Formulaires does nothing, no form is displayed.
4) double clicking on Recherche_invention displays an error message :

Impossible d'établir la connexion à la source de données "base".
Statut SQL: HY000

La connexion n'a pas pu être établie. La base de données a été créée par une version plus récente de LibreOffice.
Comment 7 Alex Thurgood 2017-06-27 09:09:30 UTC
So no crashing anymore, but file still not usable.

Closing as WFM