Re: ERRORS: libmateweather.spec OK: libmatekbd.spec libmatemixer.spec mate-menus.spec

2015-11-28 Thread Arkadiusz Miśkiewicz
On Saturday 07 of November 2015, Jakub Bogusz wrote:
> On Sat, Nov 07, 2015 at 01:41:36PM +0100, Jan Palus wrote:
> > On 07.11.2015 12:28, PLD th-i686 builder wrote:
> > > Conflicts: mate-applet-gweather < 1.6.1
> > > Processing files: libmateweather-devel-1.12.0-1.i686
> > > Segmentation fault
> > 
> > 
> > 
> > > ended at: Sat Nov  7 13:27:32 2015, done in 0:04:49.335941
> > > error: No files produced.
> > 
> > Can someone have a look what is failing on i686 builder? Seems to be
> > reproducible -- two attempts failed the same way.
> 
> i686 rpmbuild seems to fail randomly during libmagic calls
> (reproductible also on my machine, so it's not th-i686 builder issue).
> I tried to debug it, but it's nothing obvious and hard to reproduce -
> so I gave up due to the lack of enough time resources.

So different bugs? I got:

(gdb) bt
#0  0xf724d3fc in ?? () from /lib/libc.so.6
#1  0xf7481eb9 in strncpy (__len=, __src=0xffda95b0 "", 
__dest=) at /usr/include/bits/string3.h:126
#2  expandMacros (spec=spec@entry=0x0, mc=, mc@entry=0x0, 
sbuf=sbuf@entry=0xa0dae38 "", slen=slen@entry=131094) at macro.c:2776
#3  0xf7481feb in rpmExpand (arg=arg@entry=0xf7658373 "%{?__noautoprovfiles}") 
at macro.c:3277
#4  0xf7636018 in rpmfcExpandRegexps (str=str@entry=0xf7658373 
"%{?__noautoprovfiles}", nmirep=nmirep@entry=0xa072fb8) at rpmfc.c:346
#5  0xf7638bdb in rpmfcApply (fc=fc@entry=0xa072f48) at rpmfc.c:1126
#6  0xf763a562 in rpmfcGenerateDepends (_spec=_spec@entry=0xa08d700, 
_pkg=_pkg@entry=0xa0a8a28) at rpmfc.c:2059
#7  0xf7685c31 in processBinaryFiles (spec=spec@entry=0xa08d700, 
installSpecialDoc=installSpecialDoc@entry=4, test=test@entry=0) at 
files.c:3211
#8  0xf767dd02 in buildSpec (ts=0xa0714b0, spec=spec@entry=0xa08d700, 
what=159, test=0) at build.c:392
#9  0x0804a65b in buildForTarget (ts=ts@entry=0xa0714b0, ba=ba@entry=0x804d200 
) at build.c:265
#10 0x0804adbe in build (ts=ts@entry=0xa0714b0, ba=0x804d200 , 
rcfile=rcfile@entry=0x0) at build.c:315
#11 0x08049b98 in main (argc=5, argv=0xffdcfd64) at ./rpmqv.cc:982
(gdb) frame 2
#2  expandMacros (spec=spec@entry=0x0, mc=, mc@entry=0x0, 
sbuf=sbuf@entry=0xa0dae38 "", slen=slen@entry=131094) at macro.c:2776
2776strncpy(sbuf, tbuf, (slen - mb->nb + 1));
(gdb) print sbuf
$22 = 0xa0dae38 ""
(gdb) print tbuf
$23 = 0xffda95b0 ""
(gdb) print slen
$24 = 131094
(gdb) print mb->nb
value has been optimized out
(gdb) frame 3
#3  0xf7481feb in rpmExpand (arg=arg@entry=0xf7658373 "%{?__noautoprovfiles}") 
at macro.c:3277
3277(void) expandMacros(NULL, mc, t, tn + bufn + 1);
(gdb) print mc
$25 = (struct MacroContext_s *) 0x0
(gdb) print t
$26 = 0xa0dae38 ""
(gdb) print tn + bufn + 1
$27 = 131094
(gdb) frame 4
#4  0xf7636018 in rpmfcExpandRegexps (str=str@entry=0xf7658373 
"%{?__noautoprovfiles}", nmirep=nmirep@entry=0xa072fb8) at rpmfc.c:346
346 s = rpmExpand(str, NULL);
(gdb) print str
$28 = 0xf7658373 "%{?__noautoprovfiles}"


reproduced (3 times in the same place) on carme-i686 by doing

../builder -bi python-setuptools.spec
while (rpmbuild --short-circuit -bi python-setuptools.spec); do echo x; done

~50 iterations, 10 minutes to reproduce

-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: ERRORS: libmateweather.spec OK: libmatekbd.spec libmatemixer.spec mate-menus.spec

2015-11-28 Thread Jacek Konieczny
On 2015-11-28 20:12, Jacek Konieczny wrote:
> Clearly some access before the buffer.

Fixed, I think.

Jacek
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: ERRORS: libmateweather.spec OK: libmatekbd.spec libmatemixer.spec mate-menus.spec

2015-11-28 Thread Jacek Konieczny
On 2015-11-28 19:32, Arkadiusz Miśkiewicz wrote:

> reproduced (3 times in the same place) on carme-i686 by doing
> 
> ../builder -bi python-setuptools.spec
> while (rpmbuild --short-circuit -bi python-setuptools.spec); do echo x; done
> 
> ~50 iterations, 10 minutes to reproduce

No need to build anything.


valgrind rpm --eval '%{?__noautoprovfiles}'

shows the problem:

==102752== Conditional jump or move depends on uninitialised value(s)
==102752==at 0x429E22B: doShellEscape (in /lib/librpmio-5.4.so)
==102752==by 0x429CACA: expandMacro (in /lib/librpmio-5.4.so)
==102752==by 0x429EA11: expandT (in /lib/librpmio-5.4.so)
==102752==by 0x429D1D6: expandMacro (in /lib/librpmio-5.4.so)
==102752==by 0x429DE86: expandMacros (in /lib/librpmio-5.4.so)
==102752==by 0x429DFEA: rpmExpand (in /lib/librpmio-5.4.so)
==102752==by 0x40D70B5: rpmcliAllArgCallback (in /lib/librpm-5.4.so)
==102752==by 0x4635F5BC: ??? (in /lib/libpopt.so.0.0.0)
==102752==by 0x4635F5F6: ??? (in /lib/libpopt.so.0.0.0)
==102752==by 0x46360EB5: poptGetNextOpt (in /lib/libpopt.so.0.0.0)
==102752==by 0x40D778C: rpmcliInit (in /lib/librpm-5.4.so)
==102752==by 0x8049CB7: main (in /bin/rpm)

Having anything before the expanded macro will fix it:

valgrind rpm --eval 'x%{?__noautoprovfiles}'

Clearly some access before the buffer.

Jacek
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: ERRORS: libmateweather.spec OK: libmatekbd.spec libmatemixer.spec mate-menus.spec

2015-11-07 Thread Jan Palus
On 07.11.2015 12:28, PLD th-i686 builder wrote:
> Conflicts: mate-applet-gweather < 1.6.1
> Processing files: libmateweather-devel-1.12.0-1.i686
> Segmentation fault

> ended at: Sat Nov  7 13:27:32 2015, done in 0:04:49.335941
> error: No files produced.

Can someone have a look what is failing on i686 builder? Seems to be
reproducible -- two attempts failed the same way.
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: ERRORS: libmateweather.spec OK: libmatekbd.spec libmatemixer.spec mate-menus.spec

2015-11-07 Thread Jakub Bogusz
On Sat, Nov 07, 2015 at 01:41:36PM +0100, Jan Palus wrote:
> On 07.11.2015 12:28, PLD th-i686 builder wrote:
> > Conflicts: mate-applet-gweather < 1.6.1
> > Processing files: libmateweather-devel-1.12.0-1.i686
> > Segmentation fault
> 
> > ended at: Sat Nov  7 13:27:32 2015, done in 0:04:49.335941
> > error: No files produced.
> 
> Can someone have a look what is failing on i686 builder? Seems to be
> reproducible -- two attempts failed the same way.

i686 rpmbuild seems to fail randomly during libmagic calls
(reproductible also on my machine, so it's not th-i686 builder issue).
I tried to debug it, but it's nothing obvious and hard to reproduce -
so I gave up due to the lack of enough time resources.


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en