Hi<br><br>I'm not used to work to work with gdb. I've installed it to my host.<br><br>From this point I don't understand how to do what you'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'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 <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>> 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>
A) once blocked, attach with gdb and get a trace of the process<br>
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> <<a href="http://1.3.0" target="_blank">http://1.3.0</a>.> I believe it gave the same problem using <a href="http://1.3.1." target="_blank">1.3.1.</a> <<a href="http://1.3.1" target="_blank">http://1.3.1</a>.><div class="Ih2E3d">
<br>
<br>
I don't see any core file in my working directory.<br>
<br>
These are the last lines of my log file:<br>
<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:uri_db:mod_init: uri_db - initializing<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:core:init_mod: initializing module xlog<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:xlog:mod_init: initializing...<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:core:init_mod: initializing module acc<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:acc:mod_init: initializing...<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:core:find_cmd_export_t: found <load_tm>(0) in module tm [/usr/local/lib/openser/modules/]<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:core:init_mod: initializing module auth<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:mod_init: initializing...<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] DBG:core:find_cmd_export_t: found <load_sl>(0) in module sl [/usr/local/lib/openser/modules/]<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:mod_init: SL API loaded<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:generate_random_secret: (1)<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:generate_random_secret: (2)<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:generate_random_secret: (3)<br>
Apr 2 16:10:36 vpngw openser: Apr 2 16:10:34 [16079] INFO:auth:generate_random_secret: (3a)<br></div>
Apr 2 16:10:36 vpngw openser: Iniciación de openser succeeded<div class="Ih2E3d"><br>
<br>
Remember that the last lines "generate_random_secret" ( (1)...(3a) ) are the ones that I have added to spot where the problem.<br>
<br>
Also it ends with a "... openser succeeded" 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 <<a href="mailto:henning.westerholt@1und1.de" target="_blank">henning.westerholt@1und1.de</a> <mailto:<a href="mailto:henning.westerholt@1und1.de" target="_blank">henning.westerholt@1und1.de</a>>> wrote:<br>
<br>
On Wednesday 02 April 2008, Pascal Maugeri wrote:<br>
> [..]<br>
> 2) when I remove the configuration parameter "secret", the<br>
auth_mod.c calls<br>
> the method generate_random_secret() as stated in the<br>
documentation. It<br>
> enters in the loop<br>
><br>
> for(i = 0; i < RAND_SECRET_LEN; i++) {<br>
> LM_INFO("(3a)\n");<br>
> sec_rand[i] = 32 + (int)(95.0 * rand() /<br>
(RAND_MAX + 1.0));<br>
> }<br>
> LM_INFO("(4)\n");<br>
><br>
> but never exit ! This is the reason why my server does not start<br>
and keeps<br>
> blocked there. I modified the code above to print more logs, I<br>
can see in<br>
> the logs the string (3a) once but I never (4): IMHO it is<br>
blocked somewhere<br>
> in the first random computation.<br>
><br>
> I'm running openser on Redhat Enterprise v4.<br>
><br>
> Is there anything else I should configure in my environment ? Or<br>
I found a<br>
> bug ?<br>
<br>
Hi Pascal,<br>
<br>
i just tested it, it works fine on my system. Without a secret<br>
parameter<br>
(which probably most people uses), its autogenerated. What version<br>
of openser<br>
do you use? Do you get a core file (in the working directory)/<br>
observed a<br>
crash on startup? Could you please post the last lines debug log<br>
of the<br>
startup?<br>
<br>
Cheers,<br>
<br>
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>
<br>
</blockquote>
<br>
</blockquote></div><br>