The following bug has been RESOLVED.
======================================================================
http://www.dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000141
======================================================================
Reported By:                ajordan
Assigned To:                aaron
======================================================================
Project:                    DBMail
Bug ID:                     141
Category:                   Command-Line programs (dbmail-users, dbmail-util)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
======================================================================
Date Submitted:             17-Dec-04 20:39 CET
Last Modified:              21-Dec-04 23:25 CET
======================================================================
Summary:                    dbmail-users - cannot add an alias
Description: 
When I try to add an alias using the dbmail-users utility, I get a
segmentation fault.
======================================================================

----------------------------------------------------------------------
 aaron - 17-Dec-04 20:57 CET 
----------------------------------------------------------------------
Does this actually have anything to do with adding an alias, or is it the
version / database check that's failing? Try doing something else with
dbmail-users, does anything work?

----------------------------------------------------------------------
 ajordan - 17-Dec-04 22:00 CET 
----------------------------------------------------------------------
It appears to be everything.  Humm...Although I can add a user without a
problem.

su-2.05b# dbmail-users -c username -m 200M
Opening connection to database...
Opening connection to authentication...
Ok. Connected
Segmentation fault (core dumped)

The above failed with the *exact* same messages in the TRACE=5 syslog
(/var/log/maillog) file.

----------------------------------------------------------------------
 aaron - 17-Dec-04 23:14 CET 
----------------------------------------------------------------------
Are you familiar with using gdb for debugging? If you can get a stack trace
of where exactly the segfault is occurring, it would help a lot.

Were you able to run 2.0.0 without trouble? Did you do the database
upgrade scripts to bring the tables up to 2.0 definitions? Did you build
DBMail and then upgrade MySQL to a later version?

----------------------------------------------------------------------
 aaron - 17-Dec-04 23:15 CET 
----------------------------------------------------------------------
Wait, dbmail-users -a foouser works? Can you then select foouser from the
dbmail_users table?

----------------------------------------------------------------------
 ajordan - 17-Dec-04 23:26 CET 
----------------------------------------------------------------------
I've uploaded a file showing me doing a select after adding a user.

Please note that there are a couple of extra fields in there...they were
used by exim and amavisd-new, but I am attempting to get rid of all of
those fields...I've just been too busy with other work to finish this task
yet.

I am not familiar with gdb, but I will try to figure it out.  I've been
wanting to do this anyways, it becomes helpful when using actively
developed applications.

----------------------------------------------------------------------
 aaron - 21-Dec-04 21:36 CET 
----------------------------------------------------------------------
How's the GDB work going? If you need more help with it, please join the
development mailing list. In debugging a problem, either someone with
knowledge of the code can reproduce the problem and thence debug it, or we
can impart some debugging knowledge onto the person with the problem and
help interpret the results into a fix!

----------------------------------------------------------------------
 ajordan - 21-Dec-04 22:05 CET 
----------------------------------------------------------------------
Please check the gdb_dbmail-users.txt file for GDB output.

----------------------------------------------------------------------
 aaron - 21-Dec-04 23:25 CET 
----------------------------------------------------------------------
Perfect backtrace. Got it. Fixed in CVS, both in HEAD and dbmail_2_branch.

Bug History
Date Modified  Username       Field                    Change              
======================================================================
17-Dec-04 20:39ajordan        New Bug                                      
17-Dec-04 20:39ajordan        File Added: db.txt                           
17-Dec-04 20:57aaron          Bugnote Added: 0000450                       
17-Dec-04 22:00ajordan        Bugnote Added: 0000451                       
17-Dec-04 23:14aaron          Bugnote Added: 0000452                       
17-Dec-04 23:15aaron          Bugnote Added: 0000453                       
17-Dec-04 23:23ajordan        File Added: dbmail-users_-a_foouser.txt           
         
17-Dec-04 23:26ajordan        Bugnote Added: 0000454                       
21-Dec-04 21:36aaron          Bugnote Added: 0000458                       
21-Dec-04 22:05ajordan        Bugnote Added: 0000459                       
21-Dec-04 22:05ajordan        File Added: gdb_dbmail-users.txt                  
  
21-Dec-04 23:25aaron          Bugnote Added: 0000460                       
21-Dec-04 23:25aaron          Assigned To               => aaron           
21-Dec-04 23:25aaron          Resolution               open => fixed       
21-Dec-04 23:25aaron          Status                   new => resolved     
======================================================================

Reply via email to