FTR, the backtrace:
#0 __GI___libc_free (mem=0x19191919) at malloc.c:2963
#1 0xf74f4d79 in __GI__IO_wsetb (f=0x8050988 <_IO_stdin_>, b=0x0, eb=0x0, a=0)
at wgenops.c:106
#2 0xf74ff6fc in _IO_unbuffer_all () at genops.c:924
#3 _IO_cleanup () at genops.c:966
#4 0xf74c1742 in __run_exit_handlers (status=0, listp=0xf76463dc
<__exit_funcs>,
run_list_atexit=true, run_dtors=true) at exit.c:96
#5 0xf74c1801 in __GI_exit (status=0) at exit.c:105
#6 0x08048c0c in _start ()
so it looks something very odd happening in an opened file when flushing
it.
Samuel