Skip to content

coredump in lldpad with 500+ NICs #118

@huyizhen

Description

@huyizhen

I have an environment with 500+ virtual NICs, and core dumps occur when I run lldpad on it.
When the function eloop_sock_table_dispatch calls FD_ISSET, the value of file descriptor table->table[i].sock exceeds 1024 (the kernel fds structure has only 1024 bits). As a result, the glibc determines that a buffer overflow occurs and aborts the process.
Have you ever had this problem? Other than recompiling the kernel and glibc magnifying the size of fds, is there any other way around this problem?
Change select to poll may solve this problem. Do you have any plans to change it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions