Skip to content

Segmentation fault #6

@spvkgn

Description

@spvkgn
 LC_ALL=C gdb ./slipstream-server 
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 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:
<https://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 ./slipstream-server...
(gdb) r
Starting program: /tmp/build/slipstream/_build/slipstream-server 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Server error: Missing required --domain option
Usage: slipstream-server [-a ADDRESS] [-c CERT] [-d DOMAIN] [-k KEY] [-l PORT]
            [--target-address=ADDRESS] [--cert=CERT] [--domain=DOMAIN]
            [--key=KEY] [--dns-listen-port=PORT] 

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-vec.S:126
Download failed: Invalid argument.  Continuing without source file ./string/../sysdeps/x86_64/multiarch/strlen-vec.S.
126	../sysdeps/x86_64/multiarch/strlen-vec.S: No such file or directory.
(gdb) thread apply all backtrace

Thread 1 (Thread 0x7ffff78417c0 (LWP 2129325) "slipstream-serv"):
#0  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-vec.S:126
#1  0x00007ffff78ec603 in __GI___strdup (s=0x0) at ./string/strdup.c:41
#2  0x0000555555562059 in picoquic_slipstream_server (server_port=53, server_cert=0x55555560c23c "certs/cert.pem", server_key=0x55555560c24b "certs/key.pem", target_address=0x7fffffffd140, domain_name=0x0) at /tmp/build/slipstream/src/slipstream_server.c:654
#3  0x000055555556042e in main (argc=1, argv=0x7fffffffd2e8) at /tmp/build/slipstream/src/slipstream_server_cli.c:141

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions