Doesn't FS already compiles with debug symbols by default?<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 7:04 PM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Nope, I'm still on Debian 5.0... in transit to CentOS 5.3 but it needs to wait a bit.<br>
i was talking about gdb, not gcc and was trying to recompile FS with debug symbols on: CFLAGS="-g -ggdb" MOD_CFLAGS="-g -ggdb". <br>
<br>yes, I understand that gcc segfault most probably means only one thing... HW isues. This is sometihng that I'm going to check tomorrow.... running memtest to see what i get. Also, I will repeat the same test with a new block of RAM.<br>
<br><br>Maybe i didn't explain myself well... apologize.<br><font color="#888888"><br>T.</font><div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 8:42 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">One of the things that -hp does is call "memlockall" which disables swapping which uses more memory which makes hitting a land mine in your ram chip much more likely.<br>
<br>On the other hand:<br><br>Since you are talking about "with" and "without" gcc support I am going to guess you are on Solaris which you probably should have mentioned before.<br>
it's possible that some of the more aggressive things activated by -hp is not possible on that platform. If so we either have to identify that and disable it or disable hp completely for Solaris.<br><br>Either way, gcc randomly crashing is never ok and is a symptom of a pretty serious issue.<br>
<br>Are you using 2 separate fresh checkouts for both suncc and gcc builds because it's not possible to switch the same source tree once it's already configured for one of them.<div><div></div><div><br>
<br><br><div class="gmail_quote">
On Tue, Sep 22, 2009 at 11:29 AM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Anthony,<br><br>it is not the machine ... and yep there was some memory related issue ... but this was caused by my module ....<br><br>So, to summarize.. i had two issues:<br><br><ol><li>FS crashing without any notice (at 5 CPS)</li>
<li>Unable to recompile FS with gdb support</li></ol><br><br>The first issue was actually related to "-hp" switch i was using in my startup
script. With it, FS was crashing without any notice (even on low traffic)
and regardless if i load my custom modules or not.<br>The second issue was related to many FS crashes having my module loaded... I found it later and fixed that.<br><br><br>So, after the machine cleanup I rebuild FS with gdb support without any issues. <br>
Of course i sow this log .. but i didn't realize for a while... and after that i was fighting with crashes caused by "-hp" ... also, it was quite late as well ended up at 3 AM :P<br><br><br><br>Anyhow, the poit is; FS works well with my custom module. It just finished 2 mil. calls (with media) at 100 CPS having ~1600 simultaneous calls... well, thats something :P.<br>
<font color="#888888">
<br><br><br>T.</font><div><div></div><div><br><br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 4:35 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
see this from your own log?<div><br><br>make[2]: Entering directory `/opt/freeswitch-trunk/libs/</div><div><div>pcre'<br>g++
-DHAVE_CONFIG_H -I. -O2 -MT pcrecpp_unittest.o -MD -MP -MF
.deps/pcrecpp_unittest.Tpo -c -o pcrecpp_unittest.o pcrecpp_unittest.cc<br>
g++: Internal error: Segmentation fault (program cc1plus)<br>Please submit a full bug report.<br>See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.<br>make[2]: *** [pcrecpp_unittest.o] Error 1<br>make[2]: Leaving directory `/opt/freeswitch-trunk/libs/pcre'<br>
make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/opt/freeswitch-trunk/libs/pcre'<br>make: *** [libs/pcre/<a href="http://libpcre.la/" target="_blank">libpcre.la</a>] Error 2<br><br><br></div>This is a FATAL error to have on your machine.<br>
It's failing during the build. This is your compiler crashing while trying to build the software.<br>This is very bad.<br>You most likely have a hardware failure and need to replace the machine or at the very least all of the memory chips.<br>
<br></div><div><div></div><div><br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 7:36 AM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi Brian, <br><br>well, there is no coredump at all... and when i start FS with gdb it doesn't crash :P<br>I need to do some more testing and will come back to you.<br><br>T.<br><br><div class="gmail_quote"><div><div>
</div><div>On Tue, Sep 22, 2009 at 1:22 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><div>This looks like gcc is segfaulting can you provide me a complete backtrace of the core file that dumps from FreeSWITCH? <div>
<br></div><div><a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs" target="_blank">http://wiki.freeswitch.org/wiki/Reporting_Bugs</a></div><div><br></div><div>It sounds like you might have bad ram or bad hardware... gcc crashing is usually a sign something is really wrong with your machine. </div>
<div><br></div><font color="#888888"><div>/b</div></font><div><div><br><div><div>On Sep 21, 2009, at 5:46 PM, Tihomir Culjaga wrote:</div><br><blockquote type="cite">but without luck...<br><br>ode1:/opt/freeswitch-trunk#<span> </span><br>
node1:/opt/freeswitch-trunk# sudo make<br>make[1]: Entering directory `/opt/freeswitch-trunk/libs/pcre'<br>make all-am<br>make[2]: Entering directory `/opt/freeswitch-trunk/libs/pcre'<br>g++ -DHAVE_CONFIG_H -I. -O2 -MT pcrecpp_unittest.o -MD -MP -MF .deps/pcrecpp_unittest.Tpo -c -o pcrecpp_unittest.o pcrecpp_unittest.cc<br>
g++: Internal error: Segmentation fault (program cc1plus)<br>Please submit a full bug report.<br>See <<a>file:///usr/share/doc/gcc-4.3/README.Bugs</a>> for instructions.<br>make[2]: *** [pcrecpp_unittest.o] Error 1<br>
make[2]: Leaving directory `/opt/freeswitch-trunk/libs/pcre'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/opt/freeswitch-trunk/libs/pcre'<br>make: *** [libs/pcre/<a href="http://libpcre.la/" target="_blank">libpcre.la</a>] Error 2<br>
node1:/opt/freeswitch-trunk#<span> </span><br>node1:/opt/freeswitch-trunk#<span> </span><br><br><br>Of course I'm using the latest trunk...<br><br>Can anyone help?</blockquote></div><br></div></div></div><br></div></div>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>