[OpenSIPS-Users] ERROR:tls_mgm:mod_init: unable to set the memory allocation functions
Răzvan Crainea
razvan at opensips.org
Wed Aug 17 16:09:46 CEST 2016
Can you try to downgrade it[1]? At least just for testing purposes.
BTW, I am using 1.0.2h and it works fine.
[1]
http://askubuntu.com/questions/292314/how-to-downgrade-packages-on-ubuntu
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 08/17/2016 04:07 PM, Stefano Pisani wrote:
> It seems to be the last available version for ubuntu 16.04 LTS. What
> can I do?
>
> #apt-get install openssl
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> openssl is already the newest version (1.0.2g-1ubuntu4.1)
>
> Thanks
> Stefano
>
>
>
>
> Il 17/08/2016 14:52, Răzvan Crainea ha scritto:
>> Seems to be a similar problem to the 1.0.1e-fips library. Could you
>> try to upgrade the openssl package?
>>
>> Thanks,
>> Răzvan Crainea
>> OpenSIPS Solutions
>> www.opensips-solutions.com
>> On 08/17/2016 12:48 PM, Stefano Pisani wrote:
>>>
>>> I miss the last two lines
>>>
>>> (gdb) info line *0x7ffff7672a70
>>> Line 2935 of "malloc.c" starts at address 0x7ffff7672a70
>>> <__GI___libc_free> and ends at 0x7ffff7672a7a <__GI___libc_free+10>.
>>> (gdb) info line *0x7ffff161b60e
>>> Line 101 of "tls.h" starts at address 0x7ffff161b60e <os_free> and
>>> ends at 0x7ffff161b61a <os_free+12>.
>>>
>>> I hope this helps.
>>>
>>> Aug 17 05:41:30 [10867] INFO:tls_mgm:mod_init: initializing TLS protocol
>>> Aug 17 05:41:30 [10867] ERROR:tls_mgm:mod_init: unable to set the
>>> memory allocation functions
>>> Aug 17 05:41:30 [10867] ERROR:tls_mgm:mod_init: NOTE: check if you
>>> have openssl 1.0.1e-fips, as this version is known to be broken; if
>>> so, you need to upgrade or downgrade to a different openssl version !!
>>> Aug 17 05:41:30 [10867] ERROR:tls_mgm:mod_init: extra:
>>> malloc=0x7ffff161b5aa/0x7ffff7672550
>>> realloc=0x7ffff161b5d6/0x7ffff7672c40
>>> free=0x7ffff161b60e/0x7ffff7672a70 version=OpenSSL 1.0.2g-fips 1
>>> Mar 2016
>>> Aug 17 05:41:30 [10867] ERROR:core:init_mod: failed to initialize
>>> module tls_mgm
>>> Aug 17 05:41:30 [10867] ERROR:core:main: error while initializing
>>> modules
>>> (gdb) info line *0x7ffff7672550
>>> Line 2903 of "malloc.c" starts at address 0x7ffff7672550
>>> <__GI___libc_malloc> and ends at 0x7ffff7672556 <__GI___libc_malloc+6>.
>>> (gdb) info line *0x7ffff7672c40
>>> Line 2975 of "malloc.c" starts at address 0x7ffff7672c40
>>> <__GI___libc_realloc> and ends at 0x7ffff7672c54
>>> <__GI___libc_realloc+20>.
>>> (gdb) info line *0x7ffff161b5aa
>>> Line 89 of "tls.h" starts at address 0x7ffff161b5aa <os_malloc> and
>>> ends at 0x7ffff161b5b6 <os_malloc+12>.
>>> (gdb) info line *0x7ffff161b5d6
>>> Line 95 of "tls.h" starts at address 0x7ffff161b5d6 <os_realloc> and
>>> ends at 0x7ffff161b5e6 <os_realloc+16>.
>>>
>>>
>>> Il 17/08/2016 11:16, Răzvan Crainea ha scritto:
>>>> Can you run 'gdb ./opensips' and run the following commands:
>>>> info line *0x7f0ce10d8a70
>>>> info line *0x7f0ce10d8550
>>>>
>>>> Thanks,
>>>>
>>>> Răzvan Crainea
>>>> OpenSIPS Solutions
>>>> www.opensips-solutions.com
>>>> On 08/17/2016 12:06 PM, Stefano Pisani wrote:
>>>>>
>>>>> Hi Răzvan.
>>>>>
>>>>> These are the new logs. I hope it helps to fix this.
>>>>>
>>>>> Aug 17 05:04:40 [3997] INFO:tls_mgm:mod_init: initializing TLS
>>>>> protocol
>>>>> Aug 17 05:04:40 [3997] ERROR:tls_mgm:mod_init: unable to set the
>>>>> memory allocation functions
>>>>> Aug 17 05:04:40 [3997] ERROR:tls_mgm:mod_init: NOTE: check if you
>>>>> have openssl 1.0.1e-fips, as this version is known to be broken;
>>>>> if so, you need to upgrade or downgrade to a different openssl
>>>>> version !!
>>>>> Aug 17 05:04:40 [3997] ERROR:tls_mgm:mod_init: extra:
>>>>> malloc=0x7f0cdb0845c8/0x7f0ce10d8550
>>>>> realloc=0x7f0cdb0845f4/0x7f0ce10d8c40
>>>>> free=0x7f0cdb08462c/0x7f0ce10d8a70 version=OpenSSL 1.0.2g-fips 1
>>>>> Mar 2016
>>>>> Aug 17 05:04:40 [3997] ERROR:core:init_mod: failed to initialize
>>>>> module tls_mgm
>>>>> Aug 17 05:04:40 [3997] ERROR:core:main: error while initializing
>>>>> modules
>>>>>
>>>>> Thanks.
>>>>> Stefano
>>>>>
>>>>> Il 17/08/2016 09:53, Răzvan Crainea ha scritto:
>>>>>>
>>>>>> Hi, Stefano!
>>>>>>
>>>>>> Apologies, I did not push the changes. Could you please re-clone
>>>>>> and try again?
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Răzvan Crainea
>>>>>> OpenSIPS Solutions
>>>>>> www.opensips-solutions.com
>>>>>> On 08/16/2016 07:26 PM, Stefano Pisani wrote:
>>>>>>> I have this result.
>>>>>>>
>>>>>>> # ./opensips -V
>>>>>>> version: opensips 2.3.0-dev (x86_64/linux)
>>>>>>> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
>>>>>>> PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>>>>>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
>>>>>>> MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
>>>>>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>>>>>> git revision: 058991d
>>>>>>> main.c compiled on 11:50:11 Aug 16 2016 with gcc 5.4.0
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Il 16/08/2016 18:23, Răzvan Crainea ha scritto:
>>>>>>>>
>>>>>>>> Hi, Stefano!
>>>>>>>>
>>>>>>>> I don't think you are using the latest sources. Either you have
>>>>>>>> not installed them, or you are using a wrong path. Could you
>>>>>>>> please double-check?
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Răzvan Crainea
>>>>>>>> OpenSIPS Solutions
>>>>>>>> www.opensips-solutions.com
>>>>>>>> On 08/16/2016 06:56 PM, Stefano Pisani wrote:
>>>>>>>>>
>>>>>>>>> I cloned the source from
>>>>>>>>>
>>>>>>>>> |git clone https://github.com/OpenSIPS/opensips.git
>>>>>>>>> opensips_head the error appears the same Aug 16 11:55:14
>>>>>>>>> [25630] INFO:tls_mgm:mod_init: initializing TLS protocol Aug
>>>>>>>>> 16 11:55:14 [25630] ERROR:tls_mgm:mod_init: unable to set the
>>>>>>>>> memory allocation functions Aug 16 11:55:14 [25630]
>>>>>>>>> ERROR:tls_mgm:mod_init: NOTE: check if you have openssl
>>>>>>>>> 1.0.1e-fips, as this version is know to be broken; if so, you
>>>>>>>>> need to upgrade or downgrade to a differen openssl version !!
>>>>>>>>> Aug 16 11:55:14 [25630] ERROR:core:init_mod: failed to
>>>>>>>>> initialize module tls_mgm Aug 16 11:55:14 [25630]
>>>>>>>>> ERROR:core:main: error while initializing modules Aug 16
>>>>>>>>> 11:55:14 [25630] INFO:core:cleanup: cleanup Aug 16 11:55:14
>>>>>>>>> [25630] DBG:dispatcher:destroy: destroying module ... Aug 16
>>>>>>>>> 11:55:14 [25630] DBG:tm:tm_shutdown: tm_shutdown : start Aug
>>>>>>>>> 16 11:55:14 [25630] DBG:tm:unlink_timer_lists: emptying DELETE
>>>>>>>>> list for set 0 Aug 16 11:55:14 [25630] DBG:tm:tm_shutdown:
>>>>>>>>> emptying hash table Aug 16 11:55:14 [25630]
>>>>>>>>> DBG:tm:tm_shutdown: releasing timers Aug 16 11:55:14 [25630]
>>>>>>>>> DBG:tm:tm_shutdown: removing semaphores Aug 16 11:55:14
>>>>>>>>> [25630] DBG:tm:tm_shutdown: destroying callback lists Aug 16
>>>>>>>>> 11:55:14 [25630] DBG:tm:tm_shutdown: tm_shutdown : done Aug 16
>>>>>>>>> 11:55:14 [25630] DBG:core:shm_mem_destroy: destroying the
>>>>>>>>> shared memory lock Aug 16 11:55:14 [25630] NOTICE:core:main:
>>>>>>>>> Exiting.... Thanks Stefano |
>>>>>>>>>
>>>>>>>>> Il 16/08/2016 17:18, Răzvan Crainea ha scritto:
>>>>>>>>>> Stefano!
>>>>>>>>>>
>>>>>>>>>> I've added some extra debugging in the master branch that
>>>>>>>>>> might help you debug this. Could you please take the latest
>>>>>>>>>> git version/deb and try to run again?
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>>
>>>>>>>>>> Răzvan Crainea
>>>>>>>>>> OpenSIPS Solutions
>>>>>>>>>> www.opensips-solutions.com
>>>>>>>>>>
>>>>>>>>>> On 08/16/2016 10:52 AM, Stefano Pisani wrote:
>>>>>>>>>>> I'm trying to enable wss on opensips 2.2.1 and Ubuntu
>>>>>>>>>>> 16.04.1 LTS
>>>>>>>>>>>
>>>>>>>>>>> version: opensips 2.2.1 (x86_64/linux)
>>>>>>>>>>> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
>>>>>>>>>>> PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>>>>>>>>>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
>>>>>>>>>>> MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
>>>>>>>>>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt,
>>>>>>>>>>> select.
>>>>>>>>>>> main.c compiled on with gcc 5.3.1
>>>>>>>>>>>
>>>>>>>>>>> It's not working:
>>>>>>>>>>> Aug 16 03:43:02 [3915] INFO:tls_mgm:mod_init: initializing
>>>>>>>>>>> TLS protocol
>>>>>>>>>>> Aug 16 03:43:02 [3915] ERROR:tls_mgm:mod_init: unable to set
>>>>>>>>>>> the memory allocation functions
>>>>>>>>>>> Aug 16 03:43:02 [3915] ERROR:tls_mgm:mod_init: NOTE: check
>>>>>>>>>>> if you have openssl 1.0.1e-fips, as this version is know to
>>>>>>>>>>> be broken; if so, you need to upgrade or downgrade to a
>>>>>>>>>>> differen openssl version !!
>>>>>>>>>>> Aug 16 03:43:02 [3915] ERROR:core:init_mod: failed to
>>>>>>>>>>> initialize module tls_mgm
>>>>>>>>>>>
>>>>>>>>>>> OpenSSL version is OpenSSL 1.0.2g-fips 1 Mar 2016
>>>>>>>>>>>
>>>>>>>>>>> The opensips installed packages are:
>>>>>>>>>>> opensips install
>>>>>>>>>>> opensips-tls-module:amd64 install
>>>>>>>>>>> opensips-tlsmgm-module:amd64 install
>>>>>>>>>>> opensips-wss-module:amd64 install
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> There is something I can do?
>>>>>>>>>>> Thanks
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Users mailing list
>>>>>>>>>>> Users at lists.opensips.org
>>>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Users at lists.opensips.org
>>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users at lists.opensips.org
>>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Users mailing list
>>>>>>>> Users at lists.opensips.org
>>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at lists.opensips.org
>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.opensips.org
>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160817/eb6eb743/attachment-0001.htm>
More information about the Users
mailing list