nbd-server crash when checking the port with check_tcp

Bug #1195443 reported by Marc Gariépy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nbd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When trying to do monitoring with check_tcp on a nagios server, the nbd-server process crash when the check is perform.

how to reproduce:
1- install nbd-server
2- install nagios-plugins-basic
3- Create the nbd configuration file : /etc/nbd-server/conf.d/ltsp_i386.conf
===============================
[ltsp_i386]
exportname = /opt/ltsp/images/i386.img
readonly = true
===============================
4- start nbd-server : /etc/init.d/nbd-server start
5- /usr/lib/nagios/plugins/check_tcp -p 10809
6- notice the nbd-server is gone

I have the same issue on ubuntu 12.04 and 13.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nbd (Ubuntu):
status: New → Confirmed
Revision history for this message
Marc Gariépy (mgariepy) wrote :

# strace -p 16636 -f -s 1500
Process 16636 attached - interrupt to quit
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
accept(4, {sa_family=AF_INET, sin_port=htons(46054), sin_addr=inet_addr("X.X.X.X")}, [16]) = 5
write(5, "NBDMAGIC", 8) = 8
write(5, "IHAVEOPT", 8) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 16636 detached

Revision history for this message
Wouter Verhelst (wouter-debian) wrote : Re: [Bug 1195443] Re: nbd-server crash when checking the port with check_tcp

On 27-06-13 21:50, Marc Gariépy wrote:
> # strace -p 16636 -f -s 1500
> Process 16636 attached - interrupt to quit
> select(5, [4], NULL, NULL, NULL) = 1 (in [4])
> accept(4, {sa_family=AF_INET, sin_port=htons(46054), sin_addr=inet_addr("X.X.X.X")}, [16]) = 5
> write(5, "NBDMAGIC", 8) = 8
> write(5, "IHAVEOPT", 8) = -1 EPIPE (Broken pipe)
> --- SIGPIPE (Broken pipe) @ 0 (0) ---
> Process 16636 detached
>
This looks like a bug that has been fixed in the latest upstream code
(which has not been released yet).

Could you fetch the source from git (probably easiest to do through the
github mirror: https://github.com/yoe/nbd), compile that, and see if you
can reproduce this issue?

Thanks,

--
This end should point toward the ground if you want to go to space.

If it starts pointing toward space you are having a bad problem and you
will not go to space today.

  -- http://xkcd.com/1133/

Revision history for this message
Marc Gariépy (mgariepy) wrote :

Hello,

I just tested with https://github.com/yoe/nbd and it works correctly.

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.