mc2-project / secure-xgboost

Secure collaborative training and inference for XGBoost.
https://mc2-project.github.io/secure-xgboost/
Apache License 2.0
105 stars 32 forks source link

How solve the coredump when call encrypt_file function? #170

Open zachma-820 opened 9 months ago

zachma-820 commented 9 months ago

Hello,

I run the demo code as below: ype "help", "copyright", "credits" or "license" for more information.

>>> import securexgboost as xgb
>>> 
>>> KEY_FILE = "key.txt"
>>> xgb.generate_client_key(KEY_FILE)
>>> xgb.encrypt_file("demo/data/agaricus.txt.train", "demo/data/train.enc", KEY_FILE)
Segmentation fault (core dumped)

And I visit the core info as below:

ubuntu@VM-0-13-ubuntu:~/secure-xgboost$ gdb build/libxgboost.so core
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 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 "x86_64-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 build/libxgboost.so...
[New LWP 1591885]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fbf21dbf725 in _Unwind_DeleteException () from /lib/x86_64-linux-gnu/libgcc_s.so.1

I use gcc 9.4.0 and python 3.8.10 in ubuntu20.04, how solve the issue?