#713 Unbound offline storage causes prosody errors

Reporter ge0rg
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Priority-Medium
  • Type-Defect
  • Status-Duplicate
  1. ge0rg on

    If a user receives a large amount of offline messages and never polls for them, eventually prosody (0.9 and 0.10) will encounter an error when loading the offline store: Jul 27 14:22:18 mod_c2s error Traceback[c2s]: constant table overflow stack traceback: [C]: in function 'loadfile' /usr/lib/prosody/util/envload.lua:20: in function 'envloadfile' /usr/lib/prosody/util/datamanager.lua:298: in function 'list_load' /usr/lib/prosody/modules/mod_offline.lua:40: in function '?' /usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74> (tail call): ? (tail call): ? /usr/lib/prosody/modules/mod_presence.lua:100: in function 'handle_normal_presence' /usr/lib/prosody/modules/mod_presence.lua:303: in function '?' /usr/lib/prosody/util/events.lua:78: in function </usr/lib/prosody/util/events.lua:74> ... /usr/lib/prosody/util/xmppstream.lua:271: in function 'feed' /usr/lib/prosody/modules/mod_c2s.lua:251: in function 'data' /usr/lib/prosody/modules/mod_c2s.lua:274: in function 'onincoming' /usr/lib/prosody/net/server_event.lua:603: in function </usr/lib/prosody/net/server_event.lua:556> [C]: in function 'loop' /usr/lib/prosody/net/server_event.lua:746: in function </usr/lib/prosody/net/server_event.lua:745> [C]: in function 'xpcall' /usr/bin/prosody:387: in function 'loop' /usr/bin/prosody:418: in main chunk [C]: ? Jul 27 14:22:18 datamanager error Failed to load offline storage ('nil') for user: somespamvictim@yax.im Please provide a configurable upper limit to the number of offline messages, with further messages being rejected by the server.

  2. Zash on

    Hey. This is already reported in #593 so I'll close this one as a dupe.

    Changes
    • tags Status-Duplicate

New comment