Hi<br><br>I&#39;m not used to work to work with gdb. I&#39;ve installed it to my host.<br><br>From this point I don&#39;t understand how to do what you&#39;re recommending because as I said when I start my openser with the auth.so module loaded, there is no running process. So I can&#39;t attach gdb to anything...<br>
<br>Could you be more precise in how I should A) ?<br><br>Regards,<br>Pascal<br><br><br><br><div class="gmail_quote">On Mon, Apr 7, 2008 at 11:37 AM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Pascal,<br>
<br>
This is strange as it looks like your openser blocks in rand() function......AFAIK this function should not block at all....<br>
<br>
To clarify this a bit, you can do 2 things:<br>
 &nbsp; A) once blocked, attach with gdb and get a trace of the process<br>
 &nbsp; B) run openser in strace (with fork support) and watch the output....<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Pascal Maugeri wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I have a fresh checkout of openser <a href="http://1.3.0." target="_blank">1.3.0.</a> &lt;<a href="http://1.3.0" target="_blank">http://1.3.0</a>.&gt; I believe it gave the same problem using <a href="http://1.3.1." target="_blank">1.3.1.</a> &lt;<a href="http://1.3.1" target="_blank">http://1.3.1</a>.&gt;<div class="Ih2E3d">
<br>
<br>
I don&#39;t see any core file in my working directory.<br>
<br>
These are the last lines of my log file:<br>
<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:uri_db:mod_init: uri_db - initializing<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:core:init_mod: initializing module xlog<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:xlog:mod_init: initializing...<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:core:init_mod: initializing module acc<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:acc:mod_init: initializing...<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:core:find_cmd_export_t: found &lt;load_tm&gt;(0) in module tm [/usr/local/lib/openser/modules/]<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:core:init_mod: initializing module auth<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:mod_init: initializing...<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] DBG:core:find_cmd_export_t: found &lt;load_sl&gt;(0) in module sl [/usr/local/lib/openser/modules/]<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:mod_init: SL API loaded<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:generate_random_secret: (1)<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:generate_random_secret: (2)<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:generate_random_secret: (3)<br>
Apr &nbsp;2 16:10:36 vpngw openser: Apr &nbsp;2 16:10:34 [16079] INFO:auth:generate_random_secret: (3a)<br></div>
Apr &nbsp;2 16:10:36 vpngw openser: Iniciación de openser succeeded<div class="Ih2E3d"><br>
<br>
Remember that the last lines &quot;generate_random_secret&quot; ( (1)...(3a) ) are the ones that I have added to spot where the problem.<br>
<br>
Also it ends with a &quot;... openser succeeded&quot; there is no running openser processus ?!<br>
<br>
Thanks for your help.<br>
Pascal<br>
<br></div><div><div></div><div class="Wj3C7c">
On Wed, Apr 2, 2008 at 2:50 PM, Henning Westerholt &lt;<a href="mailto:henning.westerholt@1und1.de" target="_blank">henning.westerholt@1und1.de</a> &lt;mailto:<a href="mailto:henning.westerholt@1und1.de" target="_blank">henning.westerholt@1und1.de</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;On Wednesday 02 April 2008, Pascal Maugeri wrote:<br>
 &nbsp; &nbsp;&gt; [..]<br>
 &nbsp; &nbsp;&gt; 2) when I remove the configuration parameter &quot;secret&quot;, the<br>
 &nbsp; &nbsp;auth_mod.c calls<br>
 &nbsp; &nbsp;&gt; the method generate_random_secret() as stated in the<br>
 &nbsp; &nbsp;documentation. It<br>
 &nbsp; &nbsp;&gt; enters in the loop<br>
 &nbsp; &nbsp;&gt;<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; for(i = 0; i &lt; RAND_SECRET_LEN; i++) {<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LM_INFO(&quot;(3a)\n&quot;);<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sec_rand[i] = 32 + (int)(95.0 * rand() /<br>
 &nbsp; &nbsp;(RAND_MAX + 1.0));<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; LM_INFO(&quot;(4)\n&quot;);<br>
 &nbsp; &nbsp;&gt;<br>
 &nbsp; &nbsp;&gt; but never exit ! This is the reason why my server does not start<br>
 &nbsp; &nbsp;and keeps<br>
 &nbsp; &nbsp;&gt; blocked there. I modified the code above to print more logs, I<br>
 &nbsp; &nbsp;can see in<br>
 &nbsp; &nbsp;&gt; the logs the string (3a) once but I never (4): IMHO it is<br>
 &nbsp; &nbsp;blocked somewhere<br>
 &nbsp; &nbsp;&gt; in the first random computation.<br>
 &nbsp; &nbsp;&gt;<br>
 &nbsp; &nbsp;&gt; I&#39;m running openser on Redhat Enterprise v4.<br>
 &nbsp; &nbsp;&gt;<br>
 &nbsp; &nbsp;&gt; Is there anything else I should configure in my environment ? Or<br>
 &nbsp; &nbsp;I found a<br>
 &nbsp; &nbsp;&gt; bug ?<br>
<br>
 &nbsp; &nbsp;Hi Pascal,<br>
<br>
 &nbsp; &nbsp;i just tested it, it works fine on my system. Without a secret<br>
 &nbsp; &nbsp;parameter<br>
 &nbsp; &nbsp;(which probably most people uses), its autogenerated. What version<br>
 &nbsp; &nbsp;of openser<br>
 &nbsp; &nbsp;do you use? Do you get a core file (in the working directory)/<br>
 &nbsp; &nbsp;observed a<br>
 &nbsp; &nbsp;crash on startup? Could you please post the last lines debug log<br>
 &nbsp; &nbsp;of the<br>
 &nbsp; &nbsp;startup?<br>
<br>
 &nbsp; &nbsp;Cheers,<br>
<br>
 &nbsp; &nbsp;Henning<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br>