Bug 121996 - Crash in: rtl_uStringbuffer_remove when EDITING grid control
Summary: Crash in: rtl_uStringbuffer_remove when EDITING grid control
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86-64 (AMD64) All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, haveBacktrace, regression
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2018-12-09 17:24 UTC by Gisbert
Modified: 2020-07-02 12:51 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["rtl_uStringbuffer_remove"]


Attachments
TestDB (28.28 KB, application/vnd.oasis.opendocument.database)
2018-12-10 09:51 UTC, Alex Thurgood
Details
lldb session backtrace (40.05 KB, text/plain)
2018-12-10 10:22 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gisbert 2018-12-09 17:24:55 UTC
This bug was filed from the crash reporting server and is br-470799f1-ce28-4a40-ba22-5b7949d5c97f.
=========================================
Tried to reduce the width of a column in a grid control in a form by shifting the right border (with the mouse) a bit to the left
Comment 1 Alex Thurgood 2018-12-10 09:38:49 UTC
@Gisbert : please provide a sample database file with which we can test.
Comment 2 Alex Thurgood 2018-12-10 09:45:50 UTC
On macOS 10.14, I get a permanent beachball hang of the application when moving the right cell border to the left (reducing width) in a grid control on a hsqldb query-based form.
Comment 3 Alex Thurgood 2018-12-10 09:47:48 UTC
Tested against :

Version: 6.3.0.0.alpha0+
Build ID: 8ec5c249fc40fb80d2a00e54a0bd76451dbc6477
CPU threads: 4; OS: Mac OS X 10.14.1; UI render: default; VCL: osx; 
Locale: fr-FR (fr_FR.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Alex Thurgood 2018-12-10 09:51:30 UTC
Created attachment 147409 [details]
TestDB

Attaching test DB for testing.

1) Open the form qry_DATE in form design mode (right mouse button click > Edit)
2) Try moving the right border of column COMPANY1 to the left.
3) Hang requiring forced kill.
Comment 5 Alex Thurgood 2018-12-10 10:22:22 UTC
I have to interrupt the lldb session with Ctrl-C in order to get a back trace, which I have enclosed, FWIW.
Comment 6 Alex Thurgood 2018-12-10 10:22:54 UTC
Created attachment 147411 [details]
lldb session backtrace
Comment 7 Xisco Faulí 2018-12-10 17:56:28 UTC
I can't reproduce it in

Version: 6.3.0.0.alpha0+
Build ID: fcc76610649a9830859f9e2efe2a06dbc6db74da
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 8 Xisco Faulí 2018-12-10 17:58:37 UTC
Nor in

Version: 6.3.0.0.alpha0+
Build ID: fcc76610649a9830859f9e2efe2a06dbc6db74da
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 9 Xisco Faulí 2018-12-12 15:23:36 UTC
Nor in

Versión: 6.1.3.2
Id. de compilación: 86daf60bf00efa86ad547e59e09d6bb77c699acb
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; 
Configuración regional: es-ES (es_ES); Calc: group threaded
Comment 10 Xisco Faulí 2018-12-12 17:22:31 UTC
not reproduced in

Version: 6.2.0.0.alpha1+
Build ID: afd4f48d164ca72a024159e0c6b7a49147351f64
CPU threads: 8; OS: Mac OS X 10.14.1; UI render: default; VCL: osx; 
Locale: en-US (en_ES.UTF-8); UI-Language: en-US
Calc: threaded

either.

@Alex Thurgood, Could you please try with a clean profile ? I'm wondering if you hang was related to bug 121778
Comment 11 Alex Thurgood 2018-12-13 11:18:33 UTC
(In reply to Xisco Faulí from comment #10)

> 
> @Alex Thurgood, Could you please try with a clean profile ? I'm wondering if
> you hang was related to bug 121778


My master build from 12/12 always uses a fresh profile.

Still reproducible.
Open ODB file
Open qry_DATE in Edit mode
With mouse, select and slide right border of 2nd column to left and release.
With mouse, select and slide right border of last column to left and release.
With mouse, select and slide right border of 3rd column to left and release.
Hang / Beachball requiring forced kill
Comment 12 Alex Thurgood 2018-12-13 11:20:10 UTC
Forcibly breaking LO process (Ctrl-Z) to regain control in lldb gives :
Process 97014 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff4146887b CoreGraphics`ripc_GetClipState + 4451
CoreGraphics`ripc_GetClipState:
->  0x7fff4146887b <+4451>: jne    0x7fff4146894d            ; <+4661>
    0x7fff41468881 <+4457>: movq   0x58(%r12), %rdi
    0x7fff41468886 <+4462>: movq   0xa8(%rsp), %rax
    0x7fff4146888e <+4470>: leaq   0x28(%rax), %r14
Comment 13 raal 2018-12-24 06:16:57 UTC
No repro with Version: 6.3.0.0.alpha0+
Build ID: 1b7bcaa714f0af45c6a9660d1f0940cb7931ba0f
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Comment 14 Xisco Faulí 2020-06-03 09:53:18 UTC
Checking https://crashreport.libreoffice.org/stats/signature/rtl_uStringbuffer_remove, I don't see crashes in 6.4.X versions.

@Gisbert, @Alex Thurgood, Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
Comment 15 Gisbert 2020-07-02 12:47:29 UTC
no longer reproduced in 6.3.5.2(x64),
not reproduced in 6.4.5.2(x64).
seems to be resolved.
thanks!