smcroute daemon segfaults on precise-i386

Bug #1043688 reported by Robert Karsai
60
This bug affects 9 people
Affects Status Importance Assigned to Milestone
smcroute (Debian)
Fix Released
Unknown
smcroute (Ubuntu)
Fix Released
Undecided
Micha Lenk

Bug Description

Multicast routing daemon "smcroute" segfaults during startup:
---
root@betazed:~# smcroute -d -v -D
smcroute, Version 0.95, Build 111018
Copyright 2001-2005 Carsten Schill <email address hidden>
Copyright 2006-2009 Julien Blache <email address hidden>,
                    Todd Hayton <email address hidden>, and
                    Micha Lenk <email address hidden>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

Segmentation fault (core dumped)
---
It seems that this happens only when you have more than one multicast capable network interface. It just starts OK with only one eth interface, but when there is a second multicast capable interface - it segfaults. Compiled from the latest source (https://github.com/troglobit/smcroute/zipball/1.99.0 -- version 1.99 vs. 0.95 in the repo) it is just OK.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: smcroute 0.95-1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic-pae 3.2.24
Uname: Linux 3.2.0-29-generic-pae i686
ApportVersion: 2.0.1-0ubuntu12
Architecture: i386
Date: Thu Aug 30 10:19:56 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
SourcePackage: smcroute
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robert Karsai (karsai-robert) wrote :
description: updated
Revision history for this message
Micha Lenk (micha) wrote :

I will take a closer look in the next few days.

Changed in smcroute (Ubuntu):
status: New → Confirmed
assignee: nobody → Micha Lenk (micha)
Revision history for this message
Dirk De Schepper (deschepper) wrote :

I'll be happy to provide logs or coredumps if it helps. I have been using smcroute on Ubuntu 12.04.01 for about 6 months without issue. It is a crucial component on my system.

Revision history for this message
Frederik Kriewitz (freddy436) wrote :

I've the same problem with version 0.95-1 in a setup with multiple vlan devices.
Using the previous version 0.94.1-1 solved the issue for me, so this is actually a regression.

Revision history for this message
Frederik Kriewitz (freddy436) wrote :

Backtrace with debugging symbols:
Starting program: /usr/sbin/smcroute -d

Program received signal SIGSEGV, Segmentation fault.
0x000000000040281c in buildIfVc () at ifvc.c:53
53 ifvc.c: No such file or directory.
(gdb) bt
#0 0x000000000040281c in buildIfVc () at ifvc.c:53
#1 0x000000000040172d in ServerLoop () at smcroute.c:189
#2 0x000000000040154e in main (ArgCn=<optimized out>, ArgVc=0x7fffffffe6c8) at smcroute.c:487

Revision history for this message
Micha Lenk (micha) wrote :

Frederik,

from reading the backtrace, do I conclude correctly that you have an interface without any configured IP address?

Regards,
Micha

Revision history for this message
Micha Lenk (micha) wrote :

I've just committed a suggested fix and pushed it to https://code.launchpad.net/~micha/ubuntu/precise/smcroute/lp1043688

I also created a PPA that should contain a fixed package soon:
https://launchpad.net/~micha/+archive/smcroute-backports

If you're trying this package, please report back whether that fixes the issue for you.

Regards,
Micha

Changed in smcroute (Debian):
status: Unknown → New
Changed in smcroute (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package smcroute - 0.95-2

---------------
smcroute (0.95-2) unstable; urgency=low

  * Switch to dpkg-source 3.0 (quilt) format for easier patch maintenance.
  * Added patch 01_fix_segfault.patch to fix a NULL pointer dereferencing in
    interface vector initialization (closes: #707793, LP: #1043688).

 -- Micha Lenk <email address hidden> Wed, 22 May 2013 13:41:51 +0200

Changed in smcroute (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.