On 2008-03-13 at 16:01:01 [+0100], Bruno Albuquerque <bga@xxxxxxxxxxxxx> wrote: > I am trying to debug what is happening with the net_server when running > Haiku inside the latest VMWare Player (v2) but I am hitting something > really weird: > > 1 - The problem seems to be that DHCPClient::_Negotiate() fails. > 2 - To try to figure out where exactly it fails, I tried to add some > printfs (one just at the top of the method) but nothing is getting > printed at all. > 3 - Also other printfs that already exist all around the code never get > printed (with the exception of the ones that say which services got > started). > > Any ideas about why this is happening? Assuming that you started the net server in an environment where you could actually get the output (e.g. Terminal, or redirect the input from the Bootscript), I don't. Just a few debugging hints: * Make sure the control flow actually passes the output. In doubt add a debugger() call at one. * Make sure the printf() is actually in the compiled code, i.e. run the preprocessor, or even safer, look it up in the objdump. * Do an strace (or kernel syscall tracing) to verify that _kern_write() is invoked with the right file descriptor and string. * If that looks all OK, check whether the file descriptor actually points to the right output. E.g. in the kernel debugger: "io_context" -> "vnode" -> "mount", or check the strace respectively the kernel tracing what happened to the FD. CU, Ingo