> ----- Original Message ----- > From: "Julien Kerihuel" <[email protected]> > To: "Development list" <[email protected]> > Subject: Re: [openchange][devel] segfault in OpenUserMailbox > Date: Sun, 26 Apr 2009 15:21:02 +0200 > > > On Sun, 2009-04-26 at 19:07 +0800, [email protected] wrote: > > My libmapi client program has been running fine for more than two > > months, but now something has changed on the server side. Hopefully > > someone can help to figure out what's going on. > > > > Apparently, there are two IP addresses for the company's exchange > > server, probably some sort of cluster. In my profile I was using > > Server 1, but recently my client cannot connect anymore. It reports > > MAPI_E_NETWORK_ERROR and NT_STATUS_CONNECTION_REFUSED, and it lists > > two port numbers: A & B. When I use Outlook in XP to connect to Server > > 1, everything works fine, and in netstat I see that Outlook uses > > different ports, not A & B. > > > > Today I tried to create a new profile using Server 1. Same connection > > problems. So I tried Server 2 where the Mapi profile was created > > successfully. But then my client segfaulted somewhere in > > OpenUserMailbox. Please have a look at http://pastebin.com/m22a20dac > > there is a code snippet and the output that shows how far it gets. > > Hi, > > Can you provide me a network trace of this? > > Using either openchangeclient with --dump-data -d10 or if you have your > own code using the SetMAPIDumpData and SetMAPIDebugLevel functions. > > For some reason FindGoodServer is not able to go through the whole NSPI > process and this trace should be helpful to find why. > > A GDB backtrace would also be useful.
Bon soir Julien, Ok, got those dumps and had a look at them. Even though I specified the IP of Server2 in the profile, it tried to connect to Server1 also. It did this by name and since the $...@#$% VPN client changed the permissions of /etc/resolv.conf to 600, it failed. After fixing the permissions, I was back in business :-)) If you're interested, I can still send you the dump. Maybe it would be nice if such DNS problems could be handled it bit more gracefully. Another question about the profile: in there, I have only the IP address. Is there a way to specify a name? With this cluster, for example, I saw that there's also a host name that points to both IPs, and who knows what the IT guys are doing with this cluster and it's IP addresses... Viele Grüße from Hong Kong dirk -- It's News. It's Reviews. It's Interviews. It's Free. What Are You Waiting For? www.movieline.com _______________________________________________ devel mailing list [email protected] http://mailman.openchange.org/listinfo/devel
