{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/3347","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/3347/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/3347/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/3347/events","html_url":"https://github.com/systemd/systemd/issues/3347","id":156825352,"number":3347,"title":"testsuite: test-dhcp-server fails on sparc64 with bus error (unaligned access)","user":{"login":"glaubitz","id":1647645,"avatar_url":"https://avatars.githubusercontent.com/u/1647645?v=3","gravatar_id":"","url":"https://api.github.com/users/glaubitz","html_url":"https://github.com/glaubitz","followers_url":"https://api.github.com/users/glaubitz/followers","following_url":"https://api.github.com/users/glaubitz/following{/other_user}","gists_url":"https://api.github.com/users/glaubitz/gists{/gist_id}","starred_url":"https://api.github.com/users/glaubitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glaubitz/subscriptions","organizations_url":"https://api.github.com/users/glaubitz/orgs","repos_url":"https://api.github.com/users/glaubitz/repos","events_url":"https://api.github.com/users/glaubitz/events{/privacy}","received_events_url":"https://api.github.com/users/glaubitz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/misfiled","name":"misfiled","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T19:00:22Z","updated_at":"2016-05-26T05:31:09Z","closed_at":"2016-05-26T00:37:51Z","body":"Running test-dhcp-server on sparc64 results in a bus error (unaligned access):\r\n\r\nroot@deb4g:~/systemd# ./test-dhcp-server \r\nAssertion '!server->event' failed at src/libsystemd-network/sd-dhcp-server.c:215, function sd_dhcp_server_attach_event(). Ignoring.\r\nAssertion '!server->event' failed at src/libsystemd-network/sd-dhcp-server.c:215, function sd_dhcp_server_attach_event(). Ignoring.\r\nAssertion 'server->address != htobe32(INADDR_ANY)' failed at src/libsystemd-network/sd-dhcp-server.c:1016, function sd_dhcp_server_start(). Ignoring.\r\nAssertion 'address->s_addr != INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:47, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'prefixlen <= 32' failed at src/libsystemd-network/sd-dhcp-server.c:48, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'server->address == INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:49, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'address->s_addr != INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:47, function sd_dhcp_server_configure_pool(). Ignoring.\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nAssertion '!server->receive_message' failed at src/libsystemd-network/sd-dhcp-server.c:1013, function sd_dhcp_server_start(). Ignoring.\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: REQUEST (rebinding/renewing) (0x12345678)\r\nDHCP SERVER: REQUEST (init-reboot) (0x12345678)\r\nDHCP SERVER: NAK (0x12345678)\r\nBus error\r\nroot@deb4g:~/systemd#\r\n\r\nWith the help of gdb, this can be tracked down to:\r\n\r\nroot@deb4g:~/systemd# gdb ./test-dhcp-server \r\nGNU gdb (Debian 7.10-1+b1) 7.10\r\nCopyright (C) 2015 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"sparc64-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\"...\r\nReading symbols from ./test-dhcp-server...done.\r\n(gdb) run\r\nStarting program: /root/systemd/test-dhcp-server \r\nBFD: /usr/lib/debug/.build-id/4a/2be3888dfebbf721816e4df21fa6546ccf8e59.debug: unable to initialize decompress status for section .debug_aranges\r\nBFD: /usr/lib/debug/.build-id/4a/2be3888dfebbf721816e4df21fa6546ccf8e59.debug: unable to initialize decompress status for section .debug_aranges\r\nwarning: File \"/usr/lib/debug/.build-id/4a/2be3888dfebbf721816e4df21fa6546ccf8e59.debug\" has no build-id, file skipped\r\nBFD: /usr/lib/debug/.build-id/ed/63d2926f7520f092ee384e19ca24b97dd9a576.debug: unable to initialize decompress status for section .debug_aranges\r\nBFD: /usr/lib/debug/.build-id/ed/63d2926f7520f092ee384e19ca24b97dd9a576.debug: unable to initialize decompress status for section .debug_aranges\r\nwarning: File \"/usr/lib/debug/.build-id/ed/63d2926f7520f092ee384e19ca24b97dd9a576.debug\" has no build-id, file skipped\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/sparc64-linux-gnu/libthread_db.so.1\".\r\nBFD: /usr/lib/debug/.build-id/12/90c8994b140089995829701b1a6e56d9e138f5.debug: unable to initialize decompress status for section .debug_aranges\r\nBFD: /usr/lib/debug/.build-id/12/90c8994b140089995829701b1a6e56d9e138f5.debug: unable to initialize decompress status for section .debug_aranges\r\nwarning: File \"/usr/lib/debug/.build-id/12/90c8994b140089995829701b1a6e56d9e138f5.debug\" has no build-id, file skipped\r\nAssertion '!server->event' failed at src/libsystemd-network/sd-dhcp-server.c:215, function sd_dhcp_server_attach_event(). Ignoring.\r\nAssertion '!server->event' failed at src/libsystemd-network/sd-dhcp-server.c:215, function sd_dhcp_server_attach_event(). Ignoring.\r\nAssertion 'server->address != htobe32(INADDR_ANY)' failed at src/libsystemd-network/sd-dhcp-server.c:1016, function sd_dhcp_server_start(). Ignoring.\r\nAssertion 'address->s_addr != INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:47, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'prefixlen <= 32' failed at src/libsystemd-network/sd-dhcp-server.c:48, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'server->address == INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:49, function sd_dhcp_server_configure_pool(). Ignoring.\r\nAssertion 'address->s_addr != INADDR_ANY' failed at src/libsystemd-network/sd-dhcp-server.c:47, function sd_dhcp_server_configure_pool(). Ignoring.\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nAssertion '!server->receive_message' failed at src/libsystemd-network/sd-dhcp-server.c:1013, function sd_dhcp_server_start(). Ignoring.\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nDHCP SERVER: UNREF\r\nDHCP SERVER: STOPPED\r\nDHCP SERVER: STARTED\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: DISCOVER (0x12345678)\r\nDHCP SERVER: OFFER (0x12345678)\r\nDHCP SERVER: REQUEST (rebinding/renewing) (0x12345678)\r\nDHCP SERVER: REQUEST (init-reboot) (0x12345678)\r\nDHCP SERVER: NAK (0x12345678)\r\n\r\nProgram received signal SIGBUS, Bus error.\r\n0x000001000000c410 in parse_request (code=54 '6', len=4 '\\004', option=0x7fefffff20a, userdata=0x10000184730) at src/libsystemd-network/sd-dhcp-server.c:617\r\n617\t                        req->server_id = *(be32_t*)option;\r\n(gdb) bt\r\n#0  0x000001000000c410 in parse_request (code=54 '6', len=4 '\\004', option=0x7fefffff20a, userdata=0x10000184730)\r\n    at src/libsystemd-network/sd-dhcp-server.c:617\r\n#1  0x0000010000010eb8 in parse_options (options=0x7fefffff1ff \"5\\001\\003\\062\\004\\177\", buflen=25, overload=0x7feffffeeb9 \"\", \r\n    message_type=0x7feffffeeba \"\\003\", error_message=0x7feffffeec0, cb=0x1000000c298 <parse_request>, userdata=0x10000184730)\r\n    at src/libsystemd-network/dhcp-option.c:210\r\n#2  0x0000010000011020 in dhcp_option_parse (message=0x7fefffff10f, len=25, cb=0x1000000c298 <parse_request>, userdata=0x10000184730, \r\n    _error_message=0x7feffffefd8) at src/libsystemd-network/dhcp-option.c:238\r\n#3  0x000001000000cb18 in dhcp_server_handle_message (server=0x100001822c0, message=0x7fefffff10f, length=265) at src/libsystemd-network/sd-dhcp-server.c:724\r\n#4  0x0000010000007e10 in test_message_handler () at src/libsystemd-network/test-dhcp-server.c:172\r\n#5  0x0000010000008be8 in main (argc=1, argv=0x7fefffff688) at src/libsystemd-network/test-dhcp-server.c:257\r\n(gdb)"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/221781345","html_url":"https://github.com/systemd/systemd/issues/3347#issuecomment-221781345","issue_url":"https://api.github.com/repos/systemd/systemd/issues/3347","id":221781345,"user":{"login":"glaubitz","id":1647645,"avatar_url":"https://avatars.githubusercontent.com/u/1647645?v=3","gravatar_id":"","url":"https://api.github.com/users/glaubitz","html_url":"https://github.com/glaubitz","followers_url":"https://api.github.com/users/glaubitz/followers","following_url":"https://api.github.com/users/glaubitz/following{/other_user}","gists_url":"https://api.github.com/users/glaubitz/gists{/gist_id}","starred_url":"https://api.github.com/users/glaubitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glaubitz/subscriptions","organizations_url":"https://api.github.com/users/glaubitz/orgs","repos_url":"https://api.github.com/users/glaubitz/repos","events_url":"https://api.github.com/users/glaubitz/events{/privacy}","received_events_url":"https://api.github.com/users/glaubitz/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T05:31:09Z","updated_at":"2016-05-26T05:31:09Z","body":"But #3346 and #3347 are not the same issue. One is a crash in _test-dhcp-server_ and one in _test-dns-packet_. Shouldn't these remain as two separate issues or do you already know they are the result of a bug in a common component?"}}
{"actor":{"display_login":"glaubitz"}}