<head></head><body>Open a JIRA and attach a backtrace there.<br><br><div class="nylas-n1-signature">Ítalo Rossi<div>italo@freeswitch.org</div><div>IRC chat.freenode.net #freeswitch #freeswitch-dev</div><div>Bugs? https://freeswitch.org/jira</div><div>Docs? https://freeswitch.org/jira</div><div>Chat? https://hipchat.freeswitch.org/gUdAgy0m6</div><div><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mar 22 2016, at 5:16 pm, Ben Hood <0x6e6562@gmail.com> wrote:
<br>
<p>Hi,</p>
<p>I was wondering if anybody had run into any issues on master on OSX<br>where mod_amqp core dumps on boot:</p>
<p>2016-03-22 20:12:40.692203 [NOTICE] mod_amqp.c:67 mod_apqp loading:<br>Version 1.7.0+git~20160321T001250Z~35259cf36c~64bit<br>2016-03-22 20:12:40.692442 [INFO] mod_amqp_utils.c:93 Loading Config<br>2016-03-22 20:12:40.692644 [INFO] mod_amqp_producer.c:233 amqp<br>fallback format fields enabled<br>2016-03-22 20:12:40.692652 [INFO] mod_amqp_producer.c:252 amqp format<br>fields : #FreeSWITCH,FreeSWITCH-Hostname,Event-Name,Event-Subclass,Unique-ID<br>2016-03-22 20:12:40.692657 [CRIT] mod_amqp_producer.c:267 Found 4 subscriptions<br>2016-03-22 20:12:40.692663 [INFO] mod_amqp_producer.c:288 amqp routing<br>key 0 : #FreeSWITCH<br>2016-03-22 20:12:40.692665 [INFO] mod_amqp_producer.c:288 amqp routing<br>key 1 : FreeSWITCH-Hostname<br>2016-03-22 20:12:40.692667 [INFO] mod_amqp_producer.c:288 amqp routing<br>key 2 : Event-Name<br>2016-03-22 20:12:40.692668 [INFO] mod_amqp_producer.c:288 amqp routing<br>key 3 : Event-Subclass<br>2016-03-22 20:12:40.692670 [INFO] mod_amqp_producer.c:288 amqp routing<br>key 4 : Unique-ID<br>[1] 1388 segmentation fault (core dumped)<br>DYLD_LIBRARY_PATH=/Users/0x6e6562/Tools/librabbitmq-0.5.2/lib<br>./bin/freeswitch</p>
<p>I haven't yet re-compiled Freeswitch to turn debug symbols on - I was<br>just wondering if somebody else had come across this before.</p>
<p>I'm also wondering whether it could have anything to do with the tweak<br>I put into the header file in order to get the object files to link<br>(since without this patch, the linker was complaining that the globals<br>struct was duplicated across multiple compile units):</p>
<p>diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp.h<br>b/src/mod/event_handlers/mod_amqp/mod_amqp.h<br>index 238236a..7bde3ad 100644<br>--- a/src/mod/event_handlers/mod_amqp/mod_amqp.h<br>+++ b/src/mod/event_handlers/mod_amqp/mod_amqp.h<br>@@ -173,7 +173,7 @@ typedef struct {<br> switch_memory_pool_t *pool;<br> } mod_amqp_logging_profile_t;</p>
<p>-struct {<br>+static struct {<br> switch_memory_pool_t *pool;</p>
<p> switch_hash_t *producer_hash;</p>
<p>Any pointers appreciated,</p>
<p>Ben</p>
<p>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services: <br>consulting@freeswitch.org<br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></p>
<p>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com">http://www.cluecon.com</a></p>
<p>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></p>
</blockquote></body>