Created attachment 98180 [details] Sample document to reproduce the bug Problem description: Libreoffice crashes on Sort function in Calc. Steps to reproduce: 1. open attached file 2. in menu, select Data -> Sort 3. Click OK Current behavior: crash Expected behavior: sort Operating System: Ubuntu Version: 4.2.3.3 release
I wonder if it could be a dup of fdo#76607 (ref put in See also) For the test, could you give a try to a daily build from 4.2 branch (see http://dev-builds.libreoffice.org/daily/libreoffice-4-2/)?
Crash reproducible with LO 4.2.5.0.0+ under Ubuntu 14.04 x86-64. In the attached file, the sort is defined as a columns sort. And the crash is resulting from that the last column has empty cells. If I remove the cell containing "flag" (D1) or if I complete the column D from D2 to D4 to avoid empty cells, then LO does not crash anymore. Same behavior with the master (Build ID: 3fef59ce0bc00a05a0577bf8e3a76e322b538099) Best regards. JBF
Sorry, my mistake, I can also reproduce this with master sources, I'm gonna attach a bt soon.
Created attachment 98197 [details] console logs + bt with symbols
Kohei/Markus/Eike: one for you?
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0e443b773454fa153827753812757d88eea932c5 fdo#78079: Write test for this. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=3c4fb52d8fc89fe43983991ed2339295b2e0ef8c fdo#78079: Re-work sort by column to get it to do the right thing. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The crash was not so much because of cells being empty. It was because of those cells containing formulas.
4.2 backport: https://gerrit.libreoffice.org/9220
Kohei Yoshida committed a patch related to this issue. It has been pushed to "libreoffice-4-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=5797fd7662d09a9f0f1ee3bf06204b5c4a6397ac&h=libreoffice-4-2 fdo#78079: Re-work sort by column to get it to do the right thing. It will be available in LibreOffice 4.2.5. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Fixed in 4.2.5.
Verified fixed for LibreOffice 4.2.5.0.0+ under Ubuntu 14.04 x86-64. Thank you very much, Kohei ! :-) Best regards. JBF
Thank you Kohei & All for fast fix :-)
*** Bug 78233 has been marked as a duplicate of this bug. ***