texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] RE: Texmacs segfault


From: Felix Breuer
Subject: Re: [Texmacs-dev] RE: Texmacs segfault
Date: 13 Oct 2002 00:59:24 +0200

On Thu, 2002-10-10 at 23:35, Stéphane Payrard wrote:
> 
> I suggest commenting out the first three functions in basic.cc.  
> Please tell us what result you do obtain by applying this suggestion.
> 
> I am doing stuff with Qt and gcc 3.2 and texmacs crashes immediately
> without this commenting out. With regular texmacs, commenting out
> results in a more stable texmacs. I am using Mandrake cooker but I
> suspect this may be true on other platform using gcc 3.2.

Commenting out the first two, three or four functions in basic.cc made
TeXmacs only more unstable. Under these conditions I got segfaults also
when moving the cursor with the arrow keys. Using the custom new and
delete operators from basic.cc TeXmacs crashed only when saving 
(only when the file is actually written to the disk, and the changes
*are* saved before the segfault occurs). I append a(nother) trace (see
below). I also filed a bug report with the Gentoo distribution since
this problem may well be ditro-specific.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11967)]
0x40306042 in chunk_free () from /lib/libc.so.6
(gdb) where
#0  0x40306042 in chunk_free () from /lib/libc.so.6
#1  0x40308507 in free () from /lib/libc.so.6
#2  0x080569a8 in operator delete (ptr=0x1) at Basic/Types/basic.cc:46
#3  0x083ba4c3 in destroy_tree_rep (rep=0x403b8158) at
Basic/Types/string.hh:26
#4  0x083c60d1 in ~array_rep (this=0x8770124) at Basic/Data/tree.hh:159
#5  0x083ba50f in destroy_tree_rep (rep=0x879036c) at
Basic/Types/array.hh:42
#6  0x083c60d1 in ~array_rep (this=0x876dc2c) at Basic/Data/tree.hh:159
#7  0x083ba50f in destroy_tree_rep (rep=0x876dc0c) at
Basic/Types/array.hh:42
#8  0x084341c3 in tm_data_rep::save(string, tm_view_rep*)
(this=0x403b44a0, name={rep = 0x0}, 
    vw=0x87574c8) at Texmacs/Data/tm_file.cc:278
#9  0x08434400 in tm_data_rep::save_buffer(string, string)
(this=0x84c3f44, name={rep = 0x8742de8}, fm=
      {rep = 0x8742de8}) at Basic/Types/string.hh:47
#10 0x08284b90 in tmg_texmacs_save_buffer (arg1=-1073747296,
arg2=-1073747280) at Texmacs/server.hh:173
#11 0x4011c669 in scm_ceval () from /usr/lib/libguile.so.9
#12 0x401265a5 in scm_eval_3 () from /usr/lib/libguile.so.9
#13 0x40126761 in scm_eval_x () from /usr/lib/libguile.so.9
#14 0x40156ab9 in scm_eval_string () from /usr/lib/libguile.so.9
#15 0x4011c3b3 in scm_ceval () from /usr/lib/libguile.so.9
#16 0x4011dc26 in scm_ceval () from /usr/lib/libguile.so.9
#17 0x4011f5c4 in scm_apply () from /usr/lib/libguile.so.9
#18 0x4015bbb8 in scm_body_thunk () from /usr/lib/libguile.so.9
#19 0x4015b679 in scm_internal_catch () from /usr/lib/libguile.so.9
#20 0x4015be0f in scm_catch () from /usr/lib/libguile.so.9
#21 0x4011c689 in scm_ceval () from /usr/lib/libguile.so.9
#22 0x401265a5 in scm_eval_3 () from /usr/lib/libguile.so.9
#23 0x40126761 in scm_eval_x () from /usr/lib/libguile.so.9
#24 0x40156a53 in scm_eval_0str () from /usr/lib/libguile.so.9
#25 0x4012ce27 in gh_eval_str () from /usr/lib/libguile.so.9
#26 0x08203a6b in eval_scheme_any (s={rep = 0x1}, address@hidden) at
Guile/Scheme/evaluate.cc:91
#27 0x08442387 in tm_scheme_rep::exec(string) (this=0x84c3f50, s={rep =
0x1})
    at Basic/Types/string.hh:47
#28 0x08442496 in tm_scheme_rep::exec(tree) (this=0x84c3f50, p=
      {rep = 0x1, static init = <optimized out>}) at
Basic/Data/tree.hh:157
#29 0x08444bbf in virtual thunk to tm_scheme_rep::exec(tree) () at
Texmacs/tm_scheme.hh:17
#30 0x081462e7 in edit_main_rep::exec(tree) (this=0x10ec75ec, p=
      {rep = 0x1, static init = <optimized out>}) at
Basic/Data/tree.hh:157
#31 0x08148622 in virtual thunk to edit_main_rep::exec(tree) ()
#32 0x0813eb79 in edit_interface_rep::try_shortcut(string)
(this=0x84e6aa4, comb={rep = 0x8481e04})
    at Basic/Data/tree.hh:157
#33 0x0813f847 in edit_interface_rep::key_press(string) (this=0x84e6aa4,
key={rep = 0x8481e04})
    at Basic/Types/string.hh:47
#34 0x0814060c in
edit_interface_rep::handle_keypress(event_ptr<keypress_event_rep>)
(this=0x84e6aa4, 
    ev={<event_ptr_base> = {rep = 0x1}, <No data fields>}) at
Basic/Types/string.hh:47
#35 0x08060579 in basic_widget_rep::handle(event) (this=0x84e6bf8,
ev={rep = 0x8913f70})
    at Window/Event/event_codes.hh:72
#36 0x080555ec in attribute_widget_rep::handle(event) (this=0x84e6bf8,
ev={rep = 0x8913f70})
    at Window/event.hh:54
#37 0x083f6678 in operator<< (w={rep = 0x8913f70}, ev={rep = 0x8913f70})
at Window/widget.hh:55
#38 0x0808c919 in canvas_widget_rep::handle(event) (this=0x1, ev={rep =
0x1}) at Window/widget.hh:55


Regards,
Felix.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]