Re: [Nbd] Server immediately closes connection
- To: Robin Van Loock <rvloock+nbd@...17...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] Server immediately closes connection
- From: Wouter Verhelst <w@...112...>
- Date: Sun, 13 Jan 2008 19:37:18 +0100
- Message-id: <20080113183718.GC29570@...39...>
- In-reply-to: <15ec8ae10801130507w3319cc12m8665bdd6a3154ada@...18...>
- References: <15ec8ae10801071121r1a1a6d7fu65e1fcaed83e2aa@...18...> <20080108120937.GA8132@...39...> <15ec8ae10801081135h1391a7aen5f2c5703c8e21fba@...18...> <15ec8ae10801130507w3319cc12m8665bdd6a3154ada@...18...>
On Sun, Jan 13, 2008 at 02:07:25PM +0100, Robin Van Loock wrote:
> I've been looking further into this in the meantime and have found the
> problem.
>
> I enabled debugging, NODAEMON and NOFORK in the server and started adding
> debug statements [I found out it was segfaulting somewhere], and it appeared
> to segfault in the following line in setupexport:
>
> msg3(LOG_INFO, "Size of exported file/device is %Lu", (unsigned long
> long)client->exportsize);
>
> Just by commenting that one out everything works. I don't really understand
> why, perhaps something with the unsigned long long cast and gcc on an ARM
> device?
Could be a number of things. I can currently only say "it works for me"
(really; I just set up an nbd-server on another ARM-based Linux box);
but it sounds like missing error handling somewhere.
Could you send me a core dump of nbd-server when it fails?
Thanks,
--
<Lo-lan-do> Home is where you have to wash the dishes.
-- #debian-devel, Freenode, 2004-09-22
Reply to: