Skip to content
This repository was archived by the owner on Jun 24, 2020. It is now read-only.
This repository was archived by the owner on Jun 24, 2020. It is now read-only.

iouyap SIGSEV when IPv6 localhost hostname present in /etc/hosts #17

@dovideh

Description

@dovideh

On Arch Linux iouyap will fail to start any images when you have ipv6 localhost defined in /etc/hosts

::1 localhost.localdomain localhost jenkins

Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/mig/GNS3/images/IOU/i86bi_linux_l2-ipbasek9-ms.jan24-2013-team_track.bin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf73a5749 in inet_pton () from /usr/lib32/libc.so.6
(gdb) bt
#0  0xf73a5749 in inet_pton () from /usr/lib32/libc.so.6
#1  0xf7287f01 in ?? () from /usr/lib32/libnss_files.so.2
#2  0xf72884a1 in _nss_files_gethostbyname3_r () from /usr/lib32/libnss_files.so.2
#3  0xf7288914 in _nss_files_gethostbyname_r () from /usr/lib32/libnss_files.so.2
#4  0xf739a214 in gethostbyname_r@@GLIBC_2.1.2 () from /usr/lib32/libc.so.6
#5  0xf73811a9 in gethostid () from /usr/lib32/libc.so.6
#6  0x08461405 in exit ()
#7  0x00000000 in ?? ()

perhaps unrelated but the function has a bug. From the manpage:
BUGS
gethostbyname() does not recognize components of a dotted IPv4 address string that are expressed in hexadecimal.

A workaround would be to comment the entry in /etc/hosts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions