lxc-autostart crashed with SIGSEGV in strlen()

Bug #1277450 reported by Mathieu Trudel-Lapierre
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Mathieu Trudel-Lapierre

Bug Description

Crashes on any run of lxc-autostart -L (in the lxc.conf upstart job) on mako / maguro (in Ubuntu Touch on armhf)

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.0~beta4-0ubuntu1
ProcVersionSignature: Error: [Errno 2] No such file or directory: '/proc/version_signature'
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.13.2-0ubuntu2
Architecture: armhf
Date: Fri Feb 7 10:09:53 2014
ExecutablePath: /usr/bin/lxc-autostart
InstallationDate: Installed on 2014-02-07 (0 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20140207)
ProcCmdline: console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 uart_console=enable lcd_maker_id=primary lge.hreset=off lge.reset=mode_reset gpt=enable lge.kcal=0|0|0|x lge.rev=rev_11 androidboot.emmc=true androidboot.serialno=01a915b7d68ff760 androidboot.bootloader=MAKOZ20i androidboot.baseband=mdm bootreason=reboot
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
Signal: 11
SourcePackage: lxc
StacktraceTop:
 strlen () from /lib/arm-linux-gnueabihf/libc.so.6
 build_log_path (lxcpath=0x0, name=0x0) at log.c:208
 _lxc_log_set_file (name=name@entry=0x0, lxcpath=0x0, create_dirs=0) at log.c:279
 lxc_log_init (name=0x0, file=0x0, priority=0x0, prefix=0x400d047c "lxc-autostart", quiet=0, lxcpath=0x40d48040 "/var/lib/lxc") at log.c:336
 main (argc=<optimized out>, argv=<optimized out>) at lxc_autostart.c:226
Title: lxc-autostart crashed with SIGSEGV in strlen()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx
upstart.lxc-net.override: manual

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
information type: Private → Public
Changed in lxc (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I'm fixing this since it's so obvious... package is building in sbuild right now, will test and upload shortly.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Actually, even better yet, the new patched attached.

Otherwise:
# lxc-autostart -L
lxc-autostart: could not build log path
lxc-autostart: could not build log path
lxc-autostart: could not build log path

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 1.0.0~beta4-0ubuntu2

---------------
lxc (1.0.0~beta4-0ubuntu2) trusty; urgency=medium

  * debian/patches/dont_crash_log_init.patch: don't crash if no name is passed
    to lxc_log_init(), such as is the case with lxc-autostart. (LP: #1277450)
 -- Mathieu Trudel-Lapierre <email address hidden> Fri, 07 Feb 2014 07:06:50 -0500

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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