You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Piotr Sikora (Commented) (JIRA)" <ji...@apache.org> on 2012/01/02 01:03:30 UTC

[jira] [Commented] (TS-993) Add OpenBSD support.

    [ https://issues.apache.org/jira/browse/TS-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178252#comment-13178252 ] 

Piotr Sikora commented on TS-993:
---------------------------------

Uhm, like the original comment says, this one patch only lets ATS compile on OpenBSD.

Know issues (so far):
1) it goes straight away to 100% CPU doing gettimeofday() thousands of time per second.
2) it crashes after first request when compiled without --enable-debug.
3) it crashes right away when compiled with --enable-debug:
{code}
FATAL: ../../lib/ts/ink_thread.h:267: failed assert `pthread_cond_wait(cp, mp) == 0`
{code}
4) it fails to regiester kqueue events:
{code}
ERROR: [iocore_dns] open_con: Failed to add 257175888 server to epoll list
{code}

Those might be partly my fault, because I'm compiling it with:
{code}
CXXFLAGS="-DRENTRENT_GETHOSTBYNAME -DRENTRENT_GETHOSTBYADDR"
{code}
even though I know this isn't true, but OpenBSD doesn't have thread-safe gethostby{name,addr}() implementation... Ideally, we should use getaddrinfo() here.

All in all, I'm not too happy about the "Resolved / Fixed" status update. Oh, and this patch got committed with wrong ticket number (TS-992 instead of TS-993).
                
> Add OpenBSD support.
> --------------------
>
>                 Key: TS-993
>                 URL: https://issues.apache.org/jira/browse/TS-993
>             Project: Traffic Server
>          Issue Type: Improvement
>         Environment: OpenBSD
>            Reporter: Piotr Sikora
>            Assignee: Leif Hedstrom
>             Fix For: 3.1.2
>
>         Attachments: 0001-Add-OpenBSD-support.patch
>
>
> Add OpenBSD support.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira