On Sun, Jul 23, 2006 at 05:06:14PM +0200, Jiří Paleček <[EMAIL PROTECTED]> was 
heard to say:
> Just in case anybody reads this:
> 
> The problem is that after processing the first CD, download_install_manager
> calls apt_cache_close() in its finish() method. Then, the download  
> continues
> with the same download manager, which holds a reference to the dependency  
> cache
> which was deleted. The use of this cache causes the segfault.
> 
> Also, unless there is a reply in a month, i'll set the severity of this bug
> to serious, as it makes the package unusable for installing Debian from
> CD. However, I think it's easy to fix it.

  Could you please test the attached patch and tell me if it fixes this
problem?  I can't test this easily since I don't have CDs lying around.

    Thanks,
  Daniel
diff -rN -udp old-head-1/src/generic/apt/download_install_manager.cc 
new-head/src/generic/apt/download_install_manager.cc
--- old-head-1/src/generic/apt/download_install_manager.cc      2006-07-26 
21:33:38.000000000 -0700
+++ new-head/src/generic/apt/download_install_manager.cc        2006-07-26 
21:33:47.000000000 -0700
@@ -174,10 +174,10 @@ download_manager::result download_instal
 {
   result run_res = execute_install_run(res, progress);
 
-  apt_close_cache();
-
   if(run_res != do_again)
     {
+      apt_close_cache();
+
       if(log != NULL)
        log->Complete();
 

Attachment: signature.asc
Description: Digital signature

Reply via email to