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

Issue: Segmentation Fault in multipath_basic_test() #1789

Open
arpan21020 opened this issue Nov 26, 2024 · 1 comment
Open

Issue: Segmentation Fault in multipath_basic_test() #1789

arpan21020 opened this issue Nov 26, 2024 · 1 comment

Comments

@arpan21020
Copy link

Description

I am testing the multipath_test code and attempting to run the multipath_basic_test() function. However, it results in a segmentation fault. Upon debugging, I identified that within multipath_basic_test(), the function multipath_test_one() is called. This function invokes tls_api_init_ctx_ex2(), which is defined in tls_api_test.c.

To investigate further, I added print statements inside the definition of tls_api_init_ctx_ex2(). These revealed that while the client is successfully created, the picoquic_create() function returns NULL when attempting to create the server.

Could someone help identify why picoquic_create() is failing for the server context?

@huitema
Copy link
Collaborator

huitema commented Nov 27, 2024

The creation of a server side context will fail if the key and certificate are not properly created. The test keys are located in the source code. By default, the test assumes that it is running in the same directory as the source code. If it is not, you can use the "-S" option to picoquic_ct to document the location of the source code. If you fail to do that, the code will not find the test file, and will refuse to create the context.

That said, the code should not crash. Looks like a test bug.

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

2 participants