id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2953	floating point exception with editor_tab_spacing=1	Enlik	andrew_b	"editor_tab_spacing=1 in mc.ini and executing something like:
mcedit filename

leads to SIGFPE.

The problem seems to be here (disclaimer: quick look):
./src/editor/edit.c:3261
this part: 
edit->curs_col % (HALF_TAB_SIZE * space_width)

HALF_TAB_SIZE is defined as ((int) option_tab_spacing / 2), so when option_tab_spacing is 1, it leads to num % 0.

{{{
#0  0x080cd929 in edit_move_to_prev_col (edit=0x82080e0, p=0) at edit.c:3262----------------------------+ 
#1  0x080d02e6 in edit_load_position (edit=0x82080e0) at edit.c:518
#2  edit_init (edit=<optimized out>, y=1, x=0, lines=40, cols=146, filename_vpath=0x816a7d0, line=0) at edit.c:2306
#3  0x080dfda0 in edit_add_window (h=0x81f6528, y=1, x=0, lines=40, cols=146, f=0x816a7d0, fline=0) at editwidget.c:1218
#4  0x080dff18 in edit_files (files=0x8167dd0) at editwidget.c:1107
#5  0x0808d018 in mc_maybe_editor_or_viewer () at midnight.c:998
#6  do_nc () at midnight.c:1766
#7  0x08053b45 in main (argc=2, argv=0xbfffe7e4) at main.c:400
}}}"	defect	closed	major	4.8.8	mcedit	4.8.7	fixed					merged	committed-master
