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): apt-0.5.15cnc7-1 How reproducible: Always 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 :-(
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.
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.
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.
This is fixed in the version that landed in extras last week.