<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>This is more a user error but not sure why it causes problems
later on, that would need a real dive into TAO/ACE to see what
happens when a user invokes ORB_init in such way.<br>
</p>
<pre class="moz-signature" cols="72">Johnny Willemsen
Remedy IT
<a class="moz-txt-link-freetext" href="http://www.remedy.nl">http://www.remedy.nl</a>
</pre>
<div class="moz-cite-prefix">On 3/12/20 5:02 PM, Yorick wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPbzRUZN7xoUHpt9Tst+=GGhHpqBpjVEiJdNgvPOCoX7QZqZxQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Johnny and Adam,</div>
<div><br>
</div>
<div>Thanks for the quick reply.</div>
<div>With valgrind I could eventually found out an issue with
ACE / our code (not sure where the responsibility lies)<br>
</div>
<div><br>
</div>
<div>So, the issue is when we call CORBA::ORB_init with some
strange variables:</div>
<div><br>
</div>
<div><font face="monospace">char* argv[5];<br>
argv[0] = "argument0";<br>
argv[1] = "argument1";<br>
argv[2] = "argument2";<br>
argv[3] = "argument3";<br>
argv[4] = "argument4";<br>
<br>
int argc = 3;<br>
<br>
// The issue occurs here, argv has more values after the
count of 3 (specified by argc)<br>
CORBA::ORB_init ( argc, argv, "something" );<br>
</font><br>
</div>
<div>When I force argv[3][0] = "\0"; it seems to work, although
i get an other issues somewhere else.</div>
<div><br>
</div>
<div>To be complete: everything works just fine with ACE 5.5.4.
Unit tests seem to work just fine.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Yorick</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ace-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ace-users@list.isis.vanderbilt.edu">ace-users@list.isis.vanderbilt.edu</a>
<a class="moz-txt-link-freetext" href="http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/ace-users">http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/ace-users</a></pre>
</blockquote>
</body>
</html>