elmo crashes on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elmo (Ubuntu) |
Fix Released
|
High
|
MOTU Reviewers Team |
Bug Description
$ elmo
Segmentation fault
I tried the problem to this code in ask.c:
result->cd = confhold_open (name);
if (result->cd == -1){
and this code in confhold.c:
confhold_close (int cd)
{
}
notice that the 'cd' argument to confhold_close is -1. that's used as an array index, which overwrites the value of variable_table:
from confhold.c:
static conf_t conf_table[
static htable_t *variable_table = NULL;
Removing the call to confhold_close fixes this bug:
--- Backup/ask.c.~1~ 2004-06-13 22:07:54.000000000 +0200
+++ ask.c 2005-10-14 03:43:24.000000000 +0200
@@ -143,7 +143,6 @@
result->cd = confhold_open (name);
if (result->cd == -1){
- confhold_close (result->cd);
}
do you have a backtrace of the crash? A rebuild fixes the issue with the current package