On 12/10/20 10:05 PM, Scott Andrews wrote:
Just built and installed rpm 4.16.1.....
Tried building an rpm with rpmbuild...
My script creates rootfilesystem-9.0-1.src.rpm then uses rpmbuild
--rebuild to build it
free(): invalid pointer
/bin/sh: line 2: 29496 Aborted rpmbuild -bs SPECS/rootfilesystem.spec
Installing ../SRPMS/rootfilesystem-9.0-1.src.rpm warning: Could not
canonicalize hostname: raspberrypi free(): invalid pointer
/bin/sh: line 1: 29500 Aborted rpmbuild --rebuild
SRPMS/rootfilesystem-*.src.rpm
> reinstalled rpm 4.16.0 and I have no error and it just works
Oh, bollocks.
Yeah I can see the flaw in I
https://github.com/rpm-software-management/rpm/commit/c223d84fbf1ebb7a862f297e65878a2a78653e8e
now. Ordinarily I would've placed freeaddrinfo() on the success path,
but this is what the man-page example seemed to do (it doesn't) and I'd
just run across sqlite leaking memory if a handle is not freed on error...
This calls for a brown paperbag update, will do so next week I guess. In
the meanwhile you can avoid the crash by either fixing the network
config to make hostname resolvable, or work around by manually setting
%_buildhost via macro.
Thanks for reporting!
- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list