Mac上paddle安装成功后执行时报段错误
Created by: 5idaidai
运行demo中sentiment的例子,报一下错误:
I1104 10:38:17.781116 2008993792 Util.cpp:130] Calling runInitFunctions
I1104 10:38:17.781256 2008993792 Util.cpp:143] Call runInitFunctions done.
[INFO 2016-11-04 10:38:17,889 networks.py:1282] The input order is [word, label]
[INFO 2016-11-04 10:38:17,889 networks.py:1289] The output order is [__cost_0__]
I1104 10:38:17.891353 2008993792 Trainer.cpp:170] trainer mode: Normal
*** Aborted at 1478227097 (unix time) try "date -d @1478227097" if you are using GNU date ***
PC: @ 0x10edc27f8 paddle::Weight::Weight()
*** SIGSEGV (@0xa0) received by PID 9930 (TID 0x7fff77bed000) stack trace: ***
@ 0x7fff856ffeaa _sigtramp
@ 0x0 (unknown)
@ 0x10eb9bbcd paddle::TableProjection::TableProjection()
@ 0x10eb9c29e _ZNSt3__128__invoke_void_return_wrapperIPN6paddle10ProjectionEE6__callIJRZNS1_14ClassRegistrarIS2_JNS1_16ProjectionConfigENS_10shared_ptrINS1_9ParameterEEEbEE13registerClassINS1_15TableProjectionEEEvRKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEUlS7_SA_bE_S7_SA_bEEES3_DpOT_
@ 0x10eb9c20d _ZNSt3__110__function6__funcIZN6paddle14ClassRegistrarINS2_10ProjectionEJNS2_16ProjectionConfigENS_10shared_ptrINS2_9ParameterEEEbEE13registerClassINS2_15TableProjectionEEEvRKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEUlS5_S8_bE_NSF_ISK_EEFPS4_S5_S8_bEEclEOS5_OS8_Ob
@ 0x10ebac7ef _ZN6paddle14ClassRegistrarINS_10ProjectionEJNS_16ProjectionConfigENSt3__110shared_ptrINS_9ParameterEEEbEE12createByTypeERKNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES2_S6_b
@ 0x10ebac66d paddle::Projection::create()
@ 0x10ebb60d8 paddle::MixedLayer::init()
@ 0x10ec12242 paddle::NeuralNetwork::init()
@ 0x10ec18a83 paddle::MultiGradientMachine::MultiGradientMachine()
@ 0x10ec2017e paddle::GradientMachine::create()
@ 0x10ec9ae46 paddle::TrainerInternal::init()
@ 0x10ec96be7 paddle::Trainer::init()
@ 0x10eb93d1b main
@ 0x7fff940e95ad start
@ 0xb (unknown)
/Users/baidu/local/bin/paddle: line 81: 9930 Segmentation fault: 11 ${DEBUGGER} $MYDIR/../opt/paddle/bin/paddle_trainer ${@:2}
利用gdb调试得到的信息:
I1104 10:37:35.910127 2008993792 Util.cpp:155] commandline: /Users/baidu/local/opt/paddle/bin/paddle_trainer --config=trainer_config.py --save_dir=./model_output --job=train --use_gpu=false --trainer_count=4 --num_passes=10 --log_period=10 --dot_period=20 --show_parameter_stats_period=100 --test_all_data_in_one_period=1
I1104 10:37:35.910747 2008993792 Util.cpp:130] Calling runInitFunctions
I1104 10:37:35.910902 2008993792 Util.cpp:143] Call runInitFunctions done.
[New Thread 0x1913 of process 9904]
[INFO 2016-11-04 10:37:36,410 networks.py:1282] The input order is [word, label]
[INFO 2016-11-04 10:37:36,410 networks.py:1289] The output order is [__cost_0__]
I1104 10:37:36.412492 2008993792 Trainer.cpp:170] trainer mode: Normal
Thread 1 received signal SIGSEGV, Segmentation fault.
paddle::Weight::Weight (this=0x107a6af70, height=0, width=128, param=...) at /Users/baidu/codehub/Paddle/paddle/parameter/Weight.cpp:21
21 VectorPtr vPtr = param->getBuf(PARAMETER_VALUE);
make test 发现一些单测过不了:
The following tests FAILED:
22 - test_PyDataProvider (Failed)
24 - test_RecurrentGradientMachine (Failed)
25 - test_NetworkCompare (Failed)
26 - test_PyDataProvider2 (Failed)
30 - test_Prediction (Failed)
31 - test_Compare (Failed)
32 - test_Trainer (Failed)
33 - test_TrainerOnePass (Failed)
34 - test_CompareTwoNets (Failed)
35 - test_CompareTwoOpts (Failed)
36 - test_CompareSparse (Failed)
37 - test_recurrent_machine_generation (Failed)
38 - test_PyDataProviderWrapper (Failed)
39 - test_config_parser (Failed)
40 - test_swig_api (Failed)
41 - layers_test (Failed)
42 - test_layerHelpers (Failed)
Errors while running CTest
make: *** [test] Error 8