mongosniff crashes on start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Ubuntu) |
Fix Released
|
Medium
|
Joshua Powers | ||
Xenial |
Won't Fix
|
Medium
|
Joshua Powers | ||
Yakkety |
Won't Fix
|
Medium
|
Joshua Powers |
Bug Description
== Begin SRU Template ==
[Impact]
* mongosniff crashes when it receives messages with no namespace. The result is that a user cannot even press only the enter key without the mongosniff application crashing.
* mongosniff in Xenial and Yakkety is essentially broken currently because of a check in the code that gets the message namespace, but if there is no namespace it crashes.
[Test Case]
* lxc launch ubuntu-daily:xenial xenial
* lxc exec xenial bash
* apt install mongodb
* mongosniff --source NET lo
* # Open a 2nd terminal and run the following
* lxc exec xenial bash
* mongo
* # press enter a few times or type 'help'
* # Observe mongosniff abort, with a core dump, in the first window
[Regression Potential]
* Users currently experiencing this issue would be expecting a SRU fix to come from us as the application is broken in a major way.
* The only work around it would would require rebuilding mongodb from source with the fix to resolve the issue.
* The change was limited to the mongosniff source code only.
[Other Info]
Ubuntu:
* Xenial x64
Packages:
#user@localhost:~$ for i in `dpkg --get-selection
* mongodb 2.6.10-0ubuntu1
* mongodb-clients 2.6.10-0ubuntu1
* mongodb-server 2.6.10-0ubuntu1
----
Steps to reproduce:
1. start service
2. start sniffer
3. start shell
4. crash sniffer
---
user@localhost:~$ sudo service mongodb start
user@localhost:~$ mongo
MongoDB shell version: 2.6.10
connecting to: test
(...)
user@localhost:~$ sudo mongosniff --source NET lo
sniffing... 27017
127.0.0.1:37522 -->> 127.0.0.1:27017 admin.$cmd 60 bytes id:0 0
query: { whatsmyuri: 1 } ntoreturn: 1 ntoskip: 0
2016-05-
2016-05-
mongosniff(
mongosniff(
mongosniff(
mongosniff() [0x86aca8]
mongosniff(
/usr/lib/
/usr/lib/
/usr/lib/
mongosniff(
mongosniff(
/lib/x86_
mongosniff(
terminate called after throwing an instance of 'mongo:
what(): assertion src/mongo/
Aborted (core dumped)
user@localhost:~$
Changed in mongodb (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in mongodb (Ubuntu Trusty): | |
status: | New → Invalid |
Changed in mongodb (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in mongodb (Ubuntu Yakkety): | |
status: | New → In Progress |
Changed in mongodb (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in mongodb (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in mongodb (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in mongodb (Ubuntu Trusty): | |
assignee: | nobody → Joshua Powers (powersj) |
Changed in mongodb (Ubuntu Yakkety): | |
assignee: | nobody → Joshua Powers (powersj) |
Changed in mongodb (Ubuntu Xenial): | |
assignee: | nobody → Joshua Powers (powersj) |
description: | updated |
description: | updated |
no longer affects: | mongodb (Ubuntu Trusty) |
Changed in mongodb (Ubuntu Yakkety): | |
status: | Invalid → Won't Fix |
it appears to be this bug https:/ /jira.mongodb. org/browse/ SERVER- 14843