Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How solve the coredump when call encrypt_file function? #170

Open
zachma-820 opened this issue Jan 11, 2024 · 0 comments
Open

How solve the coredump when call encrypt_file function? #170

zachma-820 opened this issue Jan 11, 2024 · 0 comments

Comments

@zachma-820
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant