{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/5462","repository_url":"https://api.github.com/repos/PX4/Firmware","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/5462/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/5462/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/5462/events","html_url":"https://github.com/PX4/Firmware/issues/5462","id":175341734,"number":5462,"title":"Raspberry Pi uORB Segfault","user":{"login":"mayanez","id":1183729,"avatar_url":"https://avatars.githubusercontent.com/u/1183729?v=3","gravatar_id":"","url":"https://api.github.com/users/mayanez","html_url":"https://github.com/mayanez","followers_url":"https://api.github.com/users/mayanez/followers","following_url":"https://api.github.com/users/mayanez/following{/other_user}","gists_url":"https://api.github.com/users/mayanez/gists{/gist_id}","starred_url":"https://api.github.com/users/mayanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayanez/subscriptions","organizations_url":"https://api.github.com/users/mayanez/orgs","repos_url":"https://api.github.com/users/mayanez/repos","events_url":"https://api.github.com/users/mayanez/events{/privacy}","received_events_url":"https://api.github.com/users/mayanez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PX4/Firmware/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/PX4/Firmware/labels/raspberry_pi","name":"raspberry_pi","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-06T20:20:41Z","updated_at":"2016-10-14T02:00:05Z","closed_at":null,"body":"I'm seeing strange issues with the uORB templated interface on the Raspberry Pi. It is causing LPE to crash. I've tried debugging the issue but haven't been able to pinpoint the problem. Does anyone have any suggestions about what may be causing this?\r\n\r\nHere is the backtrace for the behavior I'm seeing:\r\n\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x764a1450 (LWP 2632)]\r\n__strchrnul (s=s@entry=0xba16c \"/%s/%s%d\", c_in=c_in@entry=37)\r\n    at strchrnul.c:39\r\n39      strchrnul.c: No such file or directory.\r\n(gdb) bt\r\n#0  __strchrnul (s=s@entry=0xba16c \"/%s/%s%d\", c_in=c_in@entry=37)\r\n    at strchrnul.c:39\r\n#1  0x76ce9cec in __find_specmb (format=0xba16c \"/%s/%s%d\")\r\n    at printf-parse.h:108\r\n#2  _IO_vfprintf_internal (s=s@entry=0x7649f4a0, \r\n    format=format@entry=0xba16c \"/%s/%s%d\", ap=ap@entry=...) at vfprintf.c:1315\r\n#3  0x76d1275c in _IO_vsnprintf (string=0x7649f5f8 \"\", maxlen=<optimized out>, \r\n    format=0xba16c \"/%s/%s%d\", format@entry=0x7649f77c \"\\230;\\v\", args=..., \r\n    args@entry=...) at vsnprintf.c:119\r\n#4  0x76cf3308 in __snprintf (s=<optimized out>, maxlen=<optimized out>, \r\n    format=0xba16c \"/%s/%s%d\") at snprintf.c:33\r\n#5  0x0005f2b0 in uORB::Utils::node_mkpath (\r\n    buf=buf@entry=0x7649f5f0 \"\\214\\017Jv\\244\\255\\r\", f=<optimized out>, \r\n    meta=meta@entry=0x14, instance=<optimized out>)\r\n    at ../src/modules/uORB/uORBUtils.cpp:56\r\n#6  0x0005f04c in uORB::DeviceMaster::ioctl (this=0xdad90, \r\n    filp=<optimized out>, cmd=<optimized out>, arg=1984558708)\r\n    at ../src/modules/uORB/uORBDevices_posix.cpp:716\r\n#7  0x0000fb4c in px4_ioctl (fd=42, cmd=2490368, arg=1984558708)\r\n    at ../src/drivers/device/vdev_posix.cpp:239\r\n#8  0x0005da3c in uORB::Manager::node_advertise (this=this@entry=0xdac10, \r\n    meta=meta@entry=0xd4bfc <__orb_optical_flow>, instance=instance@entry=0x0, \r\n    priority=priority@entry=0) at ../src/modules/uORB/uORBManager.cpp:329\r\n#9  0x0005db28 in uORB::Manager::node_open (this=0xdac10, \r\n    f=f@entry=uORB::PUBSUB, meta=0xd4bfc <__orb_optical_flow>, \r\n    data=data@entry=0x0, advertiser=advertiser@entry=false, \r\n    instance=instance@entry=0x0, priority=priority@entry=75)\r\n    at ../src/modules/uORB/uORBManager.cpp:399\r\n#10 0x0005dcdc in uORB::Manager::orb_subscribe (this=<optimized out>, \r\n    meta=<optimized out>) at ../src/modules/uORB/uORBManager.cpp:232\r\n#11 0x0005d1c4 in uORB::SubscriptionBase::SubscriptionBase (\r\n    this=this@entry=0x7649f868, meta=<optimized out>, interval=10, \r\n    instance=<optimized out>) at ../src/modules/uORB/Subscription.cpp:85\r\n#12 0x0005d21c in uORB::SubscriptionNode::SubscriptionNode (\r\n    this=this@entry=0x7649f868, meta=<optimized out>, \r\n    interval=<optimized out>, instance=<optimized out>, list=0x7649f77c, \r\n    list@entry=0x7649f768) at ../src/modules/uORB/Subscription.hpp:140\r\n#13 0x0005d5b0 in uORB::Subscription<optical_flow_s>::Subscription (\r\n    this=0x7649f868, meta=<optimized out>, interval=<optimized out>, \r\n    instance=<optimized out>, list=0x7649f77c)\r\n    at ../src/modules/uORB/Subscription.cpp:127\r\n#14 0x0002a374 in BlockLocalPositionEstimator::BlockLocalPositionEstimator (\r\n    this=0x7649f768)\r\n    at ../src/modules/local_position_estimator/BlockLocalPositionEstimator.cpp:180\r\n#15 0x00028518 in local_position_estimator_thread_main (argc=<optimized out>, \r\n    argv=<optimized out>)\r\n    at ../src/modules/local_position_estimator/local_position_estimator_main.cpp:155\r\n#16 0x000a54e0 in entry_adapter (ptr=0xdd8a8)\r\n    at ../src/platforms/posix/px4_layer/px4_posix_tasks.cpp:108\r\n#17 0x76f8ce90 in start_thread (arg=0x764a1450) at pthread_create.c:311\r\n#18 0x76d7b698 in ?? ()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/PX4/Firmware/issues/comments/253690641","html_url":"https://github.com/PX4/Firmware/issues/5462#issuecomment-253690641","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/5462","id":253690641,"user":{"login":"mayanez","id":1183729,"avatar_url":"https://avatars.githubusercontent.com/u/1183729?v=3","gravatar_id":"","url":"https://api.github.com/users/mayanez","html_url":"https://github.com/mayanez","followers_url":"https://api.github.com/users/mayanez/followers","following_url":"https://api.github.com/users/mayanez/following{/other_user}","gists_url":"https://api.github.com/users/mayanez/gists{/gist_id}","starred_url":"https://api.github.com/users/mayanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayanez/subscriptions","organizations_url":"https://api.github.com/users/mayanez/orgs","repos_url":"https://api.github.com/users/mayanez/repos","events_url":"https://api.github.com/users/mayanez/events{/privacy}","received_events_url":"https://api.github.com/users/mayanez/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T02:00:05Z","updated_at":"2016-10-14T02:00:05Z","body":"Sorry for the late reply. If I'm not mistaken this has been resolved after Lorenz pushed a more generic fix."}}
{"actor":{"display_login":"mayanez"}}