Issue 128036

Summary: Crash in Writer when linking frames on OS/2
Product: Writer Reporter: Matthias Seidel <mseidel>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P5 (lowest) CC: oooforum, ydario
Version: 4.1.6Keywords: crash
Target Milestone: 4.1.7   
Hardware: All   
OS: OS/2   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 126518    

Description Matthias Seidel 2019-02-10 20:01:42 UTC
I get a crash in Writer when trying to link frames with AOO 4.1.6 on ArcaOS (OS/2).

Steps to reproduce:

 - Create new Writer document
 - Insert a frame by choosing "Insert - Frame" from menu
 - Accept the defaults by clicking "OK"
 - Leave the frame selected and click on icon "Link Frames" in toolbar

Result:

 - Crash

Expected behavior:

 - You should see a mouse pointer indicating that you cannot link a single frame

In fact you need at least two frames but even then the crash occurs.
Comment 1 Matthias Seidel 2019-02-10 20:08:03 UTC
The main problem seems to be that the two pointers

 /main/vcl/os2/source/src/chain.ptr

and

 /main/vcl/os2/source/src/chainnot.ptr

are broken. In fact they have only the size of 16 bytes.
Comment 2 Matthias Seidel 2019-02-10 20:17:33 UTC
I fixed the two broken pointers (and several other) in trunk with
 
 r1851115
 r1851118
 r1851121
 r1851206
 r1851215

Merged to AOO42X with

 r1851280

Merged to AOO417 with

 r1853254

I hope this fixes the crash.
Comment 3 oooforum (fr) 2019-02-11 14:15:01 UTC
I Cc-ed Yuri for information
Comment 4 Matthias Seidel 2019-02-12 17:50:56 UTC
I forgot to mention that after clicking on "Link Frames" the mouse has to be moved to the document area to force the mouse pointer change.

Then the crash occurs.
Comment 5 Yuri Dario 2019-02-15 11:33:02 UTC
After building the current 4.1.7 branch I can confirm that the crash is gone and the correct pointer is visible.