On Tue, 2010-06-08 at 12:41 +0100, Jack Challen wrote:

> Hi,
> 
> I know you're mostly working on OpenChange server right now, and this client 
> application is less important, but 
> hopefully I can get some pointers on where to look to fix this behaviour:
> 
> The "fetchappointment" example SIGSEGVs when running against 
> olFolderCalendar. If I run it against olFolderInbox it 
> doesn't SIGSEGV, although obviously it doesn't work "correctly". Here's a 
> backtrace of the SIGSEGV:
> 
> ===
> Reading symbols from 
> /root/openchange-0.9-COCHRANE.edited/doc/examples/fetchappointment...done.
> (gdb) r
> Starting program: 
> /root/openchange-0.9-COCHRANE.edited/doc/examples/fetchappointment 
> --profile=johnbull
> [Thread debugging using libthread_db enabled]
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00dc4534 in find_SPropValue_data (aRow=0x2c6f50, mapitag=1732771860) at 
> libmapi/property.c:235
> 235                   if (aRow->lpProps[i].ulPropTag == mapitag) {
> (gdb) bt
> #0  0x00dc4534 in find_SPropValue_data (aRow=0x2c6f50, mapitag=1732771860) at 
> libmapi/property.c:235
> #1  0x08048ed8 in main (argc=2, argv=0xbffff604) at fetchappointment.c:74
> (gdb) quit
> ===
> 
> Any ideas? I'm wondering if instead of using the olFolderCalendar #define I 
> should do a search/find folder for the 
> "correct" folder...


Hi Jack,

Actually olFolerCalendar should be the correct one, so nothing to change
about this. There may however be some refactoring work to do if you are
willing to open another directory such as /Calendar/my_calendar
or /yet_another_calendar_folder. However this goes beyond the scope of
this email and issue to solve.

The backtrace currently lacks information I would need to fix this.
Could you print *aRow, give me the value of $i and try to dump
lpProps[i]?
Looks to me like aRow->lpProps may be null, but can't be sure of
anything for the moment.

Cheers,
Julien.


Julien Kerihuel
[email protected]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to