>>>>"SJT" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
SJT> Could you give me details on those
invalid reads? They might be
SJT> a lead on some crashes in Mule.
$ valgrind -v ./xemacs -vanilla -kill
[...]
==1219== ERROR SUMMARY: 52 errors from 10 contexts (suppressed: 95 from 2)
==1219==
==1219== 1 errors in context 1 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906328: strlen (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x810CBEB: dfc_external_data_len (text.h:287)
==1219== by 0x808E4DC: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219== Address 0x1C6BE4D0 is 0 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 2 errors in context 2 of 10:
==1219== Conditional jump or move depends on uninitialised value(s)
==1219== at 0x82AA336: xm_update_label (lwlib-Xm.c:222)
==1219== by 0x82AA60B: xm_safe_update_label (lwlib-Xm.c:314)
==1219== by 0x82AAC5F: xm_update_one_widget (lwlib-Xm.c:854)
==1219== by 0x82B3FA7: xlw_update_tab_control (lwlib-Xlw.c:458)
==1219== by 0x82B4207: xlw_update_one_widget (lwlib-Xlw.c:578)
==1219== by 0x82A88CA: set_one_value (lwlib.c:718)
==1219== by 0x82A893F: update_one_widget_instance (lwlib.c:742)
==1219== by 0x82A8BB0: initialize_widget_instance (lwlib.c:821)
==1219== by 0x82A8FA4: lw_make_widget (lwlib.c:974)
==1219== by 0x82A9015: lw_create_widget (lwlib.c:989)
==1219== by 0x827D05E: x_widget_instantiate (glyphs-x.c:2468)
==1219== by 0x827D838: x_tab_control_instantiate (glyphs-x.c:2678)
==1219==
==1219== 2 errors in context 3 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906642: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x81BCE32: fixed_buffer_reader (lstream.c:1468)
==1219== by 0x81BB78C: Lstream_raw_read (lstream.c:628)
==1219== by 0x81BB84A: Lstream_read_more (lstream.c:648)
==1219== by 0x81BBA2E: Lstream_read_1 (lstream.c:714)
==1219== by 0x81BBADA: Lstream_read (lstream.c:743)
==1219== by 0x8250F2B: dfc_convert_to_internal_format (text.c:4435)
==1219== by 0x808E431: make_ext_string (alloc.c:2948)
==1219== by 0x808E4F6: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== Address 0x1C6BE4D7 is 7 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 2 errors in context 4 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B90663C: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x81BCE32: fixed_buffer_reader (lstream.c:1468)
==1219== by 0x81BB78C: Lstream_raw_read (lstream.c:628)
==1219== by 0x81BB84A: Lstream_read_more (lstream.c:648)
==1219== by 0x81BBA2E: Lstream_read_1 (lstream.c:714)
==1219== by 0x81BBADA: Lstream_read (lstream.c:743)
==1219== by 0x8250F2B: dfc_convert_to_internal_format (text.c:4435)
==1219== by 0x808E431: make_ext_string (alloc.c:2948)
==1219== by 0x808E4F6: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== Address 0x1C6BE4D8 is 8 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 2 errors in context 5 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906636: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x81BCE32: fixed_buffer_reader (lstream.c:1468)
==1219== by 0x81BB78C: Lstream_raw_read (lstream.c:628)
==1219== by 0x81BB84A: Lstream_read_more (lstream.c:648)
==1219== by 0x81BBA2E: Lstream_read_1 (lstream.c:714)
==1219== by 0x81BBADA: Lstream_read (lstream.c:743)
==1219== by 0x8250F2B: dfc_convert_to_internal_format (text.c:4435)
==1219== by 0x808E431: make_ext_string (alloc.c:2948)
==1219== by 0x808E4F6: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== Address 0x1C6BE4D9 is 9 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 2 errors in context 6 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906630: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x81BCE32: fixed_buffer_reader (lstream.c:1468)
==1219== by 0x81BB78C: Lstream_raw_read (lstream.c:628)
==1219== by 0x81BB84A: Lstream_read_more (lstream.c:648)
==1219== by 0x81BBA2E: Lstream_read_1 (lstream.c:714)
==1219== by 0x81BBADA: Lstream_read (lstream.c:743)
==1219== by 0x8250F2B: dfc_convert_to_internal_format (text.c:4435)
==1219== by 0x808E431: make_ext_string (alloc.c:2948)
==1219== by 0x808E4F6: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== Address 0x1C6BE4DA is 10 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 3 errors in context 7 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906656: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x81BCE32: fixed_buffer_reader (lstream.c:1468)
==1219== by 0x81BB78C: Lstream_raw_read (lstream.c:628)
==1219== by 0x81BB84A: Lstream_read_more (lstream.c:648)
==1219== by 0x81BBA2E: Lstream_read_1 (lstream.c:714)
==1219== by 0x81BBADA: Lstream_read (lstream.c:743)
==1219== by 0x8250F2B: dfc_convert_to_internal_format (text.c:4435)
==1219== by 0x808E431: make_ext_string (alloc.c:2948)
==1219== by 0x808E4F6: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== Address 0x1C6BE4D2 is 2 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 9 errors in context 8 of 10:
==1219== Source and destination overlap in memcpy(0x1C7D4D84, 0x1C7D4D84, 4)
==1219== at 0x1B90671C: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BC7C37A: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC7D150: _XtGetSubresources (in /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC7D2B9: XtGetSubresources (in /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BA7717F: (within /usr/X11R6/lib/libXm.so.3.0.2)
==1219== by 0x1BA76C77: (within /usr/X11R6/lib/libXm.so.3.0.2)
==1219== by 0x1BA67C6D: (within /usr/X11R6/lib/libXm.so.3.0.2)
==1219== by 0x1BC64B77: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC64B41: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC64B41: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC64B41: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC64B41: (within /usr/X11R6/lib/libXt.so.6.0)
==1219==
==1219== 11 errors in context 9 of 10:
==1219== Invalid read of size 1
==1219== at 0x1B906331: strlen (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x810CBEB: dfc_external_data_len (text.h:287)
==1219== by 0x808E4DC: build_ext_string (alloc.c:2972)
==1219== by 0x81A5CD1: Fset_current_locale (intl.c:92)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219== Address 0x1C6BE4D1 is 1 bytes inside a block of size 12 free'd
==1219== at 0x1B9057CD: free (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BF511C6: setlocale (in /lib/tls/libc.so.6)
==1219== by 0x81A5C6F: Fset_current_locale (intl.c:79)
==1219== by 0x80EAB86: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
==1219== by 0x80E7849: Fcall_with_condition_handler (eval.c:2101)
==1219== by 0x81A5D3B: init_intl (intl.c:174)
==1219== by 0x80DF74A: xemacs_21_5_b22_i686_pc_linux (emacs.c:2500)
==1219== by 0x80E02F1: main (emacs.c:3064)
==1219==
==1219== 18 errors in context 10 of 10:
==1219== Source and destination overlap in memcpy(0x1C8E9040, 0x1C8E9040, 4)
==1219== at 0x1B90671C: memcpy (in /usr/lib/valgrind/vgpreload_memcheck.so)
==1219== by 0x1BC7C37A: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC7D40F: _XtGetResources (in /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC6561A: (within /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC65A79: _XtAppCreateShell (in /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x1BC65C4F: XtAppCreateShell (in /usr/X11R6/lib/libXt.so.6.0)
==1219== by 0x82649BB: x_init_device (device-x.c:802)
==1219== by 0x80C7A74: Fmake_device (device.c:660)
==1219== by 0x80EABCE: Ffuncall (eval.c:3847)
==1219== by 0x809F6CB: execute_optimized_program (bytecode.c:823)
==1219== by 0x80F2418: funcall_compiled_function (eval.c:3457)
==1219== by 0x80EAE62: Ffuncall (eval.c:3886)
--
Marcus