Re: rpmbuild core dumps

2024-01-02 Thread Sam Varshavchik
Florian Weimer writes: * Sam Varshavchik: > Stephen Smoogen writes: > >>https://github.com/rpm-software-management/rpm/issues/ >>2826>https://github.com/rpm-software-management/rpm/issues/2826 >> >> >> And thanks for opening a bug. I will watch to see what happens.  > > I'm genuinely

Re: rpmbuild core dumps

2024-01-02 Thread Panu Matilainen
On 1/2/24 11:49, Florian Weimer wrote: * Sam Varshavchik: Stephen Smoogen writes: https://github.com/rpm-software-management/rpm/issues/ 2826>https://github.com/rpm-software-management/rpm/issues/2826 And thanks for opening a bug. I will watch to see what happens. I'm genuinely

Re: rpmbuild core dumps

2024-01-02 Thread Florian Weimer
* Sam Varshavchik: > Stephen Smoogen writes: > >>https://github.com/rpm-software-management/rpm/issues/ >>2826>https://github.com/rpm-software-management/rpm/issues/2826 >> >> >> And thanks for opening a bug. I will watch to see what happens.  > > I'm genuinely curious. Am I really the

Re: rpmbuild core dumps

2024-01-01 Thread Sam Varshavchik
Stephen Smoogen writes: https://github.com/rpm-software-management/rpm/issues/ 2826>https://github.com/rpm-software-management/rpm/issues/2826 And thanks for opening a bug. I will watch to see what happens.  I'm genuinely curious. Am I really the only one seeing this? The bug seems

Re: rpmbuild core dumps

2024-01-01 Thread Stephen Smoogen
On Thu, 28 Dec 2023 at 17:24, Sam Varshavchik wrote: > Stephen Smoogen writes: > > > I am trying to figure out the logic of this section: > > > > > > ``` > > > > static char * lastUname = NULL; // So lastUname is NULL > > static uid_t lastUid; > > > > if (!thisUname) { > >

Re: rpmbuild core dumps

2023-12-28 Thread Sam Varshavchik
Stephen Smoogen writes: I am trying to figure out the logic of this section: ```     static char * lastUname = NULL; // So lastUname is NULL     static uid_t lastUid;     if (!thisUname) {         lastUname = rfree(lastUname); // lastUname should still be NULL and we are freeing NULL and

Re: rpmbuild core dumps

2023-12-28 Thread Stephen Smoogen
On Tue, 26 Dec 2023 at 07:32, Sam Varshavchik wrote: > Stephen Smoogen writes: > > > > > I am guessing the problem is really with the free(lastUname) since the > rfree > > Yes. Multiple execution threads will reach lastUname and try to free the > same pointer. glibc rightfully complains about

Re: rpmbuild core dumps

2023-12-26 Thread Sam Varshavchik
Stephen Smoogen writes: I am guessing the problem is really with the free(lastUname) since the rfree Yes. Multiple execution threads will reach lastUname and try to free the same pointer. glibc rightfully complains about the double-free. isn't referred to (but not sure if an optimization

Re: rpmbuild core dumps

2023-12-26 Thread Stephen Smoogen
On Mon, 25 Dec 2023 at 11:07, Stephen Smoogen wrote: > > > On Sun, 24 Dec 2023 at 15:51, Sam Varshavchik > wrote: > >> Stephen Smoogen writes: >> >> > »My apologies for bad quoting.. email from phone. What version of rpm >> build >> > is used and what are some packages which are rebuilt that

Re: rpmbuild core dumps

2023-12-25 Thread Sam Varshavchik
Sam Varshavchik writes: Looking at a diff between the 4.19.0 an 4.19.1 tags, a call to rpmfiStat() was added to fill_archive_entry(). The backtrace above shows the execution finding its way from rpmfiStat() into very-much-thread-unsafe code in rpmug.c That code is used only by

Re: rpmbuild core dumps

2023-12-25 Thread Sam Varshavchik
Stephen Smoogen writes:                 #1  0x7f05dd8588ee raise (libc.so.6 + 0x3e8ee)                 #2  0x7f05dd8408ff abort (libc.so.6 + 0x268ff)                 #3  0x7f05dd8417d0 __libc_message.cold (libc.so.6 + 0x277d0)                 #4  0x7f05dd8b47a5

Re: rpmbuild core dumps

2023-12-25 Thread Stephen Smoogen
On Sun, 24 Dec 2023 at 15:51, Sam Varshavchik wrote: > Stephen Smoogen writes: > > > »My apologies for bad quoting.. email from phone. What version of rpm > build > > is used and what are some packages which are rebuilt that show this > issue. > > This may be needed if the core dump is due to

Re: rpmbuild core dumps

2023-12-24 Thread Sam Varshavchik
Stephen Smoogen writes: »My apologies for bad quoting.. email from phone. What version of rpm build is used and what are some packages which are rebuilt that show this issue. This may be needed if the core dump is due to something else in the environment like memory limits etc  It's

Re: rpmbuild core dumps

2023-12-24 Thread Stephen Smoogen
My apologies for bad quoting.. email from phone. What version of rpm build is used and what are some packages which are rebuilt that show this issue. This may be needed if the core dump is due to something else in the environment like memory limits etc Stephen Smoogen, Red Hat Automotive Let us

rpmbuild core dumps

2023-12-24 Thread Sam Varshavchik
It seems that rpmbuild dumps core at the end of the build process, every once in a while. Typical: Wrote: /__w/courier-libs/courier-libs/courier-authlib/rpm/RPMS/x86_64/courier-authlib-userdb-debuginfo-0.72.0.20231223-101.fc39.x86_64.rpm Wrote: