GNOME Bugzilla – Bug 629836
Crash on an event fetching
Last modified: 2011-02-07 11:23:19 UTC
I have an event with attachment on an exchange 2003 server, which is crashing e-calendar-factory with a message as described in openchange tracker [1]. Even it is fixed in openchange it would be better to workaround the issue for older openchange-s too, thus this bug report. [1] http://tracker.openchange.org/issues/298 The backtrace is: [Thread 0xb3bfcb70 (LWP 17389) exited] unhandled conversion case in cast_SPropValue(): 0x1048 e-calendar-factory: libmapi/property.c:732: cast_SPropValue: Assertion `0' failed. Program received signal SIGABRT, Aborted. (gdb) bt
+ Trace 223747
996 997 attachment = g_new0 (ExchangeMAPIAttachment, 1); 998 attachment->cValues = properties.cValues; 999 attachment->lpProps = g_new0 (struct SPropValue, attachment->cValues + 1); 1000 for (z=0; z < properties.cValues; z++) { 1001 cast_SPropValue ( 1002 #ifdef HAVE_MEMCTX_ON_CAST_SPROPVALUE 1003 mem_ctx, 1004 #endif 1005 &properties.lpProps[z], &(attachment->lpProps[z])); (gdb) p *properties.lpProps[z] Structure has no component named operator*. (gdb) p properties.lpProps[z] $1 = {ulPropTag = 241045576, value = {i = 1, l = 1, dbl = -3.1524887813182776e-50, err = 1, b = 1 '\001', d = -5357147239837859839, lpszA = 0x1 <Address 0x1 out of bounds>, lpszW = 0x1 <Address 0x1 out of bounds>, ft = {dwLowDateTime = 1, dwHighDateTime = 3047659256}, lpguid = { time_low = 1, time_mid = 38648, time_hi_and_version = 46503, clock_seq = "\000", node = "\000\000\000\000\000"}, Restrictions = { wrap = "\001\000\000\000\370\226\247\265", '\000' <repeats 32759 times>}, RuleAction = {count = 1, ActionBlock = 0xb5a796f8}, bin = {cb = 1, lpb = 0xb5a796f8 "\270\335҅%b\322\021\275", <incomplete sequence \361>}, MVl = {cValues = 1, lpl = 0xb5a796f8}, MVszA = {cValues = 1, strings = 0xb5a796f8}, MVszW = {cValues = 1, strings = 0xb5a796f8}, MVguid = {cValues = 1, lpguid = 0xb5a796f8}, MVbin = {cValues = 1, bin = 0xb5a796f8}}} (gdb) printf "%x", properties.lpProps[z].ulPropTag e5e1048
Created attachment 170406 [details] [review] ema patch for evolution-mapi; This is skipping most of those "strange" properties when fetching attachment properties.
Created commit 7de2ac9 in ema master (0.33.1+) Created commit 33989be in ema gnome-2-32 (0.32.1+)
*** Bug 641032 has been marked as a duplicate of this bug. ***