Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1500940

Summary: dnf install - invalid pointer in free() causing basically a core dump on long command line
Product: [Fedora] Fedora Reporter: Michael D. Parker <michael.d.parker>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 26CC: dmach, ignatenko, jmracek, mhatina, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-12 07:27:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
DNF Session output and listing of packages none

Description Michael D. Parker 2017-10-11 19:27:55 UTC
Created attachment 1337398 [details]
DNF Session output and listing of packages

Description of problem:
When using dnf install `cat file` with a large number of package names (about 450 items give or take), the program coredumps with an invalid pointer


Version-Release number of selected component (if applicable):
System is fully patched/updated to the current release as of 10/11/2017 @ 1200 PDT
dnf - 2.7.3
kernel - Linux pnf 4.13.5-200.fc26.x86_64 #1 SMP Thu Oct 5 16:53:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
python3 - 3.6.2


How reproducible:
VERY

Steps to Reproduce:
1. get a list of a number of files to install and put into file (something like python3\* -- see attachment).  Note this fails on other long package selections not only python3
2. dnf install `cat filename`
3. NOTE: Keeping selection size under about 400 packages seems to keep dnf happy.

Actual results:


Expected results:
Should provide errors or conflicts (if any) or proceed to user verification of package selection.


Additional info:
See attachment for a test file used and the session output from dnf.

Comment 1 Igor Gnatenko 2017-10-12 07:27:22 UTC

*** This bug has been marked as a duplicate of bug 1498207 ***