From owner-freebsd-office@freebsd.org Thu May 16 12:37:40 2019 Return-Path: Delivered-To: freebsd-office@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78A5E1594E91 for ; Thu, 16 May 2019 12:37:40 +0000 (UTC) (envelope-from pica@biaix.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0466873B0B for ; Thu, 16 May 2019 12:37:30 +0000 (UTC) (envelope-from pica@biaix.org) Received: by mailman.ysv.freebsd.org (Postfix) id BC4171594E8E; Thu, 16 May 2019 12:37:29 +0000 (UTC) Delivered-To: office@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FAE91594E8C for ; Thu, 16 May 2019 12:37:29 +0000 (UTC) (envelope-from pica@biaix.org) Received: from hobbes.biaix.org (43.red-2-139-164.staticip.rima-tde.net [2.139.164.43]) by mx1.freebsd.org (Postfix) with SMTP id CA44C73B08 for ; Thu, 16 May 2019 12:37:28 +0000 (UTC) (envelope-from pica@biaix.org) Received: (qmail 46183 invoked from network); 16 May 2019 12:25:23 -0000 Received: from hobbes.biaix.org (HELO grummit.biaix.org) (192.168.124.6) by hobbes.biaix.org with SMTP; 16 May 2019 12:25:23 -0000 Received: (qmail 46168 invoked by uid 1012); 16 May 2019 12:25:18 -0000 Date: Thu, 16 May 2019 14:25:18 +0200 From: Joan Picanyol i Puig To: Jan Beich Cc: office@freebsd.org, Greg Veldman , Li-Wen Hsu Subject: Re: reproducible crash after libreoffice update Message-ID: <20190516122518.GA46018@grummit.biaix.org> References: <20190514115233.GA9791@grummit.biaix.org> <20190514150206.GB11862@grummit.biaix.org> <20190514175041.GA14247@grummit.biaix.org> <20190515075117.GA23790@grummit.biaix.org> <20190516094425.GA43894@grummit.biaix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Rspamd-Queue-Id: CA44C73B08 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.988,0] X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2019 12:37:40 -0000 * Jan Beich [20190516 14:06]: > Joan Picanyol i Puig writes: > > > It does seem that somehow the collator's settings get lost, some more details: > > > > (gdb) up 1 > > #1 0x0000000800b5a241 in icu::RuleBasedCollator::doCompare (this=0x8173c41c0, left=0x7fffffffce02 u"pre.conf\xffff", leftLength=8, right=0x7fffffffcdc2 u"parent.conf", > > rightLength=11, errorCode=@0x7fffffffcd94: U_ZERO_ERROR) at rulebasedcollator.cpp:1003 > > 1003 UBool numeric = settings->isNumeric(); > > > > Does the following sample crash? [snip] > > $ cat a.cc > #include > > using namespace icu; > > int main() > { > UErrorCode status = U_ZERO_ERROR; > Collator *coll = Collator::createInstance(Locale("ca", "ES"), status); > coll->compare(u"pre.conf\xffff", u"parent.conf"); > > return 0; > } > > $ c++ a.cc $(icu-config --cppflags --ldflags) > $ ./a.out This does not crash. > > > (gdb) up 1 > > #3 0x0000000800b31b39 in icu::Collator::compare (this=0x8173c41c0, source=..., target=...) at coll.cpp:495 > > 495 return (EComparisonResult)compare(source, target, ec); > > (gdb) print *this > > $1 = { = { = {}, _vptr$UObject = 0x800ce7930 }, } > > From the above example: > > (gdb) p *this > $1 = { = { = { = {}, > _vptr$UObject = 0x800658578 }, }, > data = 0x800f21000, settings = 0x800f08000, tailoring = 0x800f01000, cacheEntry = 0x800f50400, > validLocale = { = { = {}, > _vptr$UObject = 0x8008d8a80 }, > language = "ca\000\000\000\000\000\000\000\000\000", script = "\000\000\000\000\000", > country = "\000\000\000", variantBegin = 2, fullName = 0x800f61058 "ca", > fullNameBuffer = "ca", '\000' , baseName = 0x800f61058 "ca", fIsBogus = 0 '\000'}, > explicitlySetAttributes = 0, actualLocaleIsSameAsValid = 0 '\000'} > > but if "delete coll" happens before coll->compare() > > (gdb) p *this > $2 = { = { = {}, > _vptr$UObject = 0x800658578 }, } > > Did you notice "settings" was lost? I did notice that settings got lost in my test case. I understand you suggest that it is because of the caller. [message reordered] > If not rebuild libreoffice with debug symbol to get more context. > Maybe libreoffice "delete" or "ucol_close" UCollator pointer but then > ends up using it, anyway Well, that will take a while... tks -- joan