Opened 8 years ago

Closed 8 years ago

#8174 closed bug (fixed)

mail_daemon crashing on fetching mail

Reported by: humdinger Owned by: czeidler
Priority: normal Milestone: R1
Component: Servers/mail_daemon Version: R1/Development
Keywords: pop3 Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


This is hrev43375.

Fetching mail (pop3) crashes the daemon with the attached backtrace. It's still fetching the mails though, it seems.

Attachments (1)

mail_daemon-crash (5.9 KB ) - added by humdinger 8 years ago.
BT when fetching mail

Download all attachments as: .zip

Change History (3)

by humdinger, 8 years ago

Attachment: mail_daemon-crash added

BT when fetching mail

comment:1 by humdinger, 8 years ago

I started the mail_daemon with /boot/system/servers/mail_daemon -E and get this written to the syslog:

KERN: bfs: bfs_create_index:2077: File or Directory already exists
KERN: Last message repeated 59 times.
KERN: write access attempted on write-protected area 0x6f35 at 0x0061a000
KERN: vm_page_fault: vm_soft_fault returned error 'Permission denied' on fault at 0x61ae04, ip 0x23063d, write 1, user 1, thread 0x4bd
KERN: vm_page_fault: thread "user thread" (1213) in team "mail_daemon" (1206) tried to write address 0x61ae04, ip 0x23063d ("libroot_debug.so_seg0ro" +0x3063d)
KERN: debug_server: Thread 1213 entered the debugger: Segment violation
KERN: stack trace, current PC 0x23063d  atomic_add + 0x8:
KERN:   (0x780f5f8c)  0x53d1f5  _._11BStringList + 0x2d
KERN:   (0x780f5fbc)  0x25f79a9  CheckForDeletedMessages__12POP3Protocol + 0x75
KERN:   (0x780f68ec)  0x25f58fc  SyncMessages__12POP3Protocol + 0x208
KERN:   (0x780f6e5c)  0x60ff7b  MessageReceived__21InboundProtocolThreadP8BMessage + 0x77
KERN:   (0x780f6f0c)  0x3fdda7  DispatchMessage__7BLooperP8BMessageP8BHandler + 0x5b
KERN:   (0x780f6f3c)  0x3ff6d1  task_looper__7BLooper + 0x205
KERN:   (0x780f6f7c)  0x3ff2c3  _task0___7BLooperPv + 0x3f
KERN:   (0x780f6fac)  0x22c7d7  thread_entry + 0x23
KERN: 1211: DEBUGGER: free(): free failed for address 0x627d20
KERN: debug_server: Killing team 1206 (/boot/system/servers/mail_daemon -E)
KERN: debug_server: TeamDebugHandler::Init(): Failed to get info for team 1206: Operation on invalid team
KERN: debug_server: KillTeam(): Error getting info for team 1206: Operation on invalid team
KERN: debug_server: Killing team 1206 ()

comment:2 by czeidler, 8 years ago

Resolution: fixed
Status: newclosed

There have been to versions of BStringList which causes the crash. Fixed in hrev43506.

Note: See TracTickets for help on using tickets.