Hello,
On 10/3/11 9:32 PM, Bruno Bresciani wrote:
Hello,
sorry but I can't understand when you wrote: "ok, you didn't say and
it didn't match the sources."
I meant that you referred to dtp->prev at
line 140 in dbt_tb.c without
mentioning you changed the sources, so when I looked, there was nothing
like that there.
I'm going to upgrade and test this fix... Thank's a lot by your attention
Let me know if works ok.
Cheers,
Daniel
Best Regards
2011/10/3 Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>
Hello,
On 10/3/11 7:17 PM, Bruno Bresciani wrote:
Hello,
I wrote a if condition below this line to know where dtp->prev
was being initialized.
ok, you didn't say and it didn't match the
sources.
Hopefully the issue is fixed, you have to upgrade to latest git
branch 3.1 to get the fix:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c54b89a…
Some guidelines how to install from git are provided at:
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git
Cheers,
Daniel
dtp = (dbt_table_p)shm_malloc(sizeof(dbt_table_t));
*if (dtp->prev){
LM_DBG("dtp->prev was initialized")
}*
Analysing the trace of kamailio, the condition is true only to
subscriber table. I can't get understand this behavior only
subscriber table because to others tables (location, dispatcher
and version) the condition is false.
PS: I'm doing this analysis to understand the core generated in
db_text module described in the previous e-mails.
Best Regards
2011/10/3 Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>
Hello,
the latest 3.1 branch as in db_text/dbt_tb.c following line:
dtp = (dbt_table_p)shm_malloc(sizeof(dbt_table_t));
Where is the line you refer to dpt->prev? Can you copy&paste
it here.
Cheers,
Daniel
On 10/3/11 2:20 PM, Bruno Bresciani wrote:
Hello ALL,
Someone knows why at line 149 in .../kamailio-3.1.2/modules_k/
db_text/dbt_tb.c the shm_malloc function sometimes allocates
memory to dtp->prev but sometimes doesn't?
I'm asking this question because when the subscriber table
is being loading to shared memory in db_text module,
dtp->prev is allocated but on version, dispatcher, location
table it doesn't... Analysing the source code I can't see
any reason to this behavior.
The allocation of dtp->prev to subscriber table is
generating a core at db_text module.
Best Regards
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --http://www.asipto.com
Kamailio Advanced Training, Dec 5-8,
Berlin:http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --http://www.asipto.com
Kamailio Advanced Training, Dec 5-8,
Berlin:http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda