View Issue Details

IDProjectCategoryView StatusLast Update
0005730SOGoActiveSyncpublic2023-04-05 15:03
Reporterleecher Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformServerOSDebianOS Version10.9
Product Version5.8.2 
Summary0005730: _init_charsets_table in RTFHandler doesn't initialize _charsets member variable properly on my version.
Description

Log is always spammed with loads of:

2023-04-05 16:24:11.011 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.104 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.185 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.265 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.371 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.474 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.559 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied
2023-04-05 16:24:11.631 sogod[10437:10437] File NSConcreteMapTable.m: 567. In NSFreeMapTable Null table argument supplied

Reason seems to be that _init_charsets_table for some reason doesn't initialize _charsets member variable:
https://github.com/Alinto/sogo/blob/5e6ad77d4ca0ac53dd7c9efb53469dd5129767f2/SoObjects/SOGo/RTFHandler.m#L553

Not familiar with Objective C whether the "static" declaration is a problem or not, just can give you the debugger output:

Breakpoint 2, -[RTFHandler initWithData:] (self=0x5555574367a0, _cmd=0x7ffff11cb4e0 <_OBJC_SELECTOR_TABLE+448>, theData=0x555556b57650) at RTFHandler.m:548
548 RTFHandler.m: Datei oder Verzeichnis nicht gefunden.
(gdb) n
549 in RTFHandler.m
(gdb)
550 in RTFHandler.m
(gdb)
551 in RTFHandler.m
(gdb)
552 in RTFHandler.m
(gdb)
553 in RTFHandler.m
(gdb) s
_init_charsets_table () at RTFHandler.m:455
455 in RTFHandler.m
(gdb) n
457 in RTFHandler.m
(gdb) print _charsets
$13 = (NSMapTable ) 0x555556e25b50
(gdb) n
458 in RTFHandler.m
(gdb)
460 in RTFHandler.m
(gdb)
461 in RTFHandler.m
(gdb)
463 in RTFHandler.m
(gdb)
464 in RTFHandler.m
(gdb)
466 in RTFHandler.m
(gdb) print _charsets
$14 = (NSMapTable
) 0x555556e25b50
(gdb) n
467 in RTFHandler.m
(gdb)
469 in RTFHandler.m
(gdb)
470 in RTFHandler.m
(gdb)
473 in RTFHandler.m
(gdb)
474 in RTFHandler.m
(gdb)
475 in RTFHandler.m
(gdb)
479 in RTFHandler.m
(gdb)
480 in RTFHandler.m
(gdb) n
481 in RTFHandler.m
(gdb)
482 in RTFHandler.m
(gdb)
484 in RTFHandler.m
(gdb)
485 in RTFHandler.m
(gdb)
487 in RTFHandler.m
(gdb)
488 in RTFHandler.m
(gdb)
490 in RTFHandler.m
(gdb)
491 in RTFHandler.m
(gdb) n
505 in RTFHandler.m
(gdb) print _charsets
$16 = (NSMapTable ) 0x555556e25b50
(gdb) n
-[RTFHandler initWithData:] (self=0x5555574367a0, _cmd=0x7ffff11cb4e0 <_OBJC_SELECTOR_TABLE+448>, theData=0x555556b57650) at RTFHandler.m:554
554 in RTFHandler.m
(gdb) print _charsets
$17 = (NSMapTable
) 0x0
(gdb) print _cws
$18 = (NSMapTable ) 0x555556b60200
(gdb) print _fontCws
$19 = (NSMapTable
) 0x555557318300

Steps To Reproduce

Just use EAS and read mailbox with Outlook 16, don't know if this is specific to my Mailbox but it looks like a generic problem according to gdb trace?

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-04-05 15:03 leecher New Issue