feast icon indicating copy to clipboard operation
feast copied to clipboard

crash (segfault?) on protobuf>=4.24.0

Open cburroughs opened this issue 2 years ago • 2 comments

Expected Behavior

Feast should not crash.

Current Behavior

As commented in 028cc20a28118bd31deca8965782d5ad25f74300, Feast crashes with protobuf>=4.24.0. The most recent version of protobuf that Feast can use is 4.23 which stopped being supported in August of 2023 https://protobuf.dev/support/version-support/

Steps to reproduce

I see this on feast apply, the original report is unclear.

cburroughs avatar Jan 31 '24 18:01 cburroughs

this one seems an urgent bug.

shuchu avatar Feb 02 '24 20:02 shuchu

working on this. I do see segmentation errors.

shuchu avatar Feb 18 '24 15:02 shuchu

I find this related issue from protobuf's Github repo: https://github.com/protocolbuffers/protobuf/issues/13485 , especially, this comment: https://github.com/protocolbuffers/protobuf/issues/13485#issuecomment-1686758403

shuchu avatar Mar 08 '24 05:03 shuchu

Nice find. That seems to suggest the Feast constraint should be something along the lines be <24, or >=25?

cburroughs avatar Mar 08 '24 14:03 cburroughs

I have found the cause of this segment fault. Will have a PR to fix it today.

shuchu avatar Mar 08 '24 15:03 shuchu

Here is a piece of example code that can repoduce the segmentation fault: Please change the repo file path accordingly in your own computer.

from pathlib import Path

from feast import FeatureStore
from feast.repo_config import load_repo_config
from feast.infra.registry.file import FileRegistryStore
from feast.repo_operations import parse_repo


repo_path = Path("/home/ubuntu/feast_demo/notable_troll/")
fs_yaml_file = "/home/ubuntu/feast_demo/notable_troll/feature_repo/feature_store.yaml"
repo_config = load_repo_config(repo_path, fs_yaml_file)

fs = FeatureStore(config=repo_config)
repo = parse_repo(repo_path)

fs.plan(repo)

shuchu avatar Mar 08 '24 18:03 shuchu

notable_troll is my new favorite init output :laughing:

jeremyary avatar Mar 08 '24 19:03 jeremyary

Nice find. That seems to suggest the Feast constraint should be something along the lines be <24, or >=25?

Right now, I use ">=4.24.0". I pass the test with 4.25.3

shuchu avatar Mar 08 '24 19:03 shuchu