SIGSEGV in parse_str_as_multibyte in MINGW compiled emacs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SIGSEGV in parse_str_as_multibyte in MINGW compiled emacs

Stephen Powell
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [hidden email] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I'm using the latest from CVS.

I select a zipped file in dired mode and try to view one of the files
it contains. Emacs then segfaults. This is repeatable. The backtrace
follows:

Program received signal SIGSEGV, Segmentation fault.
parse_str_as_multibyte (str=0x17b0a00 "", len=9865842, nchars=0x82f054,
    nbytes=0x82f058) at charset.c:1491
1491          if (UNIBYTE_STR_AS_MULTIBYTE_P (str, endp - str, n))
(gdb) bt
#0  parse_str_as_multibyte (str=0x17b0a00 "", len=9865842, nchars=0x82f054,
    nbytes=0x82f058) at charset.c:1491
#1  0x0103a589 in make_string (contents=0x17b0a00 "", nbytes=9865842)
    at alloc.c:2334
#2  0x010836f3 in x_consider_frame_title (frame=25644036) at xdisp.c:8380
#3  0x0105da88 in prepare_menu_bars () at xdisp.c:8424
#4  0x0105f8bb in redisplay_internal (preserve_echo_area=0) at xdisp.c:10141
#5  0x01081412 in redisplay () at xdisp.c:9747
#6  0x0100b2ab in read_char (commandflag=1, nmaps=7, maps=0x82fb2c,
    prev_event=24625153, used_mouse_menu=0x82fba8) at keyboard.c:2539
#7  0x01019135 in read_key_sequence (keybuf=0x82fcd0, bufsize=30,
    prompt=24625153, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8818
#8  0x01005ba5 in command_loop_1 () at keyboard.c:1527
#9  0x010a23b1 in internal_condition_case (bfun=0x1005910 <command_loop_1>,
    handlers=24709721, hfun=0x1005660 <cmd_error>) at eval.c:1389
#10 0x0101e2af in command_loop_2 () at keyboard.c:1318
#11 0x010a1f6a in internal_catch (tag=24698841,
    func=0x101e280 <command_loop_2>, arg=24625153) at eval.c:1148
#12 0x0101db52 in recursive_edit_1 () at keyboard.c:1297
#13 0x0101ddc7 in Frecursive_edit () at keyboard.c:1051
#14 0x01001c16 in main (argc=3, argv=0xa26018) at emacs.c:1775


In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
 of 2005-06-01 on D3LD581S
Distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.3) --cflags  -O3 -march=pentium4 -mfpmath=sse -DENABLE_CHECKING -mno-cygwin'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENA
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Dired by date

Minor modes in effect:
  auto-image-file-mode: t
  auto-insert-mode: t
  cua-mode: t
  display-time-mode: t
  whitespace-global-mode: t
  show-paren-mode: t
  encoded-kbd-mode: t
  mouse-wheel-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-decoding-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  next-error-follow-minor-mode:  Fol

Recent input:
<down> <down> <down> <down> <down> <down> <down> <down>
<help-echo> M-< C-s b a s <prior> <prior> <prior> <next>
<next> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <next> C-x
k C-x b s c r <return> <S-insert> <return> <S-insert>
<up> C-SPC C-a <C-insert> <down> <up> <help-echo> C-x
r l <down> <down> <down> <down> <down> <down> <down>
<return> <down> <down> <down> <down> <down> <down>
C-s s m a <return> <return> C-n C-n <help-echo> M-x
d e <tab> <backspace> <backspace> r e p <tab> C-g C-g
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <report-emacs-bug>

Recent messages:
Killed inactive buffer: cygwin.
Killed inactive buffer: emacs.
Mark set
Killed inactive buffer: sources.redhat.com.
Mark saved where search started
Making completion list...
Loading eieio-opt...done
Making completion list...
Quit [2 times]
Loading emacsbug...done

--
"I prefer rogues to imbeciles, because they sometimes take a rest."
-- Alexandre Dumas (fils)


_______________________________________________
Emacs-pretest-bug mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Reply | Threaded
Open this post in threaded view
|

Re: SIGSEGV in parse_str_as_multibyte in MINGW compiled emacs

Kim Storm
[hidden email] writes:

> This bug report will be sent to the Free Software Foundation,
> not to your local site managers!
> Please write in English if possible, because the Emacs maintainers
> usually do not have translators to read other languages for them.
>
> Your bug report will be posted to the [hidden email] mailing list.
>
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
>
> I'm using the latest from CVS.

So it seems related to a fix I made yesterday...
It gets a nonsense string length, but I don't see how...

>
> I select a zipped file in dired mode and try to view one of the files
> it contains. Emacs then segfaults. This is repeatable. The backtrace
> follows:

Pls. try commands below:

xbacktrace
pp Vmode_line_unwind_vector

> #0  parse_str_as_multibyte (str=0x17b0a00 "", len=9865842, nchars=0x82f054,
>     nbytes=0x82f058) at charset.c:1491
> #1  0x0103a589 in make_string (contents=0x17b0a00 "", nbytes=9865842)
>     at alloc.c:2334
> #2  0x010836f3 in x_consider_frame_title (frame=25644036) at xdisp.c:8380

up 2
p len
p title_start
p mode_line_noprop_buf
p mode_line_noprop_ptr
pp fmt

--
Kim F. Storm <[hidden email]> http://www.cua.dk



_______________________________________________
Emacs-pretest-bug mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Reply | Threaded
Open this post in threaded view
|

Re: SIGSEGV in parse_str_as_multibyte in MINGW compiled emacs

Kim Storm
[hidden email] (Kim F. Storm) writes:

> [hidden email] writes:
>
>> I'm using the latest from CVS.
>
> So it seems related to a fix I made yesterday...
> It gets a nonsense string length, but I don't see how...

I just installed a patch to fix this and similar crashes.

--
Kim F. Storm <[hidden email]> http://www.cua.dk



_______________________________________________
Emacs-pretest-bug mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug