hipconf add hi default fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HIPL |
Fix Released
|
Undecided
|
David Martin |
Bug Description
Hipconf add hi default fails complaining about unsupported algorithms (DSA?). After this error the hip_close will result in backtrace due to invalid pointer caused by the unknown algorithm.
Tested with trunk and ecc branches (up-to-date/clean install).
Output from hipconf:
$ sudo tools/hipconf add hi default
Using hostname: wel-36
Using format dsa and file (null)
hit: 2001:0017:
hi is private rsa/dsa
DSA HIT: 7877:b1bf:
Sending user message 65 to HIPD on socket 3
Sent 2440 bytes
Waiting to receive daemon info.
2440 bytes received from HIP daemon
HIP message contained an error.
Sending msg failed.
Failed to send a message to the HIP daemon.
(Check syntax for hipconf. Is hipd running or root privilege needed?)
Error: Cannot configure the HIP daemon.
hipd output:
debug(lib/
debug(lib/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
error(hipd/
error(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
Closing output of hipd:
debug(hipd/
error(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
: 2001:0708:
debug(hipd/
: 128.214.114.246
info(hipd/
info(hipd/
info(hipd/
info(hipd/
info(hipd/
info(hipd/
info(hipd/
error(hipd/
*** glibc detected *** hipd/hipd: free(): invalid pointer: 0x00000000018aa500 ***
======= Backtrace: =========
/lib/libc.
/lib/libc.
hipd/hipd[0x411f22]
hipd/hipd[0x412162]
hipd/hipd[0x4165c7]
hipd/hipd[0x413dce]
/lib/libc.
hipd/hipd[0x405c69]
Related branches
Changed in hipl: | |
status: | New → Confirmed |
assignee: | nobody → David Martin (martin-lp) |
Changed in hipl: | |
status: | Fix Committed → Fix Released |
I could not reproduce this bug in trunk.
My output looks like this:
HIPCONF
------- ------- ------- ------- -- 3851:d3dc: 09ac:ed0e: e910:1877 ff7f:0000: f806:aa76: 4d7f:0000 fa2a:8d13: c343:7c7e: 570e:9e73 fa2a:8d13: c343:7c7e: 570e:9e73 f441:14bf: 7c87:cb82: 1444:d129 f441:14bf: 7c87:cb82: 1444:d129 9b4a:8ad5: 9ffc:a14b: 3ebf:3cfc 9b4a:8ad5: 9ffc:a14b: 3ebf:3cfc ------- ------- ------- --
Using hostname: thesis1
Using format dsa and file (null)
hit: 2001:001f:
hi is private dsa
DSA HIT: f081:be1a:
Sending user message 65 to HIPD on socket 3
Sent 2440 bytes
Waiting to receive daemon info.
2440 bytes received from HIP daemon
Using hostname: thesis1
Using format dsa and file (null)
hit: 2001:0019:
hi is private dsa
DSA HIT: 2001:0019:
Sending user message 65 to HIPD on socket 3
Sent 2440 bytes
Waiting to receive daemon info.
2440 bytes received from HIP daemon
Using hostname: thesis1
Using format rsa and file (null)
rsa_to_hip_endpoint called
hit: 2001:001d:
hi is private rsa
RSA HIT: 2001:001d:
Sending user message 65 to HIPD on socket 3
Sent 2440 bytes
Waiting to receive daemon info.
2440 bytes received from HIP daemon
Using hostname: thesis1
Using format rsa and file (null)
rsa_to_hip_endpoint called
hit: 2001:0012:
hi is private rsa
RSA HIT: 2001:0012:
Sending user message 65 to HIPD on socket 3
Sent 2440 bytes
Waiting to receive daemon info.
2440 bytes received from HIP daemon
User message was sent successfully to the HIP daemon.
-------
HIPD ------- ------- ------- -- hip_socket. c:129@hip_ handle_ user_sock) : received on: hip_user_sock core/message. c:501@hip_ read_user_ control_ msg): Receiving user message. core/message. c:517@hip_ read_user_ control_ msg): received user message from local port 1001 user.c: 194@hip_ user_run_ handles) : User message (type: 65) not dynamically handled -> trigger static handling. user.c: 256@hip_ handle_ user_msg) : User message from port 1001 user.c: 284@hip_ handle_ user_msg) : HIP user message type is: 65 hidb.c: 552@hip_ handle_ add_local_ hi): /* --------- */ hidb.c: 553@hip_ handle_ add_local_ hi): input->hits = : 0000:0000: 0000:0000: 0000:0000: 0000:0000 hidb.c: 554@hip_ handle_ add_local_ hi): input->hitr = : 0000:0000: 0000:0000: 0000:0000: 0000:0000 hidb.c: 567@hip_ handle_ add_local_ hi): host id found in the msg hidb.c: 468@hip_ add_host_ id): Trying to add duplicate lhi hidb.c: 591@hip_ handle_ add_local_ hi): Ignoring redundant HI hip_socket. c:145@hip_ handle_ user_sock) : Send response hip_socket. c:151@hip_ handle_ user_sock) : Sending message (type=65) response to port 1001 hip_socket. c:152@hip_ handle_ user_sock) : To address: 0000:0000: 0000:0000: 0000:0000: 0000:0001 user.c: 231@hip_ sendto_ user): Sending msg type 65 hip_socket. c:157@hip_ handle_ user_sock) : Response sent ok hip_socket. c:285@hip_ run_socket_ handles) : result: 0 hip_socket. c:129@hip_ handle_ user_sock) : received on: hip_user_sock core/message. c:501@hip_ read_user_ control_ msg): Receiving user message. core/message. c:517@hip_ read_user_ control_ msg): received user message from local por...
-------
debug(hipd/
debug(lib/
debug(lib/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
error(hipd/
error(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(hipd/
debug(lib/
debug(lib/