Subject: bug#15898: Emacs aborts in buf_charpos_to_bytepos

From: Eli Zaretskii <[email-masked]>
Date: Fri, 15 Nov 2013 09:39:06 +0200

> Date: Thu, 14 Nov 2013 16:50:37 -0500
> From: Barry OReilly <[email-masked]>
> 
> I updated my Emacs to the latest trunk, built bootstrap, and
> approximately an hour later it core dumped.
> 
> Program terminated with signal 6, Aborted.
> #0  0x00000031cfc0e7fd in raise () from /lib64/libpthread.so.0
> (gdb) bt
> #0  0x00000031cfc0e7fd in raise () from /lib64/libpthread.so.0
> #1  0x0000000000503875 in terminate_due_to_signal (sig=6,
> backtrace_limit=2147483647) at emacs.c:377
> #2  0x0000000000569274 in die (msg=<value optimized out>, file=<value
> optimized out>, line=<value optimized out>) at alloc.c:6726
> #3  0x0000000000537a77 in buf_charpos_to_bytepos (b=0x180761e0,
> charpos=26969) at marker.c:145
> #4  0x0000000000554190 in find_newline (start=26969, start_byte=26918,
> end=26939, end_byte=<value optimized out>, count=1,
> shortage=0x7fffdaac9598, bytepos=0x0, allow_quit=true) at search.c:701
> #5  0x000000000055531e in find_before_next_newline (from=16655, to=6,
> cnt=128, bytepos=0x0) at search.c:902
> #6  0x000000000057fbb4 in Fline_end_position (n=<value optimized out>) at
> editfns.c:812

This looks like another duplicate of 15841, but that would imply that
your previous update was before revno 115033, which was committed
quite some time ago.  Can you tell if that was indeed so?