[Freeswitch-users] mod_amqp core dump on OSX

Ítalo Rossi italo at freeswitch.org
Tue Mar 22 23:39:50 MSK 2016


Open a JIRA and attach a backtrace there.  
  

Ítalo Rossi

italo at freeswitch.org

IRC chat.freenode.net #freeswitch #freeswitch-dev

Bugs? https://freeswitch.org/jira

Docs? https://freeswitch.org/jira

Chat? https://hipchat.freeswitch.org/gUdAgy0m6

  

> On Mar 22 2016, at 5:16 pm, Ben Hood <0x6e6562 at gmail.com> wrote:  

>

> 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

>

> _________________________________________________________________________  
Professional FreeSWITCH Consulting Services:  
consulting at freeswitch.org  
<http://www.freeswitchsolutions.com>

>

> Official FreeSWITCH Sites  
<http://www.freeswitch.org>  
<http://confluence.freeswitch.org>  
<http://www.cluecon.com>

>

> FreeSWITCH-users mailing list  
FreeSWITCH-users at lists.freeswitch.org  
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>  
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users  
<http://www.freeswitch.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160322/5bd86b44/attachment-0001.html 


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