-
Notifications
You must be signed in to change notification settings - Fork 20
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
Segmentation Fault on Ubuntu 16.04 #4
Comments
Could you run it again with GDB so that we get a trace of the error ? |
$ gdb picoquicdemo fb8ecbb7dcac182a: 0.004958 : Connection established, state = 11, from length: 28 Program received signal SIGSEGV, Segmentation fault. |
Thanks. Could you post the output of strace as well ? |
$ strace ./picoquicdemo |
We use OpenSSL 1.1.x actually. Upgrading your lib version might fix this issue. On Ubuntu 16.04, you might have to compile it yourself since there is no official package. I will add this requirement to the doc. |
Unfortunately, upgrading to OpenSSL 1.1.1 does not help. strace ./picoquicdemo ::1 4443 |
That was my guess too. Ok I got it, it was very clear from the GDB trace.
In particular |
i have gcc version 5.4.0 installed. |
It should, see https://stackoverflow.com/a/7032021. Otherwise look at Ubuntu's |
Faced a problem with core dumps.
To prevent a global config change with the compilers run cmake and make as:
|
I close this issue as it seems that no further assistance is needed. |
After compiling pquic on Ubuntu 16.04 using the guide on https://pquic.org/, picoquicdemo quits with a segmentation fault.
The used versions of openssl and libarchive are as follows:
OpenSSL_VERSION: 1.0.2g
libarchive_version: 3.4.0
Server:
$ ./picoquicdemo
Starting PicoQUIC server on port 4443, server name = ::, just_once = 0, hrr= 0, 0 local plugins and 0 both plugins
2701ba8be43457fc: Receiving packet type: 2 (initial), S0, Version ff00000e,
2701ba8be43457fc: <2701ba8be43457fc>, <5d1d9d49b00c3ee9>, Seq: 0, pl: 1187
2701ba8be43457fc: Decrypted 1187 bytes
2701ba8be43457fc: Crypto HS frame, offset 0, length 279: 01000113030373e9...
2701ba8be43457fc: padding, 904 bytes
2701ba8be43457fc: 0.001671 : Connection established, state = 11, from length: 28
2701ba8be43457fc: Client address: ::1, port 53473
2701ba8be43457fc: SNI not received.
2701ba8be43457fc: Received ALPN: hq-14
2701ba8be43457fc: Received transport parameter TLS extension (62 bytes):
2701ba8be43457fc: Proposed version: ff00000e
2701ba8be43457fc: Extension list (56 bytes):
2701ba8be43457fc: Extension type: 0, length 4 (0x0000 / 0x0004), 00200000
2701ba8be43457fc: Extension type: 1, length 4 (0x0001 / 0x0004), 00100000
2701ba8be43457fc: Extension type: 2, length 2 (0x0002 / 0x0002), 4000
2701ba8be43457fc: Extension type: 3, length 2 (0x0003 / 0x0002), 000f
2701ba8be43457fc: Extension type: 5, length 2 (0x0005 / 0x0002), 05a0
2701ba8be43457fc: Extension type: 8, length 2 (0x0008 / 0x0002), 4000
2701ba8be43457fc: Extension type: 10, length 4 (0x000a / 0x0004), 00010063
2701ba8be43457fc: Extension type: 11, length 4 (0x000b / 0x0004), 0000ffff
Segmentation fault (core dumped)
Client:
$ ./picoquicdemo ::1 4443
Starting PicoQUIC connection to server IP = ::1, port = 4443 and 0 local plugins
No server name specified, certificate will not be verified.
2701ba8be43457fc: Sending packet type: 2 (initial), S0, Version ff00000e,
2701ba8be43457fc: <2701ba8be43457fc>, <5d1d9d49b00c3ee9>, Seq: 0, pl: 1187
2701ba8be43457fc: Prepared 1187 bytes
2701ba8be43457fc: Crypto HS frame, offset 0, length 279: 01000113030373e9...
2701ba8be43457fc: padding, 904 bytes
2701ba8be43457fc: Sending 1232 bytes to 0:0:0:0:0:0:0:1 at T=0.001408 (5974cb77c67e0)
pquic/picoquic/sender.c:1331 [retransmit_needed]: 328 <= 1232
pquic/picoquic/sender.c:1400 [retransmit_needed]: Retransmit packet type 2, pc=2, seq = 0, is_client = 1
2701ba8be43457fc: Sending packet type: 2 (initial), S0, Version ff00000e,
2701ba8be43457fc: <2701ba8be43457fc>, <5d1d9d49b00c3ee9>, Seq: 1, pl: 1187
2701ba8be43457fc: Prepared 1187 bytes
2701ba8be43457fc: Crypto HS frame, offset 0, length 279: 01000113030373e9...
2701ba8be43457fc: padding, 904 bytes
2701ba8be43457fc: Sending 1232 bytes to 0:0:0:0:0:0:0:1 at T=1.002702 (5974cb78baf2e)
pquic/picoquic/sender.c:1331 [retransmit_needed]: 328 <= 1232
pquic/picoquic/sender.c:1400 [retransmit_needed]: Retransmit packet type 2, pc=2, seq = 1, is_client = 1
The text was updated successfully, but these errors were encountered: