porting finch to uClinux on blackfin

Ethan Blanton elb at pidgin.im
Fri Oct 12 12:19:25 EDT 2007


Bill Fassler spake unto us the following wisdom:
> I now have finch on my embedded development board and can create
> an account, but fail during the DNS query.  I imagine this problem
> might be uClinux and not necessarily finch, but I want to throw out
> what I'm seeing just in case anyone has any suggestions.  It is
> more challenging to debug in the embedded world.

Did you *look* at the code where the error occurs?  You might also
consult the implementation of vfork() on uClinux; from the man page
for non-uClinux:

    The vfork() function has the same effect as fork(), except that
    the behaviour is undefined if the process createdby vfork() either
    modifies any data other than a variable of type pid_t used to
    store the return value from vfork(), or returns from the function
    in which vfork() was called, or calls any other function before
    successfully calling _exit() or one of the exec() family of
    functions.

My comment about debugging by Brownian Motion was intended to be
instructive.  You really need to put some effort into these problems
before slapping them up on the list -- there are 500+ users on this
list who are *not* trying to put finch on uClinux.  I am glad that you
are, and we are more than happy to help you, but you're going to have
to spend some time trying to help yourself, as well.

In this case, it appears to me that a) you are abusing vfork, and b)
you didn't bother to read the code surrounding the error return.

Ethan


-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20071012/25d32aec/attachment.sig>


More information about the Devel mailing list