Skip to content

After compiling in CentOS8, a malloc error occurred during runtime #5095

Answered by baiyesong
baiyesong asked this question in Q&A
Discussion options

You must be logged in to vote

Through experiments, msquic will by default get the UDP_SEGMENT macro from the /usr/include/netinet/udp.h file (this is the path in both Ubuntu and CentOS8), which is defined as

#define UDP_SEGMENT 103

As shown in the CMakeList filecheck_symbol_exists(UDP_SEGMENT netinet/udp.h HAS_UDP_SEGMENT)
msquic uses the UDP_SEGMENT in the./src/platform/datapath_epoll.c file.


In CentOS 8, the /usr/include/netinet/udp.hfile does not contain UDP_SEGMENT.
the UDP_SEGMENT macro is defined in

/usr/include/linux/udp.h
/usr/src/kernels/4.18.0-348.7.1.el8_5.x86_64/include/uapi/linux/udp.h

This results in the UDP_SEGMENT not being recognizable during the compilation and runtime phases in CentOS8.
Moreover,…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by baiyesong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant