Bug 179239 - Sudden segfault for elmo
Summary: Sudden segfault for elmo
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: elmo
Version: 4
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Aurelien Bompard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-28 20:57 UTC by Piergiorgio Sartor
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-13 15:51:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Piergiorgio Sartor 2006-01-28 20:57:54 UTC
Description of problem:
Immediate "Segmentation fault" of "elmo", once started from command line.

Version-Release number of selected component (if applicable):
1.2.0-4

How reproducible:
Well, on my machine it crashes always when launched.

Steps to Reproduce:
1. start elmo from console
2.
3.
  
Actual results:
Segmentation fault

Expected results:
The program should run, somehow, I guess

Additional info:
a gdb elmo backtracing produced the following:

Program received signal SIGSEGV, Segmentation fault.
0x08052662 in ?? ()
(gdb) bt
#0  0x08052662 in ?? ()
#1  0x08071a79 in ?? ()
#2  0x0804ade9 in ?? ()
#3  0x462c1d5f in __libc_start_main () from /lib/libc.so.6
#4  0x0804aac1 in ?? ()

glibc is 2.3.5-10.3 for i686 architecture, running on a Pentium III-S 1.4GHz.

It might be a glibc issue or some missing item which is not reported in
the dependencies.
elmo was installed using yum, so everything should have worked correctly.
The console is a gnome terminal, running under metacity (it should not
matter anyway, I hope).

Comment 1 Michael Schwendt 2006-01-29 12:49:13 UTC
For the stack trace you're missing the elmo-debuginfo package from the
"debug" repository:

#0  0x08052662 in htable_insert (table=0x1, key=0x807cd2d "addressbook", 
    content=0x1) at hash.c:201
#1  0x08071a79 in confhold_register (name=0x807cd2d "addressbook", 
    fieldcount=0) at confhold.c:231
#2  0x0804ade9 in main (argc=1, argv=0xbfa01db4) at elmo.c:199
#3  0x008c9d5f in __libc_start_main () from /lib/libc.so.6
#4  0x0804aac1 in _start ()

Comment 2 Michael Schwendt 2006-01-29 12:53:34 UTC
The program has pretty bad bugs. In ask.c in ask_select_default(..)
lines 142 and 143 it writes into an array using a negative index:

    if (result->cd == -1){
        confhold_close (result->cd);

Look what is done when cd is -1:

  void
  confhold_close (int cd)
  {
          conf_table[cd].unused = 1;
  }

This overwrites the pointer to a variable_table, causing this
crash. If patched, elmo starts fine, but crashes elsewhere due to
similar malfunctioning code.


Comment 3 Piergiorgio Sartor 2006-01-30 21:25:07 UTC
Never mind, I just uninstalled elmo.

Comment 4 Aurelien Bompard 2006-02-13 15:51:24 UTC
The elmo project is dead. I'll ask to remove elmo from the repository

Comment 5 Ville Skyttä 2006-02-17 06:36:51 UTC
Should it also be marked as orphaned?  Not removed yet.

Comment 6 Aurelien Bompard 2006-02-22 17:18:04 UTC
Orphaned now.


Note You need to log in before you can comment on or make changes to this bug.