Bug 24661 - Segmentation fault
Summary: Segmentation fault
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 21:17 MSK by Dmitry A. Kharitonov
Modified: 2014-08-27 13:31 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A. Kharitonov 2010-11-28 21:17:11 MSK
При указании в конфиге не правильного параметра APT::Cache-Limit "50*1024*1024"
не выводит сообщение об ошибке и сегфолтится.

$ cat /etc/apt/apt.conf 
/*
 * This is the main configuration file for the APT suite of tools,
 * see apt.conf(5) for details.
 */

// See apt-cdrom(8) for details.
Acquire::CDROM::Copy "true";
Acquire::CDROM::mount "/media/cdrom";
APT::Cache-Limit "50*1024*1024";

RPM 
{
        Allow-Duplicated {
                // Old-style kernels.
                "^(NVIDIA_)?(kernel|alsa)[0-9]*(-adv|-linus)?($|-up|-smp|-secure|-custom|-enterprise|-BOOT|-tape|-aureal)";
                // New-style kernels.
                "^kernel-(image|modules)-.*";
        };
        Hold {
                // Old-style kernels.
                "^(kernel|alsa)[0-9]+-source";
        };
};

$ sudo apt-get --reinstall update
Ошибка сегментирования.. 0%
Comment 1 Michael Shigorin 2014-08-27 12:38:34 MSK
"не делайте так"? :)
Comment 2 Gleb F-Malinovskiy 2014-08-27 13:31:32 MSK
(In reply to comment #0)
> APT::Cache-Limit "50*1024*1024";

Просто, 50 байт -- это уж как-то совсем мало. А прочитало оно, похоже, именно так -- до первого лишнего символа.