gmond crashes when an NFS mount is active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ganglia (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Reed Loden | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[IMPACT]
* Current gmond crashes when an NFS mount is active due to stack corruption detection complaining about |
sscanf(procline, "%s %s %s %s ", device, mount, type, mode);| when used with too small buffers.
* Fixed three years ago upstream (https:/
* Red Hat already backported a fix a year ago (https:/
[TESTCASE]
* Make sure the ganglia moddisk.so module is loaded.
* Use NFS for some disk mount
* Start gmond (`gmond -f`)
* Ensure no crash for "stack smashing detected"
[Regression Potential]
* None known...
Previous description:
root@mymachine:
Description: Ubuntu 11.10
Release: 11.10
root@mymachine# apt-cache policy ganglia-monitor
ganglia-monitor:
Installed: 3.1.7-2
Candidate: 3.1.7-2
Version table:
*** 3.1.7-2 0
500 http://
100 /var/lib/
What I expected to happen: gmond should stay running regardless of whether I mount an NFS mount
What actually happened: gmond crashes when the system has an NFS mount active.
It looks like a manifestation of this behavior:
http://<email address hidden>
With NFS mount:
root@mymachine# /usr/sbin/gmond -f -c /etc/ganglia/
*** stack smashing detected ***: /usr/sbin/gmond terminated
======= Backtrace: =========
/lib/i386-
/lib/i386-
/usr/lib/
/usr/lib/
[0x746e756f]
======= Memory map: ========
08048000-08055000 r-xp 00000000 08:06 659247 /usr/sbin/gmond
08055000-08056000 r--p 0000c000 08:06 659247 /usr/sbin/gmond
08056000-08057000 rw-p 0000d000 08:06 659247 /usr/sbin/gmond
08057000-08058000 rw-p 00000000 00:00 0
09495000-094b6000 rw-p 00000000 00:00 0 [heap]
b72ad000-b72c9000 r-xp 00000000 08:06 1967034 /lib/i386-
b72c9000-b72ca000 r--p 0001b000 08:06 1967034 /lib/i386-
b72ca000-b72cb000 rw-p 0001c000 08:06 1967034 /lib/i386-
b72e1000-b72ec000 r-xp 00000000 08:06 1967054 /lib/i386-
b72ec000-b72ed000 r--p 0000a000 08:06 1967054 /lib/i386-
b72ed000-b72ee000 rw-p 0000b000 08:06 1967054 /lib/i386-
b72ee000-b72f8000 r-xp 00000000 08:06 1967058 /lib/i386-
b72f8000-b72f9000 r--p 00009000 08:06 1967058 /lib/i386-
b72f9000-b72fa000 rw-p 0000a000 08:06 1967058 /lib/i386-
b72fa000-b730f000 r-xp 00000000 08:06 1967048 /lib/i386-
b730f000-b7310000 r--p 00015000 08:06 1967048 /lib/i386-
b7310000-b7311000 rw-p 00016000 08:06 1967048 /lib/i386-
b7311000-b7313000 rw-p 00000000 00:00 0
b7321000-b7329000 rw-p 00000000 00:00 0
b7329000-b732f000 r-xp 00000000 08:06 787490 /usr/lib/
b732f000-b7330000 r--p 00005000 08:06 787490 /usr/lib/
b7330000-b7341000 rw-p 00006000 08:06 787490 /usr/lib/
b7341000-b7349000 rw-p 00000000 00:00 0
b7349000-b734f000 r-xp 00000000 08:06 787489 /usr/lib/
b734f000-b7350000 r--p 00005000 08:06 787489 /usr/lib/
b7350000-b7361000 rw-p 00006000 08:06 787489 /usr/lib/
b7361000-b7369000 rw-p 00000000 00:00 0
b7369000-b736f000 r-xp 00000000 08:06 787486 /usr/lib/
b736f000-b7370000 r--p 00005000 08:06 787486 /usr/lib/
b7370000-b7381000 rw-p 00006000 08:06 787486 /usr/lib/
b7381000-b7389000 rw-p 00000000 00:00 0
b7389000-b738f000 r-xp 00000000 08:06 787485 /usr/lib/
b738f000-b7390000 r--p 00005000 08:06 787485 /usr/lib/
b7390000-b73a1000 rw-p 00006000 08:06 787485 /usr/lib/
b73a1000-b73a9000 rw-p 00000000 00:00 0
b73a9000-b73af000 r-xp 00000000 08:06 787483 /usr/lib/
b73af000-b73b0000 r--p 00005000 08:06 787483 /usr/lib/
b73b0000-b73c1000 rw-p 00006000 08:06 787483 /usr/lib/
b73c1000-b73c9000 rw-p 00000000 00:00 0
b73c9000-b73cf000 r-xp 00000000 08:06 787484 /usr/lib/
b73cf000-b73d0000 r--p 00005000 08:06 787484 /usr/lib/
b73d0000-b73e1000 rw-p 00006000 08:06 787484 /usr/lib/
b73e1000-b73e9000 rw-p 00000000 00:00 0
b73e9000-b73ef000 r-xp 00000000 08:06 787482 /usr/lib/
b73ef000-b73f0000 r--p 00005000 08:06 787482 /usr/lib/
b73f0000-b7401000 rw-p 00006000 08:06 787482 /usr/lib/
b7401000-b740b000 rw-p 00000000 00:00 0
b740c000-b740d000 r--p 0043a000 08:06 662632 /usr/lib/
b740d000-b744d000 r--p 002bd000 08:06 662632 /usr/lib/
b744d000-b764d000 r--p 00000000 08:06 662632 /usr/lib/
b764d000-b764e000 rw-p 00000000 00:00 0
b764e000-b7651000 r-xp 00000000 08:06 1967024 /lib/i386-
b7651000-b7652000 r--p 00002000 08:06 1967024 /lib/i386-
b7652000-b7653000 rw-p 00003000 08:06 1967024 /lib/i386-
b7653000-b7657000 r-xp 00000000 08:06 1967092 /lib/i386-
b7657000-b7658000 r--p 00003000 08:06 1967092 /lib/i386-
b7658000-b7659000 rw-p 00004000 08:06 1967092 /lib/i386-
b7659000-b765a000 rw-p 00000000 00:00 0
b765a000-b7680000 r-xp 00000000 08:06 1967029 /lib/i386-
b7680000-b7681000 ---p 00026000 08:06 1967029 /lib/i386-
b7681000-b7683000 r--p 00026000 08:06 1967029 /lib/i386-
b7683000-b7684000 rw-p 00028000 08:06 1967029 /lib/i386-
b7684000-b77fa000 r-xp 00000000 08:06 1967013 /lib/i386-
b77fa000-b77fc000 r--p 00176000 08:06 1967013 /lib/i386-
b77fc000-b77fd000 rw-p 00178000 08:06 1967013 /lib/i386-
b77fd000-b7800000 rw-p 00000000 00:00 0
b7800000-b7817000 r-xp 00000000 08:06 1967073 /lib/i386-
b7817000-b7818000 r--p 00016000 08:06 1967073 /lib/i386-
b7818000-b7819000 rw-p 00017000 08:06 1967073 /lib/i386-
b7819000-b781b000 rw-p 00000000 00:00 0
b781b000-b784e000 r-xp 00000000 08:06 672170 /usr/lib/
b784e000-b784f000 r--p 00032000 08:06 672170 /usr/lib/
b784f000-b7850000 rw-p 00033000 08:06 672170 /usr/lib/
b7850000-b785a000 r-xp 00000000 08:06 672024 /usr/lib/
b785a000-b785b000 r--p 00009000 08:06 672024 /usr/lib/
b785b000-b785c000 rw-p 0000a000 08:06 672024 /usr/lib/
b785c000-b785d000 rw-p 00000000 00:00 0
b785d000-b789a000 r-xp 00000000 08:06 1967070 /lib/i386-
b789a000-b789b000 r--p 0003c000 08:06 1967070 /lib/i386-
b789b000-b789c000 rw-p 0003d000 08:06 1967070 /lib/i386-
b789c000-b78ae000 r-xp 00000000 08:06 668473 /usr/lib/
b78ae000-b78af000 r--p 00011000 08:06 668473 /usr/lib/
b78af000-b78b1000 rw-p 00012000 08:06 668473 /usr/lib/
b78b1000-b78b9000 r-xp 00000000 08:06 1967050 /lib/i386-
b78b9000-b78ba000 r--p 00007000 08:06 1967050 /lib/i386-
b78ba000-b78bb000 rw-p 00008000 08:06 1967050 /lib/i386-
b78bb000-b78c9000 rw-p 00000000 00:00 0
b78c9000-b78ca000 r-xp 00000000 00:00 0 [vdso]
b78ca000-b78e8000 r-xp 00000000 08:06 1967000 /lib/i386-
b78e8000-b78e9000 r--p 0001d000 08:06 1967000 /lib/i386-
b78e9000-b78ea000 rw-p 0001e000 08:06 1967000 /lib/i386-
bfa4b000-bfa6c000 rw-p 00000000 00:00 0 [stack]
Aborted
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ganglia-monitor 3.1.7-2 [modified: usr/share/
ProcVersionSign
Uname: Linux 3.0.0-14-
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Sun Jan 1 16:45:03 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ganglia
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.