Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: freeswitch-core
-
Labels:None
-
Platform:Linux x86/gcc
-
CPU Info:
-
FreeSWITCH GIT Revision:9d3401e30f3953159505033cf789478b8c22338b
-
Reproduced with GIT HEAD?:YES
Description
When loadable module loading process fails at any step in switch_loadable_module_load_file(), the DSO is kept in memory not freed.
This is incorrect behaviour and wastes development time as freeswitch has to be restarted to get rid of the old version of the DSO.
2012-04-19 16:21:14.493896 [ERR] ftdm_io.c:5763 FreeTDM global configuration failed!
2012-04-19 16:21:14.493896 [ERR] mod_freetdm.c:4842 Error configuring FreeTDM
2012-04-19 16:21:14.493896 [CRIT] switch_loadable_module.c:1295 Error Loading module /opt/freeswitch/mod/mod_freetdm.so
**Module load routine returned an error**
:/opt/freeswitch # cat /proc/`pidof freeswitch`/maps|grep mod_freetdm
b61e3000-b61fb000 r-xp 00000000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
b61fb000-b61fc000 r--p 00017000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
b61fc000-b61fd000 rw-p 00018000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
This is incorrect behaviour and wastes development time as freeswitch has to be restarted to get rid of the old version of the DSO.
2012-04-19 16:21:14.493896 [ERR] ftdm_io.c:5763 FreeTDM global configuration failed!
2012-04-19 16:21:14.493896 [ERR] mod_freetdm.c:4842 Error configuring FreeTDM
2012-04-19 16:21:14.493896 [CRIT] switch_loadable_module.c:1295 Error Loading module /opt/freeswitch/mod/mod_freetdm.so
**Module load routine returned an error**
:/opt/freeswitch # cat /proc/`pidof freeswitch`/maps|grep mod_freetdm
b61e3000-b61fb000 r-xp 00000000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
b61fb000-b61fc000 r--p 00017000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
b61fc000-b61fd000 rw-p 00018000 68:02 1001568 /opt/freeswitch/mod/mod_freetdm.so
Issue Links
- duplicates
-
FS-4045
If a module fails to load, freeswitch must be restarted before it rereads any changes to the so.
-
/b