Skip to content

Crash when training sentiment classification task using Debug build #24863

@jczaja

Description

@jczaja

There is crash when trying to train sentiment classification task using any of available models with Debug PaddlePaddle build. It works fine with Release build of PaddlePaddle

Model: https://github.com/PaddlePaddle/models/tree/develop/PaddleNLP/sentiment_classification
Engine: Training on CPU (with MKL-DNN or without MKL-DNN) . GPU execution was not tested.
Operating System: Centos 7 & GCC 4.8.5 / Centos7 & GCC 7.3.1
PaddlePaddle version: develop branch (tested commit 1f032c5) , but issue occurs on older revisions as well.
PaddlePaddle configuring commandline:
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_MKLDNN=ON -DWITH_GPU=OFF -DWITH_TESTING=ON -DWITH_PYTHON=ON -DWITH_INFERENCE_API_TEST=ON

Reproduce:

  1. Modify https://github.com/PaddlePaddle/models/blob/develop/PaddleNLP/sentiment_classification/run.sh to use CPU : set use_cuda false in train section
  2. run.sh train

More details:
Crash is triggered here(read op):

size_t i = position_.front().get();

due to some invalid data of position_ object.

Callstack:
stack.txt

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions