Bug 125480 - Crash in: SbiRuntime::Step()
Summary: Crash in: SbiRuntime::Step()
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2019-05-24 16:28 UTC by Andrew Richardson
Modified: 2021-07-07 11:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["SbiRuntime::Step()"]


Attachments
Archive with "Demo" application & database (701.71 KB, application/x-zip-compressed)
2019-11-22 01:57 UTC, Andrew Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Richardson 2019-05-24 16:28:31 UTC
This bug was filed from the crash reporting server and is br-434dd592-90fe-4bb1-a1fe-ebeaadebae90.
=========================================

Crash seen on moving to LO 6.1.5.2 (or 6.2.2.2).  
Issue not seen using older LO 5.4.7.2

Application uses external HSQLDB 2.4.1 server.

Base form is opened and data loaded into fields.  Form has three subforms.  Using recordset navigation controls, press record advance in top-level form until crash happens.  Number of advances seems random, have seen crash after 2 or after 60 advances.
Comment 1 Xisco Faulí 2019-05-24 23:10:45 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 QA Administrators 2019-11-21 03:32:54 UTC Comment hidden (obsolete)
Comment 3 Andrew Richardson 2019-11-22 01:57:28 UTC
Created attachment 156019 [details]
Archive with "Demo" application & database

Bug replicated using Windows10 & LO Version: 6.3.3.2 (x64)

Instructions:
1. Extract archive files into new folder
2. Double-click the "Demo.odb" file
3. On initial form, 
   - select any name from first listbox field
   - click "Waterfront" or "Camping" Reservation button
4. Wait for new form to initialize, and "Customer" fields to populate
5. Use "Next Record" control to advance through record-set.  Note the subforms will update based on the customer record.
6. Repeat step 5 until crash. 

Note: Crash seems to take more operations to occur using latest LO version.
Tester may need to close Reservation form, reopen, and advance records to trigger crash.
Comment 4 Alex Thurgood 2019-11-26 10:05:09 UTC
The sample provided is supposed to work with an externally linked hsqldb server/engine.

When I click on the first form, I get an error message that the table "Customers" doesn't exist. 


Does the same issue present itself with an internal, embedded hsqldb file ?
Comment 5 Alex Thurgood 2019-11-26 10:27:24 UTC
The database properties file indicates that it requires hsqldb 2.5.0 engine.

Unfortunately, can't test on macOS.
Comment 6 Andrew Richardson 2019-11-26 14:16:31 UTC
Sample was prepared & tested using embedded database configuration, to avoid need for external server process.  Granted, this is different from production version but issue still manifests.

Issue seen using hsqldb 2.4.1 as well.  Sample *should* work with either version of hsqldb.
Comment 7 QA Administrators 2019-11-27 03:47:21 UTC Comment hidden (obsolete)
Comment 8 Alex Thurgood 2019-11-28 08:00:51 UTC
For me, testing with :

Version: 6.3.2.2
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
Threads CPU : 4; OS : Mac OS X 10.15.1; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

leads to a systematic error message "Data content can not be loaded. Table "XYZ" does not exist" or "Table not found in statement" when trying to load any of the forms.

If I click on the Tables icon in the main ODB window, no tables are displayed.
Comment 9 Alex Thurgood 2019-11-28 08:54:10 UTC
Looking at the crash report, I'm guessing that UNO objects in the Writer form get destroyed regardless of the SolarMutex guard in StarBASIC::InitAllModules(StarBASIC const *), line 1184.

Am wondering whether :

https://bz.apache.org/ooo/show_bug.cgi?id=105557

is related ?

Somebody with a knowledge of UNO object lifecyle management would probably be helpful here.
Comment 10 Xisco Faulí 2021-07-07 10:34:32 UTC
Hello Andrew,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 11 Andrew Richardson 2021-07-07 11:40:02 UTC
Cannot replicate failure using LO 7.0.6.2 (x64) and external database using HSQLDB 2.5.1 on Windows 10 machine.  Presumed issue fixed along the way.
Setting status to Resolved/WorksForMe.