[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fink-users
Subject:    Re: [Fink-users] jpilot fork error messages
From:       Alexander Hansen <alexanderk.hansen () gmail ! com>
Date:       2008-12-10 21:50:01
Message-ID: EA747888-0A9D-4C4B-8713-0B74D28134D8 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Dec 10, 2008, at 4:21 PM, Holger Müller wrote:

> I just updated (to revision 104 ...).
> The sync works now :-)
>
> But, I still get a warning on my console:
> (jpilot:15388): Gtk-CRITICAL **: gtk_text_buffer_insert: assertion  
> `text != NULL' failed
>

I don't get that one here.

> Also, the output of the sync starts after the sync is finished (so  
> in the meantime nothing happens). On my Linux system the output  
> starts at once and I see the progress.
>

I've put a note in the DescUsage about that, so it's described by  
"fink info jpilot".  This is due to the patch I had to use to get it  
to sync.

> Last but not least the whole application hangs, if a sync is not  
> possible (e.g. no palm connected).

Same reason there.

>
>
> Maybe you have some fixes for that.
>

  I tried using a technique that some other packages use to deal with  
the same issue, but that didn't work.   Unfortunately what I did do  
means that the GUI application doesn't deal properly with a missing  
handheld.   To fix it would involve way more OS X-specific coding than  
upstream was prepared to do, much less me at this stage.

> Thank you very much.
> Holger
>
> 2008/12/10 Alexander Hansen <alexanderk.hansen@gmail.com>
> I've committed a fix to the unstable tree (revision 103).  If that  
> works adequately for you, let me know, so that I can move it over to  
> stable.
>
> On Dec 9, 2008, at 3:35 PM, Holger Müller wrote:
>
>> Hi,
>>
>> thanks for the quick rely. Don't you use Leopard to verify that?  
>> But I think you are right. I did some googeling and found that  
>> statement here
>> This is caused by programs that use the fork() or daemon() function  
>> in combination with higher-level APIs. In Leopard you cannot use  
>> the CoreFoundation (CF...) APIs on the child side of a fork()  
>> without following it with an exec*() function. This has always been  
>> true, but Leopard is much more stingy about this kind of thing.
>> http://discussions.apple.com/thread.jspa?threadID=1209537&tstart=0
>>
>> Hope someone finds a fix.
>>
>> Thanks Holger
>>
>> 2008/12/9 Alexander Hansen <alexanderk.hansen@gmail.com>
>>
>> On Dec 9, 2008, at 1:58 PM, Holger Müller wrote:
>>
>>> Hi list! :-)
>>>
>>> this is my first message. I am using fink 0.9.0 switched to cvs.
>>> I have installed jpilot 1.6.0-102 and pilot-link 0.12.3-2.
>>>
>>> Until now I was not able to sync my Palm m505 on my MacBook using  
>>> Leopard 10.5.5. In the settings I used "usb:" for the device.
>>> If I start JPilot from the terminal and press the sync button in  
>>> the application I get these messages printed 4 times:
>>>
>>> The process has forked and you cannot use this CoreFoundation  
>>> functionality safely. You MUST exec().
>>> Break on  
>>> __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__ 
>>> () to debug.
>>>
>>>
>>>
>>> The command
>>> > pilot-xfer -p usb: --list
>>>
>>>    Listening for incoming connection on usb:... connected!
>>>
>>>    Reading list of databases in RAM...
>>>
>>> works. Also the command "jpilot-sync" works as expected (syncing  
>>> my Palm on the console).  Only the sync from the JPilot GUI seems  
>>> to have a problem. I also tried to recompile jpilot without the  
>>> flock using fcntl (implemented by not setting the compiler switch  
>>> "USE_FLOCK") did not help.
>>> Does someone have a solution for it?
>>>
>>> Thanks Holger
>>>
>>>
>>
>>
>> This is the first report I've seen about this issue.
>>
>> I don't think this is a matter for flock vs fcntl, but rather  
>> something specific to how Leopard handles forking.  The maintainer  
>> for KDE had to put a hack in kdelibs3 to handle a similar error.
>>
>
>


[Attachment #5 (text/html)]

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; "><br><div><div>On Dec 10, 2008, at 4:21 PM, \
Holger Müller wrote:</div><br class="Apple-interchange-newline"><blockquote \
type="cite">I just updated (to revision 104 ...).<br>The sync works now \
:-)<br><br>But, I still get a warning on my console:<br>(jpilot:15388): Gtk-CRITICAL \
**: gtk_text_buffer_insert: assertion `text != NULL' \
failed<br><br></blockquote><div><br></div><div>I don't get that one \
here.</div><br><blockquote type="cite">Also, the output of the sync starts after the \
sync is finished (so in the meantime nothing happens). On my Linux system the output \
starts at once and I see the progress.<br> <br></blockquote><div><br></div><div>I've \
put a note in the DescUsage about that, so it's described by "fink info jpilot". \
&nbsp;This is due to the patch I had to use to get it to sync. \
&nbsp;&nbsp;</div><br><blockquote type="cite">Last but not least the whole \
application hangs, if a sync is not possible (e.g. no palm \
connected).</blockquote><div><br></div><div>Same reason there.</div><br><blockquote \
type="cite"><br><br>Maybe you have some fixes for \
that.<br><br></blockquote><div><br></div><div>&nbsp;I tried using a technique that \
some other packages use to deal with the same issue, but that didn't work. &nbsp; \
Unfortunately what I did do means that the GUI application doesn't deal properly with \
a missing handheld. &nbsp; To fix it would involve way more OS X-specific coding than \
upstream was prepared to do, much less me at this \
stage.</div><div><br></div><blockquote type="cite">Thank you very \
much.<br>Holger<br><br><div class="gmail_quote">2008/12/10 Alexander Hansen <span \
dir="ltr">&lt;<a href="mailto:alexanderk.hansen@gmail.com">alexanderk.hansen@gmail.com</a>></span><br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div>I've committed a \
fix to the unstable tree (revision 103). &nbsp;If that works adequately for you, let \
me know, so that I can move it over to stable.</div> <div><div></div><div \
class="Wj3C7c"><br><div><div>On Dec 9, 2008, at 3:35 PM, Holger Müller \
wrote:</div><br><blockquote type="cite">Hi,<br><br>thanks for the quick rely. Don't \
you use Leopard to verify that? But I think you are right. I did some googeling and \
found that statement here<br> <blockquote style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> This is \
caused by programs that use the fork() or daemon() function in combination with \
higher-level APIs. In Leopard you cannot use the CoreFoundation (CF...) APIs on the \
child side of a fork() without following it with an exec*() function. This has always \
been true, but Leopard is much more stingy about this kind of thing.<br> \
</blockquote> <a href="http://discussions.apple.com/thread.jspa?threadID=1209537&amp;tstart=0" \
target="_blank">http://discussions.apple.com/thread.jspa?threadID=1209537&amp;tstart=0</a><br><br>Hope \
someone finds a fix.<br> <br>Thanks Holger<br><br><div class="gmail_quote"> 2008/12/9 \
Alexander Hansen <span dir="ltr">&lt;<a href="mailto:alexanderk.hansen@gmail.com" \
target="_blank">alexanderk.hansen@gmail.com</a>></span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div><div><div></div><div><br><div><div>On Dec 9, \
2008, at 1:58 PM, Holger Müller wrote:</div><br><blockquote type="cite">Hi list! \
:-)<br><div class="gmail_quote"><br>this is my first message. I am using fink 0.9.0 \
switched to cvs.<br> I have installed jpilot 1.6.0-102 and pilot-link \
0.12.3-2.<br><br><div class="gmail_quote">Until now I was not able to sync my Palm \
m505 on my MacBook using Leopard <a href="http://10.5.5." target="_blank">10.5.5.</a> \
In the settings I used "usb:" for the device.<br> If I start JPilot from the terminal \
and press the sync button in the application I get these messages printed 4 \
times:<br> <br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: \
0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> The process has forked \
and you cannot use this CoreFoundation functionality safely. You MUST exec().<br> \
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() \
to debug.<br> </blockquote><br clear="all"><br><br>The command<br><blockquote \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;" class="gmail_quote"> > pilot-xfer -p usb: --list<br><br> \
&nbsp;&nbsp; Listening for incoming connection on usb:... connected!<br> \
<br>&nbsp;&nbsp; Reading list of databases in RAM...<br></blockquote><br>works. Also \
the command "jpilot-sync" works as expected (syncing my Palm on the console).&nbsp; \
Only the sync from the JPilot GUI seems to have a problem. I also tried to recompile \
jpilot without the flock using fcntl (implemented by not setting the compiler switch \
"USE_FLOCK") did not help.<br> Does someone have a solution for it? <br><br>Thanks \
Holger<br> </div><br></div><br></blockquote></div><div><br></div></div></div><div>This \
is the first report I've seen about this issue.</div><div><br></div><div>I don't \
think this is a matter for flock vs fcntl, but rather something specific to how \
Leopard handles forking. &nbsp;The maintainer for KDE had to put a hack in kdelibs3 \
to handle a similar error. &nbsp;</div> \
</div></blockquote></div><br></blockquote></div><br></div></div></div></blockquote></div><br></blockquote></div><br></body></html>




------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic