rspamd/rspamd.com

Controller crashing when trying to upload a message

Closed this issue · 3 comments

micw commented

Environement:

  • Debian 10
  • Apache Webserver as proxy
  • Packages from rspamd debian repos (Version 2.5-156~buster)

Behaviour:

  • I upload any message in the webui (just typing a few chars is sufficient)
  • submit
  • Controller always segfaults

Stacktrace:

2020-07-23 10:37:03 #10628(controller) rspamd_crash_sig_handler: caught fatal signal 11(Segmentation fault), pid: 10628, trace: 
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 0: 000055B355697398: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 1: 00007F2F216683DA: rspamd_session_pending()+0x5a
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 2: 000055B35569A497: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 3: 00007F2F21627AFE: rspamd_http_router_new()+0x60e
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 4: 00007F2F2162835C: rspamd_http_connection_new_keepalive()+0x12c
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 5: 00007F2F21586948: http_parser_execute()+0xf78
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 6: 00007F2F21627D96: rspamd_http_router_new()+0x8a6
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 7: 00007F2F2118EA9E: ev_invoke_pending()+0x5e
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 8: 00007F2F211944E8: ev_run()+0xf08
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 9: 000055B3556969A3: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 10: 00007F2F2162B240: rspamd_fork_worker()+0x550
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 11: 000055B355690436: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 12: 000055B355690772: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 13: 000055B355689563: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 14: 00007F2F20FEB09B: __libc_start_main()+0xeb
2020-07-23 10:37:03 #10628(controller) rspamd_print_crash: 15: 000055B3556899FA: <unknown>
2020-07-23 10:37:03 #10628(controller) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report

A coredump is available. When I open it with gdb, it shows:

Reading symbols from /usr/bin/rspamd...(no debugging symbols found)...done.
[New LWP 10628]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rspamd: controller process (localhost:11334) '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000055b355697398 in ?? ()

2020-07-23 10:37:03 #10628(controller) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug report

micw commented

Here's the result with debug symbols enabled:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `rspamd: controller process (localhost:11334) '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  rspamd_controller_check_fin_task (ud=<optimized out>, ud=<optimized out>) at ./src/controller.c:1947
1947	./src/controller.c: No such file or directory.
micw commented

Closing (wrong repository)