From owner-freebsd-ports@FreeBSD.ORG Thu Nov 20 02:37:35 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5FBC3E4; Thu, 20 Nov 2014 02:37:35 +0000 (UTC) Received: from smtp-out-02.shaw.ca (smtp-out-03.shaw.ca [64.59.136.139]) by mx1.freebsd.org (Postfix) with ESMTP id 791C0BF2; Thu, 20 Nov 2014 02:37:34 +0000 (UTC) X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=tLeJwtg1FCvAouMblIYY1Z5/U6XdMrtw4y2B9g+QINc= c=1 sm=1 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=8nJEP1OIZ-IA:10 a=IbtKDeXwb2+SRU442/pi3A==:17 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=pGLkceISAAAA:8 a=on_m5FHvz_zdtAaJPkMA:9 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([96.50.7.119]) by smtp-out-02.shaw.ca with ESMTP; 19 Nov 2014 19:37:34 -0700 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTP id F2B739C4C; Wed, 19 Nov 2014 18:37:33 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.9/8.14.9) with ESMTP id sAK2Z3Fd017196; Wed, 19 Nov 2014 18:35:03 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.14.9/8.14.8/Submit) with ESMTP id sAK2Z3W0017193; Wed, 19 Nov 2014 18:35:03 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201411200235.sAK2Z3W0017193@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: Jurica Borozan Subject: Re: FreeBSD Port: cfengine36-3.6.1_3,1 In-Reply-To: Message from Jurica Borozan of "Wed, 19 Nov 2014 15:28:43 +0100." <546CA91B.8050202@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Nov 2014 18:35:03 -0800 Cc: Steven Kreuzer , ports@freebsd.org, Cy Schubert X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2014 02:37:36 -0000 The segfault needs to be brought up with our upline. I'm currently workin= g=20 on a couple of ipfilter issues and should get to this after completing th= at=20 work. --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. In message <546CA91B.8050202=40gmail.com>, Jurica Borozan writes: >=20 >=20 > Hi, >=20 > I am currently in gbd chasing the problems. >=20 > Data memory region gets overwritten for some reasons destroying > variables content after certain (but =22innocent=22 function call > ArchiveToRepository - check gdb output bellow) and causes segmentation > fault. >=20 >=20 > On 19.11.14 15:07, Steven Kreuzer wrote: > > On Wed, Nov 19, 2014 at 5:23 AM, Jurica Borozan > > wrote: > >> Hi Steven, > >> > >> I tested proposed solution which is partially ok. > >> > >> XML processing is there but segmentation fault/core dump is still > >> present due to a problem in backup-ing processed files. > >=20 > > Can you send me the core file? >=20 > I will prepare it with all other test files and instructions in new ema= il. >=20 >=20 > >> Even more: I tested non-xml functionality to investigate this =22bac= kup=22 iss > ue and it > >> is there too. On linux there is no problem with this issue. > >=20 > > I am not sure what you mean when you saying backing up processed file= s? > > Can you send me an example agent that caused this issue and I can tak= e > > a closer look. > >=20 >=20 > It is internal feature from cfengine: if certain file is > processed/changed it can (depending on content of cf script) save backu= p > first (with extension *.cf-before-edit). >=20 >=20 > Regards and thanks > jurica >=20 >=20 > a) <<<<<<<<<<<<<<< >=20 > 262 if (ArchiveToRepository(backup, a)) > (gdb) p new > =2435 =3D > =22/tmp/test.txt.cf-after-edit=5C000??i(?=5C000=5C200(=5C000=5C000?(=5C= 034=5C001=5C200(=5C034=5C001 > =5C200( > =5C001=5C200(=5C000=5C000?(=5C034=5C001=5C200(=5C034=5C001=5C200( > =5C001=5C200(=5C000=5C000?(=5C034=5C001=5C200(=5C034=5C001=5C200( > =5C001=5C200(=5C000=5C000?(=5C000=5C000?(=5C001=5C000=5C000=5C000 > =5C001=5C200(,?t(l=5Cr??=CE=BFi(=5C000=5C000=5C000=5C000=CE=BFi(=5C200= =5C000=5C000=5C000G=5C000=5C000=5C000=5Cr=5C000=5C000 > =5C000=5C0000?(=5C024=5C001=5C000=5C000=5C224*w(?=5C000=5C000=5C000=5Cb= :v(?)w(=5C003=5C000=5C000=5C0000=5C000 > =5C000=5C000,?t(x=5C002=5C200(=5C002=5C000=5C000=5C000?=5C000=5C000=5C0= 00=5Cf0?(=5C220=3D?(=21=5C000=5C000=5C000 > =5C000=5C000=5C000,?t(=22... > (gdb) p backup > =2436 =3D =22/tmp/test.txt.cf-before-edit=22, '=5C0' , > =22?(?=5C000=5C200(,?t(x????=5C001j(=5C000=5C000=5C000=5C000p????=5Ct= =5C000=5C000=5C000=5C000?(?=5C000=5C20 > 0(?=5Ct?(X=5C001=5C200(?=5Ct?(=5C024=5Cn?(?????=5Ct?(?????=5Ct?(=5C001= =5C000=5C000=5C000X=5C001=5C200(=22, > '=5C0' , > =22?=5C022j(=5C000=5C000=5C000=5C000=5C000=5C000=5C000=5C000?=5Ct=5C000= =5C000=5C034=5C002=5C200(=5C000=5C000?(=5C03 > 0????=5Ct?(=5C001=5C000=5C000=5C000,=5C002=5C200(=22, > '=5C0' , =22?(?=5C000=5C200(,?t(=7C????=5C001j(=5C000= =5C000?(p?=22... > (gdb) > (gdb) n > 273 if (rename(new, BufferData(deref_file)) =3D=3D -1) > (gdb) p new > =2437 =3D '=5C0' , =22=CE=BFi(=22, '=5C0' , > =22=21=5C000=5C000=5C000'=5C000=5C000=5C000=5C000??(=5C204=5C002=5C000= =5C000?+w(?=5C001=5C000=5C000=5Cb:v(?)w(=5C > a=5C000=5C000=5C000p=5C000=5C000=5C000,?t(?=5C003=5C200(=5C002=5C000=5C= 000=5C000?=5C001=5C000=5C000=5Cf??(??? > (a=5C000=5C000=5C000=5C231?=5C024(,?t(PF??=5C=5C4j(?=5C000=5C200(a=22, > '=5C0' , =22a=22, '=5C0' , =22p=22,= '=5C0' > , =22files.create.edit_line.-freebsd-jb01=22, '=5C0'= > , =22?=40?(=22, '=5C0' ... > (gdb) p backup > =2438 =3D '=5C0' , =22_tmp_test_txt=22, '=5C0' times>, =22insert_value=22, '=5C0' , =22?=5C215=5Ct(= ??=5Cv(??=5Cv(=22, > '=5C0' , > =22=5C022=5C000=5C000=5C000=5C001=5C000=5C000=5C000=5C034?=5Cv(??=5Cv(= =5C000?=5Cn(=5C000=5C000=5C000=5C001?;??=5Cb; > ??=5C024g=5Cv(?=5C202=5Cn(?;???u=5Ct(0;???=5C002=22, > '=5C0' , =22?=5C202=5Cn(=22, '=5C0' , > =22=5C034?=5Cv(=22, '=5C0' , > =22??=5Cn(? (gdb) >=20 >=20 > b) <<<<<<<<<<<<<<<<<<<<<<<<<<<< >=20 >=20 > 262 if (ArchiveToRepository(backup, a)) > (gdb) p *deref_file > =2465 =3D =7Bbuffer =3D 0x28cbd240 =22/tmp/test.txt=22, mode =3D BUFFER= _BEHAVIOR_CSTRING, > capacity =3D 16, used =3D 13, unsafe =3D 8=7D > (gdb) p *pretty_file > =2466 =3D =7Bbuffer =3D 0x28cbc000 =22'/tmp/test.txt'=22, mode =3D > BUFFER_BEHAVIOR_CSTRING, > capacity =3D 4096, used =3D 15, unsafe =3D 128=7D > (gdb) n > 273 if (rename(new, BufferData(deref_file)) =3D=3D -1) > (gdb) p *deref_file > =2467 =3D =7Bbuffer =3D 0xbfbf53f8 =22=5C020=5C205???b=5C005=5Cb? ?(=22= , mode =3D 134566911, > capacity =3D 683745456, used =3D 684411456, unsafe =3D false=7D > (gdb) p *pretty_file > =2468 =3D =7Bbuffer =3D 0x28cb3300 =22=5C200.?(PQ?(=22, mode =3D 321697= 6124, capacity =3D 0, > used =3D 0, unsafe =3D false=7D > (gdb) >=20 >=20