Bug 497671 - router segfaults
Summary: router segfaults
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jabberd
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Adrian Reber
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-26 00:18 UTC by Matěj Cepl
Modified: 2018-04-11 17:33 UTC (History)
4 users (show)

Fixed In Version: 2.2.8-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-27 21:36:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
use size_t stead of int for gsasl calls (716 bytes, patch)
2009-06-18 15:45 UTC, Christof Efkemann
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Launchpad 367783 0 None None None Never

Description Matěj Cepl 2009-04-26 00:18:24 UTC
Description of problem:
router segfaults after just basic configuration of jabberd (according to http://jabberd2.xiaoka.com/wiki/InstallGuide/BasicConfiguration).

Version-Release number of selected component (if applicable):
jabberd-2.2.7.1-2.fc11.x86_64

How reproducible:
100%

Steps to Reproduce:
1. service jabberd stop
2.ulimit -c unlimited ; router -D
3.service jabberd start
  
Actual results:
service jabberd status says that router doesn't run, but the subsystem is locked

Expected results:
all subsystems of jabberd should run

Additional info:

Comment 1 Matěj Cepl 2009-04-26 00:31:43 UTC
Gosh, and then I forgot to paste the backtrace:

Core was generated by `router -D'.
Program terminated with signal 11, Segmentation fault.
#0  _sx_chain_io_read (s=0x19e7ff0, buf=0x1c19350) at chain.c:95
95	    for(scan = s->rio; scan != NULL; scan = scan->rnext)

Thread 1 (Thread 10456):
#0  _sx_chain_io_read (s=0x19e7ff0, buf=0x1c19350) at chain.c:95
#1  0x00000000004094d3 in sx_can_read (s=0x19e7ff0) at io.c:222
#2  0x0000000000404fa9 in router_mio_callback (m=0x19e7e50, 
    a=<value optimized out>, fd=0x19df9c0, data=0x0, arg=0x19dfa90)
    at router.c:866
#3  0x00000000004105e4 in _mio_run (m=0x19e7e50, timeout=<value optimized out>)
    at mio_impl.h:257
#4  0x0000000000404550 in main (argc=<value optimized out>, 
    argv=<value optimized out>) at main.c:420

In /var/log/messages I have message:

Apr 26 02:18:39 viklef kernel: router[10969]: segfault at 10 ip 000000000040f560 sp 00007fffa7198940 error 4 in router[400000+20000]

Comment 2 Adrian Reber 2009-04-27 08:04:06 UTC
Copied to upstream bugtracker.

Comment 3 Adrian Reber 2009-04-27 09:03:26 UTC
From launchpad:

Could you print the value of:
s
s->rio
scan
scan->rnext

Comment 4 Matěj Cepl 2009-04-27 16:17:55 UTC
Answering upstream

Comment 5 Bug Zapper 2009-06-09 14:35:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Johan Cwiklinski 2009-06-15 16:58:32 UTC
I've just installed 2.1.7 version, and I've tried to rebuild 2.1.8 one... Same issue :/

Upstream does not seems to know what is the problem and/or how to repair it : 
https://bugs.launchpad.net/jabberd2/+bug/367783

The only solution I've found for now to get my jabberd server running under F-11 is to rebuild the latest F-10 version (2.2.4) :-(

Comment 7 Christof Efkemann 2009-06-18 15:45:45 UTC
Created attachment 348504 [details]
use size_t stead of int for gsasl calls

This patch fixes the bug. The problem was the type of the len variable. It was 4 bytes (int), but on 64-bit platforms it has to be 8 bytes (size_t), because that is what libgsasl expects (it gets passed a pointer to len).

Comment 8 Adrian Reber 2009-06-19 11:42:22 UTC
Thanks for the patch. I have updated jabberd to 2.2.8 on the devel branch and included your patch.

I will update jabberd on the other branches also in the next few days.

Comment 9 Matěj Cepl 2009-06-19 12:02:08 UTC
I have just tried to apply the patch myself for F11 and it seems to work. Thank you.

Comment 10 Johan Cwiklinski 2009-07-05 07:11:41 UTC
I also have rebuild RPM for 2.2.8 on F-11-x86_64 with patch applied : that works fine :-)

Many thanks.

Comment 11 Matěj Cepl 2009-07-05 13:55:54 UTC
(In reply to comment #9)
> I have just tried to apply the patch myself for F11 and it seems to work. Thank
> you.  

bradford:~$ date -I
2009-07-05
bradford:~$ sudo yum list jabberd\*
Loaded plugins: allowdowngrade, changelog, presto, refresh-packagekit, remove-
              : with-leaves
Available Packages
jabberd.x86_64                       2.2.7.1-2.fc11             fedora          
jabberd-debuginfo.x86_64             2.2.7.1-2.fc11             fedora-debuginfo
bradford:~$

Comment 12 Matěj Cepl 2009-07-05 13:56:54 UTC
So, given this is filed against F11, this bug should certainly not be VERIFIED.

Comment 13 Adrian Reber 2009-07-05 15:45:22 UTC
I am not 100% sure, but I assume this means that I should finally upgrade jabberd for F11 ;-)

It is building right now and will push the update as soon as possible. Sorry for the delay.

Comment 14 Fedora Update System 2009-07-05 15:45:47 UTC
jabberd-2.2.8-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/jabberd-2.2.8-2.fc11

Comment 15 Fedora Update System 2009-07-11 17:08:35 UTC
jabberd-2.2.8-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update jabberd'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7454

Comment 16 Fedora Update System 2009-07-27 21:36:47 UTC
jabberd-2.2.8-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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