I think crash happens because code snippet below (from apt-
pkg/deb/dpkgpm.cc:656) does not check if history_out is valid.
string history_name = flCombine(_config->FindDir("Dir::Log"),
_config->Find("Dir::Log::History"));
if (!history_name.empty())
{
FILE *history_out = fopen(history_name.c_str(),"a");
fprintf(history_out, "End-Date: %s\n", timestr);
fclose(history_out);
}
Problem gets triggered for me because my Dir::Log directory does not
exists, due to the fact I've mounted my /var/log to a tmpfs.
$apt-config dump
...
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
...
I can confirm issue has disappeared after I've created directory
manually.
--
apt-get crashed with SIGSEGV in __fprintf_chk()
https://bugs.launchpad.net/bugs/506342
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs