Skip to content

Verbosity level affect the program functionality on Raspberry Pi #74

@paszahipsta

Description

@paszahipsta

I have run DDHCPD on Raspberry Pi successfuly. However, when I have specified verbosity twice: sudo ./ddhcpd -c eth0 -i eth0 -v -v, I got segmentation error after about 10-15 seconds. The output looks like this:

ubuntu@ubuntu:~/ddhcpd$ sudo ./ddhcpd -c eth0 -i eth0 -v -v
INFO: CONFIG: network=10.0.0.0/24
INFO: CONFIG: block_size=32
INFO: CONFIG: #blocks=8
INFO: CONFIG: #spare_leases=2
INFO: CONFIG: timeout=60
INFO: CONFIG: refresh_factor=4
INFO: CONFIG: tentative_timeout=15
INFO: CONFIG: client_interface=eth0
INFO: CONFIG: group_interface=eth0
DEBUG: ddhcp_block_init(config)
DEBUG: find_in_option_store(store, code:1)
DEBUG: set_in_option_store(store, code:1, len4)
DEBUG: find_in_option_store(store, code:1)
DEBUG: set_in_option_store(...): inserting option
DEBUG: find_in_option_store(store, code:2)
DEBUG: set_in_option_store(store, code:2, len4)
DEBUG: find_in_option_store(store, code:2)
DEBUG: set_in_option_store(...): inserting option
DEBUG: find_in_option_store(store, code:28)
DEBUG: set_in_option_store(store, code:28, len4)
DEBUG: find_in_option_store(store, code:28)
DEBUG: set_in_option_store(...): inserting option
DEBUG: find_in_option_store(store, code:51)
DEBUG: set_in_option_store(store, code:51, len4)
DEBUG: find_in_option_store(store, code:51)
DEBUG: set_in_option_store(...): inserting option
DEBUG: find_in_option_store(store, code:54)
DEBUG: set_in_option_store(store, code:54, len4)
DEBUG: find_in_option_store(store, code:54)
DEBUG: set_in_option_store(...): inserting option
DEBUG: epoll_add_fd(3,-2147483647)
DEBUG: epoll_add_fd(3,-2147483647)
DEBUG: epoll_add_fd(3,-2147483647)
DEBUG: epoll_add_fd(3,-2147483647)
DEBUG: netlink_init(config)
DEBUG: epoll_add_fd(3,-2147483647)
INFO: loop timeout: 7500 msecs
DEBUG: netlink_callback(...): callback triggered
DEBUG: netlink_callback(...): iface(3) up
DEBUG: ntoh_dhcp_packet(...): package len:296
DEBUG: BOOTP [ op 1, htype 1, hlen 6, hops 0, xid 1106945831, secs 128, flags 0, ciaddr 0.0.0.0, DEBUG: yiaddr 0.0.0.0, DEBUG: siaddr 0.0.0.0, DEBUG: giaddr 0.0.0.0, sname: , file:  ]
DEBUG: DHCP OPTION [ code 53, length 1, value 1 ]
DEBUG: DHCP OPTION [ code 61, length 19 ]
DEBUG: DHCP OPTION [ code 55, length 11, value 1 3 12 15 6 26 33 121 119 42 120 ]
DEBUG: DHCP OPTION [ code 57, length 2 ]
DEBUG: DHCP OPTION [ code 50, length 4 ]
DEBUG: DHCP OPTION [ code 12, length 6 ]
DEBUG: DHCP OPTION [ code 255, length 0 ]
DEBUG: dhcp_hdl_discover(socket:8, packet, config)
DEBUG: block_find_free_leases(config)
DEBUG: block_find_free_leases(...): No block found!
DEBUG: dhcp_hdl_discover(...): no block with free leases found
DEBUG: Segmentation fault

If I set up verbosity with only one flag, everything is working perfectly. Raspberry is running on ubuntu server 20.04 for raspberries.

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