baidu / baidu/lac

在Linux系统上用Java单线程批量做分词报错,terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

Open
#213 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

在Linux系统上用Java单线程批量做分词报错,大概处理了四十多万调数据之后报如下错误,并造成程序直接退出
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
请问这个问题什么原因导致的?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Linux Java single-threaded batch segmentation run described in the issue, continuing beyond 400,000 records while capturing the native std::bad_alloc failure. Start by tracing the Java-to-native segmentation path and memory usage; done means identifying the failure cause and documenting a verified fix or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.