qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] debugging qemu-nbd.c
@ 2013-04-09 14:18 Skippy VonDrake
  2013-04-09 14:33 ` Richard W.M. Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Skippy VonDrake @ 2013-04-09 14:18 UTC (permalink / raw)
  To: qemu-devel

Hello,

Apologies upfront if posting to this list is inappropriate.

I have an app that forks a process with calls qemu-nbd with an offset
into an image.
The app then uses libguestfs to attach the nbd device.
But it appears that qemu is failing.

I'm using the latest qemu sources and placed file log statements within
qemu-nbd.c to pinpoint the problem.

The statement: " if (chdir("/") < 0)"
appears to be the culprit.

But the subsequent err() call is never reached. If I pull 'chdir' out of
the 'IF' and assign a local var to its return - execution still seems to
stop on the 'chdir'. So there is no opportunity to examine its return.

What is the best approach to debugging this section of code?

Thanks,

Skippy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-09 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 14:18 [Qemu-devel] debugging qemu-nbd.c Skippy VonDrake
2013-04-09 14:33 ` Richard W.M. Jones
     [not found]   ` <CAAj=x+PU-f2Q0D6NJ+Rix0haeyuOFWo+cDEZzSs8KRj6kGn5iA@mail.gmail.com>
2013-04-09 14:45     ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).