[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Re: Debugging memory management in TeXmacs
From: |
Lionel Elie Mamane |
Subject: |
[Texmacs-dev] Re: Debugging memory management in TeXmacs |
Date: |
Fri, 20 Oct 2006 11:12:05 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Oct 20, 2006 at 09:56:09AM +0200, Lionel Elie Mamane wrote:
> If found a reproducible way to crash TeXmacs, (...) The error is
> that TeXmacs call free() on a pointer that was not returned by
> malloc() (...) I wasn't able to get a meaningful backtrace.
> The backtrace is completely unusable. Maybe this means the problem
> happens in Guile code rather than TeXmacs code? I have to recompile
> Guile in debugging mode then?
I did that, and indeed I get a real backtrace now. Here's the
beginning of it:
#0 0x00002ac21c15a07b in raise () from /lib/libc.so.6
#1 0x00002ac21c15b84e in abort () from /lib/libc.so.6
#2 0x00002ac21c190639 in __fsetlocking () from /lib/libc.so.6
#3 0x00002ac21c1971a3 in mallopt () from /lib/libc.so.6
#4 0x00002ac21c19722e in free () from /lib/libc.so.6
#5 0x000000000041935f in operator delete (ptr=0x1261bc8) at
./Classes/Abstract/basic.cpp:46
#6 0x0000000000411304 in ~abstract_struct (this=0x1261bd0) at
Classes/Abstract/basic.hpp:115
#7 0x000000000040b88a in ~observer (this=0x7fff8faf9f40) at
Classes/Abstract/observer.hpp:69
#8 0x0000000000605a52 in list_observer (address@hidden, address@hidden) at
./Classes/Atomic/list_observer.cpp:183
#9 0x0000000000605a9f in insert_observer (address@hidden, address@hidden) at
./Classes/Atomic/list_observer.cpp:188
#10 0x00000000006d9079 in tree_pointer_rep::set_tree (this=0x10568c0,
address@hidden) at ./Classes/Atomic/tree_pointer.cpp:69
#11 0x00000000006d90c3 in tree_pointer_rep::notify_detach (this=0x10568c0,
address@hidden, address@hidden, right=false)
at ./Classes/Atomic/tree_pointer.cpp:150
#12 0x0000000000605ea7 in list_observer_rep::notify_detach (this=0x126ba48,
address@hidden, address@hidden, right=false)
at ./Classes/Atomic/list_observer.cpp:124
#13 0x0000000000628d21 in detach (address@hidden, address@hidden, right=false)
at ./Classes/Abstract/observer.cpp:103
#14 0x0000000000628dba in detach (address@hidden, address@hidden, right=false)
at ./Classes/Abstract/observer.cpp:109
#15 0x0000000000628dba in detach (address@hidden, address@hidden, right=false)
at ./Classes/Abstract/observer.cpp:109
#16 0x000000000062909f in assign (address@hidden, address@hidden) at
./Classes/Abstract/observer.cpp:123
#17 0x00000000004f61e8 in edit_modify_rep::assign (this=0x9a4340,
address@hidden, address@hidden)
at ./Edit/Modify/edit_modify.cpp:70
#18 0x00000000005166b5 in edit_process_rep::start_output (this=0x9a4380) at
./Edit/Process/edit_session.cpp:268
#19 0x0000000000518a8d in edit_process_rep::process_input (this=0x9a4380) at
./Edit/Process/edit_session.cpp:228
#20 0x00000000005a7c25 in tmg_process_input () at
Guile/Glue/glue_editor.cpp:2302
#21 0x00002ac21b4243ee in scm_deval (x=0x2ac21c8c4da0, env=0x2ac21c8ddd10) at
eval.c:2732
#22 0x00002ac21b4270f3 in scm_dapply (proc=0x2ac21c855010, arg1=0x2974,
args=0x2ac21c8930c0) at eval.c:3655
#23 0x00002ac21b41c9ba in scm_apply (proc=0x2ac21c854f80, arg1=0x2974,
args=0x2974) at eval.c:3453
#24 0x00002ac21b41c706 in scm_call_0 (proc=0x2ac21c854f80) at eval.c:3309
#25 0x000000000056d369 in TeXmacs_call (args=0x7fff8fafb6e0) at
./Guile/Scheme/evaluate.cpp:152
#26 0x00002ac21b473888 in scm_internal_lazy_catch (tag=0x2374, body=0x56d31c
<TeXmacs_call>, body_data=0x7fff8fafb6e0,
handler=0x56d574 <TeXmacs_lazy_catcher(void*, scm_unused_struct*,
scm_unused_struct*)>, handler_data=0x7fff8fafb6e0) at throw.c:281
#27 0x000000000056d299 in TeXmacs_lazy_call_scm (args=0x7fff8fafb6e0) at
./Guile/Scheme/evaluate.cpp:172
#28 0x00002ac21b473673 in scm_internal_catch (tag=0x2374, body=0x56d26e
<TeXmacs_lazy_call_scm>, body_data=0x7fff8fafb6e0,
handler=0x56d2f8 <TeXmacs_catcher(void*, scm_unused_struct*,
scm_unused_struct*)>, handler_data=0x7fff8fafb6e0) at throw.c:205
#29 0x000000000056cf93 in TeXmacs_call_scm (args=0x7fff8fafb6e0) at
./Guile/Scheme/evaluate.cpp:179
Any clue?
--
Lionel
- [Texmacs-dev] Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/20
- [Texmacs-dev] Re: Debugging memory management in TeXmacs,
Lionel Elie Mamane <=
- [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/20
- [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/20
- Re: [Texmacs-dev] Re: Debugging memory management in TeXmacs, Joris van der Hoeven, 2006/10/22
- [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/23
- [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/23
- Re: [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/23
- [Texmacs-dev] Re: Debugging memory management in TeXmacs, Lionel Elie Mamane, 2006/10/23