Description
hello, dear friend
I put http_server.c prog.c test_cert.c test_common.c in my program , and call liblsquic.so to run http_server.c . The server program will crash. Is there a pointer problem with the callback function?
thanks
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000000003 in ?? ()
(gdb) bt
#0 0x0000000000000003 in ?? ()
#1 0x00007f32f96a1d14 in lsquic_mini_conn_ietf_new (enpub=0x55e31f184450, packet_in=0x55e31f1ac080, version=LSQVER_ID32, is_ipv4=1, odcid=0x0,
udp_payload_size=1200) at /usr/local/bigtree/bigtree_luquic_boringssl_lib/lsquic/src/liblsquic/lsquic_mini_conn_ietf.c:503
#2 0x00007f32f9642bd1 in find_or_create_conn (engine=0x55e31f184450, packet_in=0x55e31f1ac080, ppstate=0x7ffe24634e80, sa_local=0x55e31f1bd760,
sa_peer=0x55e31f1c24f0, peer_ctx=0x55e31f16f080, packet_in_size=1200)
at /usr/local/bigtree/bigtree_luquic_boringssl_lib/lsquic/src/liblsquic/lsquic_engine.c:1357
#3 0x00007f32f96431f2 in process_packet_in (engine=0x55e31f184450, packet_in=0x55e31f1ac080, ppstate=0x7ffe24634e80, sa_local=0x55e31f1bd760,
sa_peer=0x55e31f1c24f0, peer_ctx=0x55e31f16f080, packet_in_size=1200)
at /usr/local/bigtree/bigtree_luquic_boringssl_lib/lsquic/src/liblsquic/lsquic_engine.c:1484
#4 0x00007f32f9648dd0 in lsquic_engine_packet_in (engine=0x55e31f184450, packet_in_data=0x7f32fa5a04c0 "", packet_in_size=1200, sa_local=0x55e31f1bd760,
sa_peer=0x55e31f1c24f0, peer_ctx=0x55e31f16f080, ecn=0) at /usr/local/bigtree/bigtree_luquic_boringssl_lib/lsquic/src/liblsquic/lsquic_engine.c:3053
#5 0x000055e31de82e7e in read_handler (fd=6, flags=2, ctx=0x55e31f16f080) at test_common.cpp:750
#6 0x00007f32fa1b5f88 in event_persist_closure (ev=, base=0x55e31f183fe0) at event.c:1623
#7 event_process_active_single_queue (base=base@entry=0x55e31f183fe0, activeq=0x55e31f184430, max_to_process=max_to_process@entry=2147483647,
endtime=endtime@entry=0x0) at event.c:1682
#8 0x00007f32fa1b68ef in event_process_active (base=0x55e31f183fe0) at event.c:1783
#9 event_base_loop (base=0x55e31f183fe0, flags=0) at event.c:2006
#10 0x000055e31de86490 in prog_run (prog=0x7ffe246351d0) at prog.cpp:557
#11 0x000055e31de80652 in main (argc=10, argv=0x7ffe24635718) at main.cpp:2019
(gdb) f 1
#1 0x00007f32f96a1d14 in lsquic_mini_conn_ietf_new (enpub=0x55e31f184450, packet_in=0x55e31f1ac080, version=LSQVER_ID32, is_ipv4=1, odcid=0x0,
udp_payload_size=1200) at /usr/local/bigtree/bigtree_luquic_boringssl_lib/lsquic/src/liblsquic/lsquic_mini_conn_ietf.c:503
warning: Source file is more recent than executable.
503 enpub->enp_generate_scid(&conn->imc_conn,