Frédéric MAZZINI | 18 Oct 2004 11:32
Picon
Favicon

child pid 9283 exit signal Segmentation fault (11).

Hello,

We currently test the syncml functionnality of Horde. We try to synchronize
Outlook with kronolith. During these tests, we found a bug in the managment
of the user authorization. In the log file of Apache we have the message :
child pid 9283 exit signal Segmentation fault (11). The problem seems to
come from the key used to encrypt the user password. The GOST algorithm
required a key of 32 bytes and the one used is smaller (sessionid =
syncmlsc21). We temporarily corrected the problem by padding the value
up to 32 bytes.

What do you think about that problem ??

Thanks

--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Jan Schneider | 18 Oct 2004 12:00
Favicon
Gravatar

Re: child pid 9283 exit signal Segmentation fault (11).

Zitat von Frédéric MAZZINI <frederic.mazzini <at> cirad.fr>:

> Hello,
>
> We currently test the syncml functionnality of Horde. We try to synchronize
> Outlook with kronolith. During these tests, we found a bug in the managment
> of the user authorization. In the log file of Apache we have the message :
> child pid 9283 exit signal Segmentation fault (11). The problem seems to
> come from the key used to encrypt the user password. The GOST algorithm
> required a key of 32 bytes and the one used is smaller (sessionid =
> syncmlsc21). We temporarily corrected the problem by padding the value
> up to 32 bytes.
>
> What do you think about that problem ??

That it doesn't have anything to do with Horde code. Apache/PHP5 must never
segfault, this is always a PHP bug.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Chuck Hagenbuch | 18 Oct 2004 16:02
Favicon
Gravatar

Re: child pid 9283 exit signal Segmentation fault (11).

Quoting Frédéric MAZZINI <frederic.mazzini <at> cirad.fr>:

> We currently test the syncml functionnality of Horde. We try to synchronize
> Outlook with kronolith. During these tests, we found a bug in the managment
> of the user authorization. In the log file of Apache we have the message :
> child pid 9283 exit signal Segmentation fault (11). The problem seems to
> come from the key used to encrypt the user password. The GOST algorithm
> required a key of 32 bytes and the one used is smaller (sessionid =
> syncmlsc21). We temporarily corrected the problem by padding the value
> up to 32 bytes.
>
> What do you think about that problem ??

If you think you have a solution, send a patch. At least give a file/line
number.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams
--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Daniel Vandal | 18 Oct 2004 22:50
Picon

Re: (no subject)

Sorry for the late answer, but I haven't worked on it since 1 month.

I think that I finally found out why the wbxml2xml process open with 
proc_open was freezing on my server. It seem
that he freeze when reading the sdterr pipe (pipe #2).

With the CVS version of the XML_WBXML Decoder.php, wbxml2xml was 
freezing and was kept running by the server.
[root <at> courriels sync]# ps -A |grep wbxml2xml
24756 ?        00:00:00 wbxml2xml
24918 ?        00:00:00 wbxml2xml
26291 ?        00:00:00 wbxml2xml
26312 ?        00:00:00 wbxml2xml

But with my changes, everything work properly, anywhay, the stderr pipe 
for these proc_open calls wasn't used in the code.

I included in attachment the diff file of the changes I done to the 
XML_WBXML framework package.

Daniel Vandal
dvandal <at> infoteck.qc.ca

Chuck Hagenbuch a écrit :

> Quoting dvandal <at> infoteck.qc.ca:
>
>> Also, the only way I found to be able to use WBXML with SyncML was to 
>> use the
>> revision 1.19 of "framework/XML_WBXML/WBXML/Decoder.php". My server 
(Continue reading)

Chuck Hagenbuch | 19 Oct 2004 00:03
Favicon
Gravatar

Re: (no subject)

Quoting Daniel Vandal <dvandal <at> infoteck.qc.ca>:

> Sorry for the late answer, but I haven't worked on it since 1 month.

No problem, thanks for getting back to it. :)

> I think that I finally found out why the wbxml2xml process open with
> proc_open was freezing on my server. It seem
> that he freeze when reading the sdterr pipe (pipe #2).

[snip]

> But with my changes, everything work properly, anywhay, the stderr pipe
> for these proc_open calls wasn't used in the code.
>
> I included in attachment the diff file of the changes I done to the
> XML_WBXML framework package.

Looks good - committed, thanks.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams
--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

(Continue reading)

Oliver Kuhl | 20 Oct 2004 10:32
Picon
Favicon

Sync4j and Horde

Hi folks,

I like to use Sync4j-Clients (i.e. the Outlook-Client) with the Horde 
SyncML-Server. I read the mailinglist-archive and found out that there 
has to be written a horde<->sync4j-connector.

Can anyone tell me why this is necessary? I thougt Horde's rpc.php 
supports SyncML (i.e. together with the SE P900) and Sync4j does, too. 
So why can't I use the Sync4j-Outlook-Client together with Horde?

Gruss,
   Ollie.
--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Karsten Fourmont | 20 Oct 2004 10:51
Picon
Picon

Re: Sync4j and Horde

Hi,

Quoting Oliver Kuhl <okuhl <at> netcologne.de>:

> I like to use Sync4j-Clients (i.e. the Outlook-Client) with the Horde
> SyncML-Server. I read the mailinglist-archive and found out that there
> has to be written a horde<->sync4j-connector.

I don't know details about Sync4j but imho this only applies if you want to do
some integration of Sync4J Sync-*Server* and Horde (like using Horde as a
Datastore for the SyncServer).

Just using the Sync4j SyncConnector to Sync Outlook with Horde should work
without any extensive modifications. Just give it a try. Feedback whether it
actually works would be very much appreciated.

A method to Sync Outlook Data with Horde would surely be a good thing.

Cheers,
  Karsten

--

-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe <at> lists.horde.org

Oliver Kuhl | 20 Oct 2004 14:54
Picon
Favicon

Re: Sync4j and Horde

Hi,

Karsten Fourmont wrote:

> Quoting Oliver Kuhl <okuhl <at> netcologne.de>:
> 
>> I like to use Sync4j-Clients (i.e. the Outlook-Client) with the Horde
>> SyncML-Server. I read the mailinglist-archive and found out that there
>> has to be written a horde<->sync4j-connector.
> 
> 
> I don't know details about Sync4j but imho this only applies if you want 
> to do
> some integration of Sync4J Sync-*Server* and Horde (like using Horde as a
> Datastore for the SyncServer).
> 
> Just using the Sync4j SyncConnector to Sync Outlook with Horde should work
> without any extensive modifications. Just give it a try. Feedback 
> whether it
> actually works would be very much appreciated.
I wish I had better news, but it didn't work. The Sync4j-Outlook-Client 
says:
  Error code: 700
  Error message: SyncBody not found!

And this is what was send/received:
==================================================
# cat /tmp/sync/syncml_client_1.xml
<SyncML>
<SyncHdr>
(Continue reading)

Karsten Fourmont | 20 Oct 2004 15:54
Picon
Picon

Re: Sync4j and Horde

Hi Oliver,

but at least it's a start. And the debug info does help.

I'm away from my Horde installation and cvs at the moment (and for the rest of
the month), so here are just two wild guesses:

1) currently Horde SyncML doesn't do "auth-clear" authentification. 
This should
be easy to fix:

replace line 250 of framework/SyncML/SyncML.php

$this->_credData = base64_decode($this->_credData);

with s.th. like the following:

if ($this->_credType == 'syncml:auth-basic') {
    $this->_credData = base64_decode($this->_credData);
}

After that you should get logging info with locName=okuhl in your horde debug
log rather than the current "locName=¢K¡-·°ŠZ"

2) But I think the real issue is that Sync4J doesn't like the empty xmlns tags
in

<SyncML xmlns="">

and especially
(Continue reading)

Chuck Hagenbuch | 21 Oct 2004 03:56
Favicon
Gravatar

Re: Sync4j and Horde

Quoting Karsten Fourmont <fourmont <at> gmx.de>:

> 1) currently Horde SyncML doesn't do "auth-clear" authentification.
> This should be easy to fix:
>
> replace line 250 of framework/SyncML/SyncML.php
>
> $this->_credData = base64_decode($this->_credData);
>
> with s.th. like the following:
>
> if ($this->_credType == 'syncml:auth-basic') {
>     $this->_credData = base64_decode($this->_credData);
> }

and ...

> My guess is that insertion of
>
>          $uri = $state->getURI();
>
> before line 426 of framework/SyncML/SyncML.php (right before the
> startElement() call) should help here.
>
> As usual, after you made the changes to framework files, you have to do
> install-framework.php to push them into the final pear-places.

Oliver, if either of these work or improve things, let me know, and if 
Karsten's
away, I can get them incorporated into CVS.
(Continue reading)


Gmane