# Fixed : Local & Cloud (both): Segmentation Fault in libnice (used by erizoAgent) ... Happens only when we configure turn-server configuration

**URL:** <https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467>\
**Category:** Support\
**Created:** [April 17, 2017, 1:34pm UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467 "2017-04-17T13:34:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HemanthAnakapalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/hemanthanakapalle/32/144_2.png) [@HemanthAnakapalle](https://discourse.lynckia.com/u/HemanthAnakapalle)\
**Post date:** [April 17, 2017, 1:34pm UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467/1 "2017-04-17T13:34:30Z")

</div>

Hi,

I am facing below issue on cloud.

# Logs from syslog

**kernel: [3997.422832] node[11141]: segfault at 4 ip 00007fd655aeb9d0 sp 00007fd631fd7d58 error 4 in libnice.so.10.4.1[7fd655ae3000+3b000]**

# Logs from Licode

[erizo-9795a75b-5f39-bae4-e124-8336de9811fd] 2017-04-17 13:19:55.049 - INFO: ErizoJS - message: Started, erizoId: 9795a75b-5f39-bae4-e124-8336de9811fd  
2017-04-17 13:19:55.086 - INFO: ErizoAgent - message: closed, erizoId: 80dd94c5-df10-5768-91d4-3633750dfd76  
**2017-04-17 13:20:14.613 - ERROR: RoomController - message: ErizoJS timed out will be removed, erizoId: 80dd94c5-df10-5768-91d4-3633750dfd76, publishersAffected: 1**  
2017-04-17 13:20:14.613 - WARN: ErizoController - message: Triggering removal of stream because of ErizoJS timeout, streamId: 359006540756075400  
2017-04-17 13:20:14.614 - INFO: EcCloudHandler - message: deleting erizoJS, erizoId: 80dd94c5-df10-5768-91d4-3633750dfd76  
2017-04-17 13:20:14.649 - INFO: RoomController - message: removePublisher, publisherId: 359006540756075400, erizoId: ErizoJS\_80dd94c5-df10-5768-91d4-3633750dfd76  
2017-04-17 13:20:14.649 - WARN: RoomController - message: removePublisher was already removed, publisherId: 359006540756075400, erizoId: ErizoJS\_80dd94c5-df10-5768-91d4-3633750dfd76  
2017-04-17 13:20:14.660 - INFO: ErizoController - message: Socket disconnect, clientId: ZL75vs9S522Efg4VAAAA  
2017-04-17 13:20:14.660 - INFO: RoomController - message: removeSubscriptions, clientId: ZL75vs9S522Efg4VAAAA  
2017-04-17 13:20:19.716 - INFO: TokensResource - message: createToken success, roomId: 58f4c0f961c5093995387f7f, serviceId: 58ef284043bbbdfc3c7c345d  
2017-04-17 13:20:19.807 - INFO: ErizoController - message: erizoClient connected, clientId: GHBSF\_4cvkkB07RlAAAB  
2017-04-17 13:20:19.920 - INFO: ErizoController - message: addPublisher requested, streamId: 116965940604645260, clientId: GHBSF\_4cvkkB07RlAAAB, state: erizo, data: true, audio: true, video: false, minVideoBW: 0, attributes: [Object], name: audio-1, type: public

Any Idea guys?

Thanks,  
Hemanth

---

<div class="post-metadata">

**Author:** ![HemanthAnakapalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/hemanthanakapalle/32/144_2.png) [@HemanthAnakapalle](https://discourse.lynckia.com/u/HemanthAnakapalle)\
**Post date:** [April 18, 2017, 10:10am UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467/2 "2017-04-18T10:10:00Z")

</div>

No one is facing this issue on Ubuntu 14.0.4 with turn-server configuration ?

---

<div class="post-metadata">

**Author:** ![HemanthAnakapalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/hemanthanakapalle/32/144_2.png) [@HemanthAnakapalle](https://discourse.lynckia.com/u/HemanthAnakapalle)\
**Post date:** [April 20, 2017, 4:33am UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467/3 "2017-04-20T04:33:18Z")

</div>

Issue is fixed with yesterday’s code update.

**Please find the working hash code details:**  
commit 0a0ebb1fbf2441427a7aea5fce5a29452f14eff0  
Date: Wed Apr 19 11:28:22 2017 +0200

We need to ensure that master branch always works.  
And thanks for the fix guys.

Thanks,  
Hemanth

---

<div class="post-metadata">

**Author:** ![Francesco\_Durighetto](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Francesco\_Durighetto](https://discourse.lynckia.com/u/Francesco_Durighetto)\
**Post date:** [April 20, 2017, 8:27am UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467/4 "2017-04-20T08:27:59Z")

</div>

just to be sure:  
before build the project you have to:  
kill al node process (killall node)  
since libnice was reverted to a previous version you have to:  
cd build/libdeps  
rm -R ./libnice\*  
cd /licode/scripts  
./installUbuntuDeps.sh  
./installErizo.sh  
./initLicode.sh  
./initBasicExample

in this way you have everything rebuilt and ready to test

---

<div class="post-metadata">

**Author:** ![HemanthAnakapalle](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/hemanthanakapalle/32/144_2.png) [@HemanthAnakapalle](https://discourse.lynckia.com/u/HemanthAnakapalle)\
**Post date:** [April 20, 2017, 8:39am UTC](https://discourse.lynckia.com/t/fixed-local-cloud-both-segmentation-fault-in-libnice-used-by-erizoagent-happens-only-when-we-configure-turn-server-configuration/467/5 "2017-04-20T08:39:21Z")

</div>

Thanks for the information.
