[LBBS-21] net_imap: Proxy clients orphaned without associated IMAP session

LBBS-13
pty.c: Attempt to lock previously destroyed mutex
PHREAKSCRIPT-20
dsp.c: coin DSP patch breaks faxing
LBBS-16
io_compress: Occasional memory corruption on shutdown
ASTERISK-119
app_dial: Progress timeout doesn't cause Dial to exit
ASTERISK-82
app_queue: Allow queue strategy to be manipulated externally
LBBS-86
Deadlock on internal lock mutex
PHREAKSCRIPT-61
kernel-next build fails
PHREAKNET-54
Fix trunking to Telstar
ASTERISK-122
res_pjsip_device_features: Excessive refcount on endpoint object
DAHLIN-9
DAHDI Linux: Build failure against next kernel
PHREAKNET-46
Polycom IP phones not provisioning
DAHTOOL-5
Disabling span auto-assignment implodes kernel
PHREAKSCRIPT-28
app_predial: Failure to retrieve user agent property
LBBS-70
mod_smtp_delivery_external: Use SRS for externally forwarded messages
PHREAKSCRIPT-56
DAHDI Tools: Apply unmerged patches
ASTERISK-124
app_mixmonitor: Allow cancelling in-progress recording/recipients
DAHTOOL-4
dahdi_genconf: Hangs when run initially after span assignment
PHREAKSCRIPT-36
app_audichron: Tone not working after announcements
SLACK-5
Failed to receive reply... when message sent
LBBS-31
mod_sieve: Major Sieve filtering overhaul and improvements
PHREAKNET-34
Pat Fleet prompts
CAMI-1
Action Originate Returns -1
PHREAKSCRIPT-53
app_george: Cancel in-progress recording if nobody said anything
SLACK-6
Can't post messages in enterprise workspaces using RTM API
ASTERISK-81
format_lame: MP3 read and write with LAME library
WSSMAIL-3
Message listing missing recipient for some messages
LBBS-65
net_smtp: Allow internal trusted hosts to be exempt from protocol violation checks
ASTERISK-102
app_voicemail: Play RDNIS if present when listening to envelope
DAHLIN-4
Improve manual span assignment process
ASTERISK-68
res_pjsip_sca: Segfaults on startup with SCA
ASTERISK-88
chan_dahdi: Add ADSI on-hook download support
ASTERISK-83
res_pjsip_device_features: Add forwarding and DND synchronization
ASTERISK-111
chan_dahdi: MWI while off-hook when hung up on after recall ring
ASTERISK-19
chan_dahdi: Remove sig_analog paths
ASTERISK-78
sig_analog: Add Last Number Redial
ASTERISK-77
sig_analog: Add Call Waiting Deluxe support
ASTERISK-130
Verify that res_xmpp can compile and be used
LBBS-64
mod_operator: Crash with more than 64 options?
ASTERISK-71
app_if: ElseIf executed even if If is true
PHREAKNET-42
Provisioning fails for lines with certain features
PHREAKNET-40
Recent Change provisioning bug increments device name by 1
PHREAKNET-52
Cisco end of CSR signing support
DAHLIN-7
Mega-issue to upstream out-of-tree DAHDI patches
PHREAKSCRIPT-30
MD5/RSA authenticated calls frequently fail
ASTERISK-97
func_groupcount: Add group vars
PHREAKNET-35
TSPS improvements
PHREAKNET-23
Wakeup calls not dialling at scheduled time
ASTERISK-101
func_tonedetect: 2600 Hz detection not working or suboptimal
ASTERISK-115
chan_iax2: Some pattern matches ignored if included in incoming context
ASTERISK-112
chan_dahdi: Raw power ring audible on recall ring from IAX2 to DAHDI
LBBS-32
mod_spamassassin: Improve default spam handling
LBBS-6
Add menu system scripting engine
ASTERISK-66
app_sf: ReceiveSF not detecting incoming SF
EVERGREEN-1
Use default identity per folder
ASTERISK-110
chan_iax2: Implement MWI
ASTERISK-80
app_record: Add RECORD_TIME function
INTERLINKED-2
PhreakNet Email for BoD Members
INTERLINKED-20
Closing multiple issues simultaneously doesn't work
PHREAKSCRIPT-39
Add optional flag to not update system first
LBBS-58
net_irc: Make ping interval adjustable
DAHLIN-1
Makefile: remove update target
PHREAKSCRIPT-43
Add spanconfig command
ASTERISK-106
chan_pjsip: Modify From header appropriately for unavailable presentation
PHREAKNET-47
Add automation for bill mailings
LBBS-71
Limit registrations from same IP within a certain amount of time
ASTERISK-64
chan_dahdi: autoreoriginate doesn't work if caller hung up on
LBBS-66
logger: Add rate limiting of log messages
INTERLINKED-16
Add option to not be notified about user's own issues
LBBS-46
Block malicious mail servers after repeated failures
ASTERISK-52
dsp.c: Add ast_freq_reset
LBBS-11
door_evergreen: Use isonetexec instead of exec
LBBS-7
Fix backspace detection/handling
LBBS-3
module.c: Module ref tracking is flaky
ASTERISK-37
chan_pjsip: CALLERID(ani2) not working
ASTERISK-36
res_pjsip_logger: Add filtering by username
ASTERISK-108
config.c: Investigate and fix various config file rewrite bugs
ASTERISK-90
chan_iax2: Add log message for rejected calls
ASTERISK-27
chan_dahdi: add IS_FXO_SIG macro
ASTERISK-103
GitHub Issue 661 was not autoclosed by PR
SLACK-2
README: Add missing pre-reqs
ASTERISK-55
chan_dahdi: add NUM_ANALOG_SUBS
ASTERISK-34
app_queue: Allow setting context at runtime
ASTERISK-31
Add AMI event for assertion
ASTERISK-30
Add ast_channel_tech_name_match function
ASTERISK-29
chan_iax2: Add ${CHANNEL(authmethod)}
ASTERISK-15
chan_dahdi: Allow sending SDMF Caller ID
ASTERISK-98
Add hangup callbacks
ASTERISK-47
res_pjsip_session: Warn if no shared codecs
PHREAKSCRIPT-49
wanpipe doesn't compile above 6.1 kernel
ASTERISK-86
app_confbridge: Channel can join wrong bridge due to race condition
PHREAKSCAN-2
Improve automation
INTERLINKED-6
PhreakNet Forums
DAHLIN-10
Allow enabling EMPULSE and EMFLASH simultaneously
LBBS-82
localtime_r deadlock
ASTERISK-135
Mutex errors on FreeBSD
LBBS-74
net_ssh: Sessions persist even when they no longer exist
DAHLIN-6
Frame relay broken
LBBS-41
socket.c: SEGV in bbs_node_readline
LBBS-69
net_ssh: SFTP uploads fail with WinSCP
PHREAKSCRIPT-19
app_verify: Double free
PHREAKNET-14
1+ calls do not work for single numbers
PHREAKNET-6
Verification flags international calls
LBBS-47
Email enhancements
ASTERISK-131
chan_dahdi: Automatically update time when DST starts/ends
WSSMAIL-5
Add full attachment support
ASTERISK-129
core: Add ref/unref for ast_moh callbacks
DAHLIN-8
Readd native SF support
PHREAKNET-49
ML model for 3-slot coin detection
PHREAKSCRIPT-45
TDMoIP driver module
PHREAKSCRIPT-44
Finish ADSI applications
PHREAKSCRIPT-41
Create virtual modem application using softmodem
PHREAKNET-41
Allow for more granular billing based on switch ZIP code
PHREAKNET-33
Finish TSPS web console
ASTERISK-121
Upstream PhreakScript patches
LBBS-72
mod_webdav: Add WebDAV support
ASTERISK-118
chan_iax2: Improve encryption support
DAHLIN-5
FXO rings off hook when rotary dialing on the line
ASTERISK-105
chan_dahdi: Add CLI command to display line voltages
PHREAKSCRIPT-37
app_softmodem: Support speeds higher than 2400bps
ASTERISK-93
chan_dahdi: DSP optimizations
WSSMAIL-13
Improve multi-INBOX navigation
LBBS-56
net_snpp: Add Simple Network Paging Protocol support
PHREAKNET-39
Splice Fred Covington prompts for speaking clock
LBBS-48
net_irc: Support multi-server networks
EVERGREEN-3
Add NNTP support for newsgroups
LBBS-38
mod_smtp_mailing_lists: Allow dynamic membership
LBBS-36
net_telnet: Improve protocol support
LBBS-35
net_acap: Add ACAP protocol support
WSSMAIL-4
Add PHPMailer support for format=flowed
ASTERISK-7
Improve sound control capabilities
LBBS-30
net_nntp: Complete overhaul/rewrite to use maildirs
ASTERISK-99
pjsip: Add Cisco CUCM patch functionality
LBBS-49
Add functionality expected of a traditional BBS package
LBBS-34
net_xmpp: Add XMPP protocol support
LBBS-33
net_imap: Add/standardize commands to modify or purge keywords
ASTERISK-75
chan_dahdi: Add Call Hold feature
ASTERISK-57
bridging: Make DAHDI, always softmix bridging modules
EVERGREEN-2
Navigation breaks when requirefromhelomatch=no in LBBS
DOCS-1
Kickstart the wiki
ASTERISK-79
config.c: Make ast_variable_retrieve return last match
ASTERISK-87
asterisk.c: Prevent creation of duplicate Asterisk processes
PHREAKNET-36
Trunking integration with Phil McCarter
ASTERISK-16
res_pbx_validate: Add commands to warn of dialplan problems
LBBS-80
mod_mimeparse: Occasional segfault when running tests
LBBS-84
net_imap: Microsoft clients disconnected after 1 hour
ASTERISK-134
chan_dahdi: Improve configuration validation
DAHTOOL-3
Compilation warnings on 32-bit (i686)
PHREAKSCRIPT-33
verify.conf: Flag invalid NXXs as illegitimate for NANPA calls
LBBS-61
net_imap: Soft assertion in parse_flags_string
LBBS-63
net_imap, io_compress: Spurious warnings if quota exceeded
ASTERISK-100
chan_dahdi: PRI lock held at module unload
LBBS-39
net_smtp: Occasional memory corruption on email delivery
LBBS-37
Restrict outgoing port 25 from containers while allowing other traffic
LBBS-23
net_smtp: DMARC reports not sent due to rejection of localhost
LBBS-20
node.c: Occasional race conditions during node shutdown cause deadlock
LBBS-17
Temporary files not always cleaned up
LBBS-79
Makefile: cp -n is deprecated
ASTERISK-109
voicemail.conf.sample: Clarify misnamed option behavior
PHREAKSCRIPT-35
app_mail: SendMail returns SUCCESS
LBBS-51
General TDD improvements
PHREAKSCRIPT-23
res_phreaknet: Increase cURL timeout
ASTERISK-94
app_chanspy: Fix bad audio with single direction operation
ASTERISK-76
app_dial: Allow MOH until progress received
LBBS-28
mod_discord: Warn users if IRC users are not online
PHREAKSCRIPT-16
app_selective: Missing pause after add/delete/instructions prompt
DAHTOOL-2
dahdi_cfg: Compiler warnings
ASTERISK-43
pbx_builtins: allow Answer to specify the channel
ASTERISK-35
sig_analog: Fix buffer overflow
PHREAKSCRIPT-58
sig_analog: Allow hearpulsing gain to be adjusted
ASTERISK-128
Rename ast_sip_presence_xml_ functions
ASTERISK-127
func_codecs: view/update codecs
ASTERISK-123
app_voicemail: Add ability to disable "thank-you" when ending voicemail
LBBS-2
module.c: Improve module loading process
WSSMAIL-15
Allow navigating messages using arrow keys
ASTERISK-104
Improve dahdi show channels output
PHREAKSCRIPT-29
res_phreaknet: Don't try making API requests if not a PhreakNet node
LBBS-59
Add HTTP endpoint for updating IRC presence automatically
WSSMAIL-14
Checkbox range selection doesn't always work reliably
PHREAKSCRIPT-34
app_verify: Check additional headers for STIR/SHAKEN attestation
SLACK-3
examples: Add example program to log everything to a CSV
PHREAKSCRIPT-22
Add framehook to display dialed digits
PHREAKSCRIPT-21
app_looparound: Add LoopAround application
LBBS-45
Use isoexec whenever possible
PHREAKSCRIPT-17
res_phreaknet: iax.conf, et. al. are truncated when there is no disk space left
LBBS-44
io_tls: TLS errors when no certs are defined
LBBS-43
mod_discord: Improve handling of in-thread replies
LBBS-42
mod_discord: Actions not relayed properly from IRC
LBBS-40
net_smtp: Add additional loop avoidance mechanisms
ASTERISK-73
chan_dahdi: Hunt to next trunk in group if busy
LBBS-29
net_irc: Add reminder bot
ASTERISK-69
res_cli_originate: Allow specifying Caller ID on CLI
DAHLIN-3
build: Compiler warnings
ASTERISK-65
sig_analog: Allow simple switch to time out to dialplan
LBBS-10
mod_sysop: Allow modifying user info from console
LBBS-8
net_imap: Accounts occasionally fail to load or are reordered
LBBS-5
tests: Add TLS tests
LBBS-4
tests: Add tests that establish remote console connections
ASTERISK-63
Upstream certain PhreakScript modules
ASTERISK-53
formats: add ulaw/alaw WAV support
ASTERISK-51
app_originate: Allow spooling future calls
INTERLINKED-4
InterLinked Issues API
PHREAKNET-7
Subscriber Service Disconnect Request Option
ASTERISK-126
chan_iax2: Add fixed jitterbuffer
INTERLINKED-17
Blog: Issues with tag editing and viewing
INTERLINKED-15
Improve paging API
PHREAKNET-45
Operator system PSPs are outdated
LBBS-22
mod_mail_trash: Eliminate bbs_pthread_cancel_kill
LBBS-52
net_smtp: Add limited support for VRFY and EXPN
PHREAKSCRIPT-25
chan_sccp no longer compiles
WSSMAIL-8
Add NNTP support and IRC integration
PHREAKSCRIPT-18
Add better test coverage for 32-bit systems
ASTERISK-84
Add 'core show variables' command
ASTERISK-74
chan_dahdi: Add AMI event for callwaiting
WSSMAIL-7
Add ability for zero-trust type authentication
LBBS-27
mod_irc_relay: Allow relaying of away/here status
LBBS-24
build: Pre-reqs don't compile on Fedora
LBBS-9
mod_webmail: Improve MIME parsing to extract HTML/PT components
ASTERISK-58
xml: Add config documentation
ASTERISK-56
res_musiconhold: Add recursive files support
PHREAKNET-32
Set up Millennium Manager
PHREAKNET-24
[REQ] TTY Telegrams
ASTERISK-11
chan_dahdi: Add wink guard
ASTERISK-8
Optimize boilerplate RSA to MD5 fallback
PHREAKNET-20
Billing based on individual CLLI zip codes
PHREAKNET-1
Add third-party billing integration
PHREAKNET-10
Enhanced utilization of Feature Group D
ASTERISK-10
Proctor application for DAHDI
PHREAKNET-9
General ARTNVAAXCG0 enhancements
ASTERISK-136
app_voicemail: Voicemails stored but no email sent
PHREAKSCRIPT-50
app_acts: Finish fine tuning and bug fixes
PHREAKSCRIPT-47
make webvmail
INTERLINKED-7
TTY BBS lines (45.5+50) issues
ASTERISK-85
chan_pjsip: Add channel encryption integration
PHREAKSCRIPT-51
Add 32-bit/ARM builds
ASTERISK-89
app_stack: Print proper exit location for PBXless channels
ASTERISK-125
app_voicemail: Warning when hanging up during playback
ASTERISK-120
app_senddtmf: SendDTMF failure if not answering channel
LBBS-15
smtp: Locking errors, deadlock when queue runs during delivery
PHREAKSCRIPT-24
DAHDI builds in GitHub CI occasionally fail due to IPv6
ASTERISK-67
voicemail.conf.sample: maxsilence/minsecs trigger warning
ASTERISK-50
app_dial: Fix or document r tonezone option
DAHTOOL-1
system.conf: Fix typos
ASTERISK-40
pjsip: document MessageSend AOR limitation
ASTERISK-32
chan_dahdi: Allow Call Forwarding to be set/get programatically
ASTERISK-25
app_originate: allow early media, labels
ASTERISK-24
app_chanspy: Add no answer option
DAHLIN-2
Fix typos and dead links
PHREAKSCRIPT-54
Replace LOAD_STR_INT with ast_yesno
ASTERISK-48
func_devstate: Delete empty from AstDB
ASTERISK-22
general: Fix various typos

← All Issues || New Issue →

Sort Normal || Priority

Details


This should be a hard assertion, but it's a soft assertion because that was getting triggered and leading to aborts. However, it shouldn't be asserting at all, so this needs to be fixed. Even if it's not aborting now, it still results in a disconnect of the entire IMAP session.

[2024-04-26 08:40:50.127]   DEBUG[3527962]: net_imap.c:4675 handle_client: 0x7f414effa5d0 => 322 STATUS "REDACTED" (UNSEEN MESSAGES RECENT SIZE)
[2024-04-26 08:40:50.127]   DEBUG[3527962]: imap_client.c:828 __load_virtual_mailbox: Reusing existing active connection for REDACTED
[2024-04-26 08:40:50.127]   DEBUG[3527962]: imap_server_maildir.c:255 set_maildir_readonly: Mailbox 'REDACTED' has a virtual mapping
[2024-04-26 08:40:50.127]   ERROR[3527962]: imap_client_status.c:525 remote_status: Remote IMAP client does not have an associated IMAP session???
[2024-04-26 08:40:50.127]   ERROR[3527962]: imap_client_status.c:526 remote_status: Failed soft assertion 0
[2024-04-26 08:40:50.127]   ERROR[3527962]: backtrace.c:263 bbs_log_backtrace: Got 10 backtrace records
[2024-04-26 08:40:50.424]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  0: lbbs bbs_log_backtrace()
[2024-04-26 08:40:50.424]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  1: [0x7f4190dc5b60] net_imap.so           imap_client_status.c:527   remote_status()
[2024-04-26 08:40:50.424]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  2: [0x7f4190dde756] net_imap.so                     net_imap.c:1243  handle_remote_status()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  3: [0x7f4190de9376] net_imap.so                     net_imap.c:1512  handle_status()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  4: [0x7f4190df05b2] net_imap.so                     net_imap.c:4257  imap_process()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:283 bbs_log_backtrace:  5: [0x7f4190df5b16] net_imap.so                     net_imap.c:4677  handle_client()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:283 bbs_log_backtrace:  5: [       inlined] net_imap.so                     net_imap.c:4710  imap_handler()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  6: [0x7f4190df61b4] net_imap.so                     net_imap.c:4735  __imap_handler()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  7: lbbs <unknown>()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  8: [0x7f4195df8044] libc.so.6                 pthread_create.c:442   start_thread()
[2024-04-26 08:40:50.425]   ERROR[3527962]: backtrace.c:287 bbs_log_backtrace:  9: [0x7f4195e7861c] libc.so.6                         clone3.S:83    clone3()
[2024-04-26 08:40:50.425]   DEBUG[3527962]: net_imap.c:4625 imap_process: STATUS command returned -1
[2024-04-26 08:40:50.425]   DEBUG[3527962]: mod_mail.c:228 mailbox_dispatch_event: Dispatching mailbox event 'Logout'

Possibly related?

Thread 1 (Thread 0x7f8395ffb6c0 (LWP 1120694)):
#0  0x00007f83d27c1e9b in __imap_client_send_wait_response (client=0x7f83d801d900, fd=fd@entry=-1, ms=ms@entry=5000, echo=echo@entry=1, lineno=<optimized out>, cb=0x0, cbdata=<optimized out>, f>
        buf = 0xffffffffffffff10 <error: Cannot access memory at address 0xffffffffffffff10>
        len = <optimized out>
        res = -1
        tagbuf = "\000\000\000\000\000\000\000\027\000\000\000\000\000\000"
        taglen = <optimized out>
        ap = {{gp_offset = 3816488351, fp_offset = 32643, overflow_arg_area = 0x17, reg_save_area = 0x7f83e37c7693 <__strcspn_generic+387>}}
        tag = 0x7f83d27ef09f "tag"
        __func__ = "__imap_client_send_wait_response"
#1  0x00007f83d27eadbb in imap_process (imap=imap@entry=0x7f8395ff86b0, s=<optimized out>, s@entry=0x7f8395ff8b40 "32") at net_imap.c:4536

Comments

10/13/2024 12:25 PM — InterLinked

Autoresolved by code commit on GitHub:

net_imap: Prevent invalid memory accesses due to stale pointer.
https://github.com/InterLinked1/lbbs/commit/d86994c4e00a03dd22b096b7a2bab2d7346a5f33

You must be logged in to leave a comment.