[Freeswitch-users] mod_amqp core dump on OSX

Ben Hood 0x6e6562 at gmail.com
Tue Mar 22 23:13:37 MSK 2016


Hi,

I was wondering if anybody had run into any issues on master on OSX
where mod_amqp core dumps on boot:

2016-03-22 20:12:40.692203 [NOTICE] mod_amqp.c:67 mod_apqp loading:
Version 1.7.0+git~20160321T001250Z~35259cf36c~64bit
2016-03-22 20:12:40.692442 [INFO] mod_amqp_utils.c:93 Loading Config
2016-03-22 20:12:40.692644 [INFO] mod_amqp_producer.c:233 amqp
fallback format fields enabled
2016-03-22 20:12:40.692652 [INFO] mod_amqp_producer.c:252 amqp format
fields : #FreeSWITCH,FreeSWITCH-Hostname,Event-Name,Event-Subclass,Unique-ID
2016-03-22 20:12:40.692657 [CRIT] mod_amqp_producer.c:267 Found 4 subscriptions
2016-03-22 20:12:40.692663 [INFO] mod_amqp_producer.c:288 amqp routing
key 0 : #FreeSWITCH
2016-03-22 20:12:40.692665 [INFO] mod_amqp_producer.c:288 amqp routing
key 1 : FreeSWITCH-Hostname
2016-03-22 20:12:40.692667 [INFO] mod_amqp_producer.c:288 amqp routing
key 2 : Event-Name
2016-03-22 20:12:40.692668 [INFO] mod_amqp_producer.c:288 amqp routing
key 3 : Event-Subclass
2016-03-22 20:12:40.692670 [INFO] mod_amqp_producer.c:288 amqp routing
key 4 : Unique-ID
[1]    1388 segmentation fault (core dumped)
DYLD_LIBRARY_PATH=/Users/0x6e6562/Tools/librabbitmq-0.5.2/lib
./bin/freeswitch

I haven't yet re-compiled Freeswitch to turn debug symbols on - I was
just wondering if somebody else had come across this before.

I'm also wondering whether it could have anything to do with the tweak
I put into the header file in order to get the object files to link
(since without this patch, the linker was complaining that the globals
struct was duplicated across multiple compile units):

diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.h
b/src/mod/event_handlers/mod_amqp/mod_amqp.h
index 238236a..7bde3ad 100644
--- a/src/mod/event_handlers/mod_amqp/mod_amqp.h
+++ b/src/mod/event_handlers/mod_amqp/mod_amqp.h
@@ -173,7 +173,7 @@ typedef struct {
   switch_memory_pool_t *pool;
 } mod_amqp_logging_profile_t;

-struct {
+static struct {
   switch_memory_pool_t *pool;

   switch_hash_t *producer_hash;

Any pointers appreciated,

Ben



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list