0

我在windows 10(主机)的virtualbox(5.1.18)中运行ubuntu(16.10)(guest)

我已经从各个站点下载了节日 tts 代码,并尝试在此设置上构建它。

代码可以毫无障碍地构建。

但是在运行时,所有可执行文件都会崩溃并转储核心。

然后我为构建启用调试(gcc -g)并在 gdb 中运行 exec。在 gdb 崩溃之后,当我执行 where... 时,我看到了这种模式(这种模式对于所有崩溃的可执行文件都是相同的)

Example 1.
Command : gdb ./xml_example
(gdb) where
#0  0xb7fd9d05 in __kernel_vsyscall ()
#1  0xb7c9a050 in __libc_signal_restore_set (set=0xbfffeeb0)
    at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
#2  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#3  0xb7c9b577 in __GI_abort () at abort.c:89
#4  0xb7cd5f0f in __libc_message (do_abort=<optimized out>, fmt=<optimized out>)
    at ../sysdeps/posix/libc_fatal.c:175
#5  0xb7cdcb07 in malloc_printerr (action=<optimized out>,
    str=0xb7dd1b60 "free(): invalid next size (fast)", ptr=<optimized out>,
    ar_ptr=0xb7e24780 <main_arena>) at malloc.c:5046
#6  0xb7cdd3c6 in _int_free (av=0xb7e24780 <main_arena>, p=0x8088ed8, have_lock=0) at malloc.c:3902
#7  0x0804b012 in XML_Parser_Class::try_and_open(entity*) ()
#8  0x08061135 in ParseDtd ()
#9  0x08063b81 in parse ()
#10 0x08063de7 in ReadXBit ()
#11 0x0804b419 in XML_Parser::go() ()
#12 0x08049866 in main () at xml_example.cc:132

Example 2
Command : gdb ./string_example
(gdb) where
#0  0xb7fd9d05 in __kernel_vsyscall ()
#1  0xb7c9a050 in __libc_signal_restore_set (set=0xbfffefa0)
    at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
#2  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#3  0xb7c9b577 in __GI_abort () at abort.c:89
#4  0xb7cd5f0f in __libc_message (do_abort=<optimized out>, fmt=<optimized out>)
    at ../sysdeps/posix/libc_fatal.c:175
#5  0xb7cdcb07 in malloc_printerr (action=<optimized out>,
    str=0xb7dd1b60 "free(): invalid next size (fast)", ptr=<optimized out>,
    ar_ptr=0xb7e24780 <main_arena>) at malloc.c:5046
#6  0xb7cdd3c6 in _int_free (av=0xb7e24780 <main_arena>, p=0x805e0a0, have_lock=0) at malloc.c:3902
#7  0x0804e328 in EST_String::unquote(char) const ()
#8  0x0804e8eb in EST_String::unquote_if_needed(char) const ()
#9  0x0804936e in main () at string_example.cc:90

Example 3
Command : gdb ./list_example
(gdb) where
#0  0xb7fd9d05 in __kernel_vsyscall ()
#1  0xb7c9a050 in __libc_signal_restore_set (set=0xbffff080)
    at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
#2  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#3  0xb7c9b577 in __GI_abort () at abort.c:89
#4  0xb7cd5f0f in __libc_message (do_abort=<optimized out>, fmt=<optimized out>)
    at ../sysdeps/posix/libc_fatal.c:175
#5  0xb7cdcb07 in malloc_printerr (action=<optimized out>,
    str=0xb7dd1b60 "free(): invalid next size (fast)", ptr=<optimized out>,
    ar_ptr=0xb7e24780 <main_arena>) at malloc.c:5046
#6  0xb7cdd3c6 in _int_free (av=0xb7e24780 <main_arena>, p=0x80611c0, have_lock=0) at malloc.c:3902
#7  0x0804b601 in EST_TItem<EST_String>::release(EST_TItem<EST_String>*) ()
#8  0x0804a2d0 in EST_UList::clear_and_free(void (*)(EST_UItem*)) ()
#9  0x0804964c in EST_TList<EST_String>::~EST_TList (this=0xbffff574, __in_chrg=<optimized out>)
    at ../include/EST_TList.h:122
#10 main () at list_example.cc:65

很明显,这与我的设置有关,因为,1. 这不是我的代码,并且该代码正在全世界范围内使用,没有任何问题!2. 我最近通过增加根分区大小对来宾 linux 进行了更改。

如果我需要提供更多详细信息,请告诉我。

请让我知道任何指导方针,以便我可以继续解决此问题。

提前致谢。

4

0 回答 0