[Mono-list] Question about XML-RPC.Net (CookComputing)

Matthias Kestenholz lists at irregular.ch
Fri Sep 2 11:34:08 EDT 2005


Hi everyone,


I've been struggling with a bug (?) either in the WordPress xmlrpc
server or the CookComputing XML-RPC library for .NET

I have put up a .zip archive[1] on my webhost to demonstrate the problem
I'm having; the password has been changed.


When I try to use metaWeblog.getRecentPosts I get the following error:

$ ./rpctest.exe
Unhandled Exception: CookComputing.XmlRpc.XmlRpcTypeMismatchException:
response contains int value where boolean expected [response : array
mapped to type Post[] : element 0 : struct mapped to type Post : member
mt_allow_comments mapped to type Boolean]
[...]


Modifying MetaWeblogAPI.cs and recompiling doesn't really help:


$ diff MetaWeblogAPI-modified.cs MetaWeblogAPI.cs
49,51c49,51
<     public int mt_allow_comments;
<     public int mt_allow_pings;
<     public int mt_convert_breaks;
---
>     public bool mt_allow_comments;
>     public bool mt_allow_pings;
>     public bool mt_convert_breaks;


$ ./rpctest2.exe
*** glibc detected *** free(): invalid next size (fast): 0x084818d8 ***

The error happens somewhere inside the proxy.getRecentPosts(...) call.

The backtrace I get from gdb doesn't really help since I have no
debugging symbols (or I do not know how to find them; I am using mono
from Debian Unstable)

The only thing I see is that the backtrace is 1109 calls deep...



Thanks for any help or tips,
 - Matthias




[1]: http://test.irregular.ch/rpctest.zip

mk at atmosphere ~/Projects > unzip -l rpctest
Archive:  rpctest.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  09-02-05 17:22   rpctest/
     3440  09-02-05 17:08   rpctest/MetaWeblogAPI.cs
   106496  09-02-05 17:08   rpctest/CookComputing.XmlRpc.dll
      394  09-02-05 17:22   rpctest/rpctest.cs
      229  09-02-05 17:12   rpctest/Makefile
     3437  09-02-05 17:11   rpctest/MetaWeblogAPI-modified.cs
 --------                   -------
   113996                   6 files




More information about the Mono-list mailing list