Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jonathan Bryant <jtbryant@valdosta.edu>
To: caml-list@yquem.inria.fr
Subject: Mysterious bug
Date: Sat, 10 Dec 2005 22:30:35 -0500	[thread overview]
Message-ID: <1134271835.1763.8.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

Everybody,

I'm working on my client/server library and I've run into a rather
elusive bug.  It may be elusive because my skills with GDB are rather
shoddy (usually I'm pretty good at achieving my goal of not needing to
use it).

The attachment is my code for the library (as well as a small build
script and tester).  It's documented in the Acceptor module, but when I
run the server under high loads (10 thread pinging it 1,000,000 times or
so each), one of three things happens:
1. Nothing (works like it should)
2. Unix.accept raises an Unix.Unix_error(12, "accept", "") at some
random time (sometimes, I believe, after all of the connections have
been made, but I feel very wrong in thinking this)
3. Segmentation Fault at a random time.

These bugs sometimes come up immediately into execution and sometimes 5
minutes or so into execution.  I don't know if this is a bug in my
tester, my library, OCaml, or Linux.  Any ideas?  I think it may just be
that I've been staring at the code for too long and need another set of
eyes to look at it...

--Jonathan Bryant

[-- Attachment #2: clientServer.tar.gz --]
[-- Type: application/x-compressed-tar, Size: 6896 bytes --]

             reply	other threads:[~2005-12-11  3:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-11  3:30 Jonathan Bryant [this message]
2005-12-11  4:32 ` [Caml-list] " Brian Hurt
2005-12-11 11:16   ` Christophe TROESTLER
2005-12-11 14:33     ` Brian Hurt
2005-12-11 15:15       ` Christophe TROESTLER
2005-12-11 11:11 ` Olivier Andrieu
2005-12-11 14:33 Joshua Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1134271835.1763.8.camel@localhost.localdomain \
    --to=jtbryant@valdosta.edu \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox