• 2420阅读
  • 2回复

Qt4.8在华为泰山Arm服务器编译后,designer段错误,QTJSC:Heap [复制链接]

上一主题 下一主题
离线dxwang
 

只看楼主 倒序阅读 楼主  发表于: 2019-11-04
Qt4.8.4在华为泰山2280,Arm服务器上编译后,desiger起不来,报错误,提示QScriptEngine调用的 libQtScript,segmentation fault。 自己写的测试程序,new QScriptEngine 也报段错误,无法成功new。请问大概是什么原因。 其他简单的图形界面assistant,linguist可以正常运行。


每天进步一点点
离线20091001753

只看该作者 1楼 发表于: 2019-11-04
用 Qt5 吧
(づ ̄ 3 ̄)づ
离线dxwang

只看该作者 2楼 发表于: 2019-11-05
回 20091001753 的帖子
20091001753:用 Qt5 吧 (2019-11-04 20:56)


加了调试信息,发现了Heap的问题,可能是什么原因呢,谢谢:

QT/bin$ gdb ./designer
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./designer...done.
(gdb) r
Starting program: /home/cps/CPS_Project/CPS/3rdPartyProgram/QT/bin/designer
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Qt: gdb: -nograb added to command-line options.
     Use the -dograb option to enforce grabbing.

Program received signal SIGSEGV, Segmentation fault.
0x0000ffffbe9d68d0 in QTJSC::Heap::heap (c=0xffffffffb7580080)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:352
352            return cellBlock(c)->heap;
(gdb) bt
#0  0x0000ffffbe9d68d0 in QTJSC::Heap::heap (c=0xffffffffb7580080)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:352
#1  0x0000ffffbe9d68b0 in QTJSC::Heap::heap (v=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:347
#2  0x0000ffffbe9dada4 in QTJSC::JSObject::putDirectInternal (this=
    0xffffb7580040, propertyName=..., value=..., attributes=14,
    checkReadOnly=false, slot=..., specificFunction=0x0)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:434
#3  0x0000ffffbe9db57c in QTJSC::JSObject::putDirect (this=0xffffb7580040,
    propertyName=..., value=..., attributes=14)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:556
#4  0x0000ffffbea9b26c in QTJSC::InternalFunction::InternalFunction (
    this=0xffffb7580040, globalData=0xaaaaaac275d0, structure=..., name=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.cpp:43
#5  0x0000ffffbea93ea8 in QTJSC::FunctionPrototype::FunctionPrototype (
    this=0xffffb7580040, exec=0xaaaaaac760d8, structure=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/FunctionPrototype.cpp:41
#6  0x0000ffffbeaaa8a0 in QTJSC::JSGlobalObject::reset (this=0xffffb7580000,
---Type <return> to continue, or q <return> to quit---
    prototype=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.cpp:208
#7  0x0000ffffbeaaa494 in QTJSC::JSGlobalObject::init (this=0xffffb7580000,
    thisValue=0xffffb7580000)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.cpp:151
#8  0x0000ffffbe9e7618 in QTJSC::JSGlobalObject::JSGlobalObject (
    this=0xffffb7580000)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:168
#9  0x0000ffffbeb53ef0 in QScript::GlobalObject::GlobalObject (
    this=0xffffb7580000) at bridge/qscriptglobalobject.cpp:44
#10 0x0000ffffbeb1cd50 in QScriptEnginePrivate::QScriptEnginePrivate (
    this=0xaaaaaac7af80) at api/qscriptengine.cpp:980
#11 0x0000ffffbeb21a88 in QScriptEngine::QScriptEngine (this=0xaaaaaac833a0)
    at api/qscriptengine.cpp:1963
#12 0x0000ffffbee75098 in QFormScriptRunner::QFormScriptRunnerPrivate::QFormScriptRunnerPrivate (this=0xaaaaaac833a0) at uilib/formscriptrunner.cpp:41
#13 0x0000ffffbee749c8 in QFormScriptRunner::QFormScriptRunner (
    this=0xaaaaaac73f58) at uilib/formscriptrunner.cpp:106
#14 0x0000ffffbee6c678 in QFormBuilderExtra::QFormBuilderExtra (
    this=0xaaaaaac73f50) at uilib/formbuilderextra.cpp:66
---Type <return> to continue, or q <return> to quit---
#15 0x0000ffffbee6cfc8 in QFormBuilderExtra::instance (afb=0xffffffffe140)
    at uilib/formbuilderextra.cpp:210
#16 0x0000ffffbee0fe10 in QAbstractFormBuilder::setResourceBuilder (
    this=0xffffffffe140, builder=0xaaaaaac20f10)
    at uilib/abstractformbuilder.cpp:2362
#17 0x0000ffffbee05cf4 in QAbstractFormBuilder::QAbstractFormBuilder (
    this=0xffffffffe140) at uilib/abstractformbuilder.cpp:150
#18 0x0000ffffbef32e38 in qdesigner_internal::QSimpleResource::QSimpleResource
    (this=0xffffffffe140, core=0xaaaaaabd6f80) at shared/qsimpleresource.cpp:56
#19 0x0000ffffbf52ba0c in qdesigner_internal::BrushManagerProxy::setBrushManager (this=0xaaaaaac746c0, manager=0xaaaaaac714f0)
    at ../formeditor/brushmanagerproxy.cpp:259
#20 0x0000ffffbf518ee0 in qdesigner_internal::FormEditor::FormEditor (
    this=0xaaaaaabd6f80, parent=0xaaaaaabd7320)
    at ../formeditor/formeditor.cpp:138
#21 0x0000ffffbf3ad36c in QDesignerComponents::createFormEditor (
    parent=0xaaaaaabd7320) at qdesigner_components.cpp:128
#22 0x0000aaaaaaaecabc in QDesignerWorkbench::QDesignerWorkbench (
    this=0xaaaaaabd7320) at qdesigner_workbench.cpp:158
#23 0x0000aaaaaaae8184 in QDesigner::initialize (this=0xffffffffe970)
---Type <return> to continue, or q <return> to quit---
    at qdesigner.cpp:221
#24 0x0000aaaaaaae7318 in QDesigner::QDesigner (this=0xffffffffe970,
    argc=@0xffffffffe96c: 1, argv=0xffffffffeaf8) at qdesigner.cpp:77
#25 0x0000aaaaaaae70e4 in main (argc=1, argv=0xffffffffeaf8) at main.cpp:32


每天进步一点点
快速回复
限100 字节
 
上一个 下一个