Thanks for everyones help so far. I also realized that I
did not specify
what version of fuse I was using, it is being built from
fuse-2.6.5 and it
is on the linux kernel 2.6.15. It is an embedded device
(ARM).
Sorry in advance for the long message.
On 7/20/07, Jan Engelhardt <jengelh computergmbh.de> wrote:
>
>
> In main(), add:
>
> int flp=0;
> while(!flp);
>
> then when the program runs, attach with gdb, set flp=1
(using "p flp=1")
> and step through your program and see where it goes
wrong.
>
Sadly, either our debugging tool isn't that good, or I'm not
that good at
using it. I have to run gdbserver on the target device and
connect to it
(with arm-linux-gdb) from my pc over tcpip. I have tried
waiting loops in
different places etc. But the program would seem to fail in
other processes
(eg after forks or execp's).
I tried a very simple test, I added a waiting loop (pretty
much identical to
Jan's suggestion), connected to the program with gdbserver
etc. Then exited
the loop and hit continue to let the program go. If I did
this all from the
command line, which normally worked, I would then get an
error:
~ # /usr/local/bin/hello /mnt/tmpfs/media/ipod
~ # ls /mnt/tmpfs/media/ipod
ls: /mnt/tmpfs/media/ipod: Transport endpoint is not
connected
Which is frustrating.
Then I decided to debug with fprintf statements to stdout.
I sprinkled
these along the trail in libfuse (I can give you a detailed
version of
where), AND THEN EVERYTHING WORKED. So the only difference
was fprintf to
stdout statements, and now I can successfully run my
programs (the simple
hello program and my own ipod.fuse program) from hotplug.
I was thinking that I should try to upgrade to 2.7.0 and
retest, but this is
not trivial, so I thought I would check back here for
ideas.
thanks again,
leif
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
fuse-devel mailing list
fuse-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
a>
|