# Sample segfault on Ubuntu 15.10

**URL:** <https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79>\
**Category:** Uncategorized\
**Created:** [June 13, 2016, 9:04pm UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79 "2016-06-13T21:04:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![konneker](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@konneker](https://discourse.libcinder.org/u/konneker)\
**Post date:** [June 13, 2016, 9:04pm UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/1 "2016-06-13T21:04:24Z")

</div>

Hello All,

I’ve built and used cinder a bit on a VM a few months ago, but upon installing it on a real ubuntu machine, I’m having some issues. All of the samples immediately segfault. Here is a stack trace from gdb for BasicApp:

```
#0 0x00000000009a199e in boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*) ()
#1 0x0000000000686be9 in boost::filesystem::exists (p=...) at /home/konneker/code/libcinder/include/boost/filesystem/operations.hpp:404
#2 0x000000000068654b in cinder::app::Platform::findAndAddDefaultAssetPath (this=0xd769a0) at /home/konneker/code/libcinder/src/cinder/app/Platform.cpp:149
#3 0x0000000000685fb5 in cinder::app::Platform::initAssetDirectories (this=0xd769a0) at /home/konneker/code/libcinder/src/cinder/app/Platform.cpp:98
#4 0x0000000000685f15 in cinder::app::Platform::initialize (this=0xd769a0) at /home/konneker/code/libcinder/src/cinder/app/Platform.cpp:84
#5 0x0000000000685eca in cinder::app::Platform::get () at /home/konneker/code/libcinder/src/cinder/app/Platform.cpp:67
#6 0x0000000000677cc9 in cinder::app::AppBase::prepareLaunch () at /home/konneker/code/libcinder/src/cinder/app/AppBase.cpp:172
#7 0x0000000000674083 in cinder::app::AppLinux::main<BasicApp>(std::shared_ptr<cinder::app::Renderer> const&, char const*, int, char* const*, std::function<void (cinder::app::AppBase::Settings*)> const&) (defaultRenderer=warning: RTTI symbol not found for class 'std::_Sp_counted_ptr<cinder::app::RendererGl*, (__gnu_cxx::_Lock_policy)2>'
warning: RTTI symbol not found for class 'std::_Sp_counted_ptr<cinder::app::RendererGl*, (__gnu_cxx::_Lock_policy)2>'
std::shared_ptr (count 1, weak 0) 0xd76910, title=0x9a66d4 "BasicApp", argc=1, argv=0x7fffffffddf8, settingsFn=...)
    at /home/konneker/code/libcinder/include/cinder/app/linux/AppLinux.h:73
#8 0x00000000006739f1 in main (argc=1, argv=0x7fffffffddf8) at /home/konneker/code/libcinder/samples/BasicApp/src/BasicApp.cpp:84

```

Is there anything obvious here to people that know what they’re doing (i.e. not me) ?

---

<div class="post-metadata">

**Author:** ![rich.e](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/rich.e/32/1025_2.png) [@rich.e](https://discourse.libcinder.org/u/rich.e)\
**Post date:** [June 14, 2016, 2:30am UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/2 "2016-06-14T02:30:45Z")

</div>

That’s an odd message about ‘RTTI symbol not found’ (at least I’ve never seen it). Are you building from a fresh clone?

---

<div class="post-metadata">

**Author:** ![petros](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/petros/32/26_2.png) [@petros](https://discourse.libcinder.org/u/petros)\
**Post date:** [June 14, 2016, 6:52am UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/3 "2016-06-14T06:52:56Z")

</div>

The RTTI warning comes from gdb and I think it can be ignored – Are you using the current android\_linux branch from the github repo?

---

<div class="post-metadata">

**Author:** ![konneker](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@konneker](https://discourse.libcinder.org/u/konneker)\
**Post date:** [June 14, 2016, 7:30pm UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/4 "2016-06-14T19:30:03Z")

</div>

Yes, I just compiled from github on a fresh clone of the andoid\_linux branch.

---

<div class="post-metadata">

**Author:** ![rich.e](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/rich.e/32/1025_2.png) [@rich.e](https://discourse.libcinder.org/u/rich.e)\
**Post date:** [June 16, 2016, 12:10am UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/5 "2016-06-16T00:10:06Z")

</div>

I’m not sure yet what you’re doing differently as to others here (like myself, as those samples work fine on ubuntu), but the end of that stacktrace looks like an exception might be getting thrown from `boost::filesystem::exists()`? If so, can you break on the exception to get more information, or if not you can step through `ci::app::Platform::findAndAddDefaultAssetPath()` to see why it is failing. This information would be very valuable.

For debugging, I use CLion (you currently need to be on the cmake branch), although you could also use gdb from the command line.

---

<div class="post-metadata">

**Author:** ![sansumbrella](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/sansumbrella/32/30_2.png) [@sansumbrella](https://discourse.libcinder.org/u/sansumbrella)\
**Post date:** [June 28, 2016, 6:01pm UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/6 "2016-06-28T18:01:40Z")

</div>

Good spotting on the asset directory search. Since empty directories are ignored by git, I’ve had some confusion with work projects when Cinder fails to find the default asset directory after a clone to a new machine.

---

<div class="post-metadata">

**Author:** ![dankegel](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@dankegel](https://discourse.libcinder.org/u/dankegel)\
**Post date:** [August 9, 2016, 4:51am UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/7 "2016-08-09T04:51:53Z")

</div>

You may need to use system boost; I did.  
See [Cinder on Linux - the newb frontier... ( moved from old forum )](http://discourse.libcinder.org/t/cinder-on-linux-the-newb-frontier-moved-from-old-forum/207)

---

<div class="post-metadata">

**Author:** ![dankegel](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@dankegel](https://discourse.libcinder.org/u/dankegel)\
**Post date:** [August 13, 2016, 4:00am UTC](https://discourse.libcinder.org/t/sample-segfault-on-ubuntu-15-10/79/8 "2016-08-13T04:00:20Z")

</div>

I take that back. Now it feels like the problem was having git submodules out of sync.  
I seem to have better luck now that I remember to do “git submodule update” after  
"git checkout android\_linux".
