Bug 155990 - apt-shell crashes while executing "install kernel"
apt-shell crashes while executing "install kernel"
Product: Fedora
Classification: Fedora
Component: apt (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2005-04-26 10:19 EDT by Stefan Hoelldampf
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 0.5.15cnc7-6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-27 14:29:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix the segfault (846 bytes, patch)
2005-04-28 11:51 EDT, Panu Matilainen
no flags Details | Diff

  None (edit)
Description Stefan Hoelldampf 2005-04-26 10:19:20 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Description of problem:
apt-shell crashes while executing "install kernel".

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start apt-shell as root
2. Type "install kernel"

Actual Results:  > # apt-shell
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Welcome to the APT shell. Type "help" for more information.
> apt> install kernel
> Package kernel is a virtual package provided by:
> Segmentation fault
> # 

Expected Results:  No segmentation fault

Additional info:

"apt-get install kernel" does not crash:

> # apt-get install kernel
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Selecting kernel#2.6.11-1.14_FC3 for 'kernel'
> kernel#2.6.11-1.14_FC3 is already the newest version.
> 0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

I have tried to debug apt using the debuginfo-package and DDD.
apt-shell crashes when calling
   bool Res = Map[I].Handler(*this);
in contrib/cmndline.cc:340 in function
   bool CommandLine::DispatchArg(Dispatch *Map,bool NoMatch)

Unfortunately, GDB crashes itself if I try to step into the funtions :-(
Comment 1 Panu Matilainen 2005-04-28 11:51:22 EDT
Created attachment 113791 [details]
Fix the segfault 

This patch fixes the segfault which was simply caused by just apt-shell having
older buggy copy-pasted code of apt-get.
Comment 2 Panu Matilainen 2005-04-28 11:55:22 EDT
Ville - please add the patch to FE CVS. Dunno if this alone is worth an actual
update, maybe it is because segfaults from package managers aren't nice :-/
Oh and the patch is already in apt-rpm upstream as well.
Comment 3 Ville Skyttä 2005-04-28 16:58:52 EDT
Done for both FC-3 and devel.  You decide whether an update is needed, just go
and add apt to the FC3Status and FC4Status queues if so.
Comment 4 Panu Matilainen 2005-06-27 14:29:28 EDT
This is fixed in the version that landed in extras last week.

Note You need to log in before you can comment on or make changes to this bug.