From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 0A4EC7EE9C for ; Mon, 28 Nov 2016 15:39:28 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=ilitzroth@gmail.com; spf=Pass smtp.mailfrom=ilitzroth@gmail.com; spf=None smtp.helo=postmaster@mail-io0-f178.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of ilitzroth@gmail.com) identity=pra; client-ip=209.85.223.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ilitzroth@gmail.com"; x-sender="ilitzroth@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of ilitzroth@gmail.com designates 209.85.223.178 as permitted sender) identity=mailfrom; client-ip=209.85.223.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ilitzroth@gmail.com"; x-sender="ilitzroth@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-io0-f178.google.com) identity=helo; client-ip=209.85.223.178; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="ilitzroth@gmail.com"; x-sender="postmaster@mail-io0-f178.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AHI+Q6RL0Y95zqon1eNmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgUK/XxwZ3uMQTl6Ol3ixeRBMOAuqkC0LSd7/+oGTRZp83e4DZaKN0EfiRGoP?= =?us-ascii?q?tVtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blIt?= =?us-ascii?q?dazdU7TfhMWv1u2054abI0AR3GL8MvtOK0CRhgz0koEygJB+YoM4yx/IpHQAL+?= =?us-ascii?q?9fwGctIVOIgz794N2x9dht6XIDlegm8ptBVKDzebk1SfRcDSg0KWcp5IW/tB3C?= =?us-ascii?q?URmV4WccemoTmxtMRQPC6UepDd/KriLmu78li2GhNsrsQOVxAGz64g=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0C1AAB3QDxYf7LfVdFeHQEFAQsBGAEFA?= =?us-ascii?q?QsBgw0BAQEBAYF6B608h0uGT4gIB0MQAQEBAQEBAQEBAQESAQEJCwsJGzKCMwQ?= =?us-ascii?q?BFQEEgg0iER0BGx4DEggBAgU3AiQBEQEFASI1iDABAxedCoIJgTI/MotQggQFA?= =?us-ascii?q?R+DDQWDVwoZJw1Ug18CBhKGLIwogl0FlGuFaYFJjz2QMkmPcBMegRM1gWaDF4I?= =?us-ascii?q?JPTSGPoFPAQEB?= X-IPAS-Result: =?us-ascii?q?A0C1AAB3QDxYf7LfVdFeHQEFAQsBGAEFAQsBgw0BAQEBAYF?= =?us-ascii?q?6B608h0uGT4gIB0MQAQEBAQEBAQEBAQESAQEJCwsJGzKCMwQBFQEEgg0iER0BG?= =?us-ascii?q?x4DEggBAgU3AiQBEQEFASI1iDABAxedCoIJgTI/MotQggQFAR+DDQWDVwoZJw1?= =?us-ascii?q?Ug18CBhKGLIwogl0FlGuFaYFJjz2QMkmPcBMegRM1gWaDF4IJPTSGPoFPAQEB?= X-IronPort-AV: E=Sophos;i="5.31,564,1473112800"; d="scan'208,217";a="247057005" Received: from mail-io0-f178.google.com ([209.85.223.178]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 28 Nov 2016 15:39:27 +0100 Received: by mail-io0-f178.google.com with SMTP id m5so94767368ioe.3 for ; Mon, 28 Nov 2016 06:39:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=zb4vHUMfd+F2OXe8HXPS8P48H3u9NMwf6GmdJVFGucE=; b=XUqF8uO/cfTRdAx2W6cuge3u2hYvHCOD1pQ+Pb1ZQYdyUu5THO0+Am1FU6/SynuMhA CHFIN7wzEfAVqtqoBFxXi8lundqRB70WBOqy8ZnoK4TKbSVhfNiGb+9sdIF6MOrXK6/G U8VOmBNf0Mc38KB0/yd7pVuLTT38wNqxlrQOnAeMOu46ImJVXto1y4Z3IfB5K2ZMwNaw RKzMoZvX5s4sFo+3iPxlN6Zcwatlq7OVH00jKKghBWpFY6OscT5cXI0HEJT2niD456Lo vRUUPaftV3Qw9+pZz76tFH4abUcsAFk7hBhuWSYnvd4Ry0XEiR3SxwSJVvb4UYCyABvV wHWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zb4vHUMfd+F2OXe8HXPS8P48H3u9NMwf6GmdJVFGucE=; b=WwT2ztQnprrfBWNZWHtpmJ41B/Cq1qSHxvyoYBPrhzLGJlJ6ZtiLl4+nzH3h0OJ3Qi Xs0Vm/nbl0gVImdRPYQb7llL2N8MtABEIOV2jWr61jOVWmeewnLtGuzIaWVGsAYetryV ny870AYEmQLdZyDCIUQ2QwDEkTb6ULwofquDx+f3HiwaP1j2/TzF7f4GaCfzu9AX+ch8 RMgOPCkSSPblWiugGPVJJ6ncR3jCDz0EzfCurx/AYupCFsgntjYus0R8MFrnEjaJwXAG eqy7RRRmhEr3QtLA4e381aXtNPTa5XardS2jRdk+ACyQu2HHvmOO0D0TPKMYQmJuKSMp lgww== X-Gm-Message-State: AKaTC017B2NG55wG0hsdNeyelC2qXdUaUF1GURpZrIK2R2zsEz+M+1sf4JGXPvheICdSfxNlNTOJkUWJjiQBlw== X-Received: by 10.107.3.223 with SMTP id e92mr18699398ioi.113.1480343965912; Mon, 28 Nov 2016 06:39:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.17.99 with HTTP; Mon, 28 Nov 2016 06:39:05 -0800 (PST) From: immanuel litzroth Date: Mon, 28 Nov 2016 15:39:05 +0100 Message-ID: To: OCaML List Mailing Content-Type: multipart/alternative; boundary=001a113de9ca3be01b05425d70e8 Subject: [Caml-list] Raising invalid_argument with a constructed string. --001a113de9ca3be01b05425d70e8 Content-Type: text/plain; charset=UTF-8 caml_invalid_argument(str) is no return and does not free it's argument. So calling it with a string constructed dynamically will mean it'll never get freed. I could construct an ocaml string and pass that to caml_raise_with_arg, but I don't seem to be able to get to the caml_exn_Invalid_argument from c. Am I missing something? Immanuel --001a113de9ca3be01b05425d70e8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
caml_invalid_argument(str) is no return and does not free = it's=C2=A0
argument.=C2=A0
So calling it with a string co= nstructed dynamically will mean it'll never=C2=A0
get freed.<= /div>
I could construct an ocaml string and pass that to caml_raise_wit= h_arg,
but I don't seem to be able to get to the caml_exn_Inv= alid_argument from
c. Am I missing something?
Immanuel<= /div>
--001a113de9ca3be01b05425d70e8--