<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [OneAgent SDK] - Segmentation fault error on Ruby binding in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116726#M10841</link>
    <description>&lt;P&gt;I've checked everything, onesdk_string isn nil, memorypointer is set as well. I was replacing those 3 strings with something simple as well. Still there is kind of problem here related to segmentation fault. It's interesting thing. I was checking as well options to force encoding on ruby side but with no luck. &lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 14:19:44 GMT</pubDate>
    <dc:creator>skrystosik</dc:creator>
    <dc:date>2020-09-16T14:19:44Z</dc:date>
    <item>
      <title>[OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116721#M10836</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have client that has one of it's core applications made in Ruby on Rails. I'm working on agent that instruments this app automatically. On my local environment with versions of ruby 2.5.x and 2.6.x everything is working properly. Client has it's application in docker container with version of ruby 2.5.8. On application start agent is initilized, I see it in Dynatrace, but app is crashing because of segmentation fault on execution of method:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding/blob/ab122f15461808448c0a1603d7807ce7a534960d/oneagentsdk.rb#L174" target="_blank"&gt;https://github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding/blob/ab122f15461808448c0a1603d7807ce7a534960d/oneagentsdk.rb#L174&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was checking if the problem is correlated somehow to string content, but it's not. &lt;/P&gt;&lt;PRE&gt;stub_version: 1.5.1&lt;BR /&gt;initializing OneAgentSdk&lt;BR /&gt;&amp;gt; onesdk_initialize returned 0 --&amp;gt; ONESDK_SUCCESS&lt;BR /&gt;&amp;gt; onesdk_agent_get_current_state  = 0 (ONESDK_AGENT_STATE_ACTIVE)&lt;BR /&gt;&amp;gt; onesdk_agent_get_version_string = '1.197.133.20200723-114512'&lt;BR /&gt;[120] Puma starting in cluster mode...&lt;BR /&gt;[120] * Version 3.8.2 (ruby 2.5.8-p224), codename: Sassy Salamander&lt;BR /&gt;[120] * Min threads: 0, max threads: 16&lt;BR /&gt;[120] * Environment: production&lt;BR /&gt;[120] * Process workers: 4&lt;BR /&gt;[120] * Preloading application&lt;BR /&gt;[120] * Listening on tcp://0.0.0.0:9293&lt;BR /&gt;[120] Use Ctrl-C to stop&lt;BR /&gt;[120] - Worker 0 (pid: 238) booted, phase: 0&lt;BR /&gt;[120] - Worker 3 (pid: 250) booted, phase: 0&lt;BR /&gt;[120] - Worker 1 (pid: 242) booted, phase: 0&lt;BR /&gt;[120] - Worker 2 (pid: 244) booted, phase: 0&lt;BR /&gt;/app/lib/one-agent/oneagentsdk.rb:175: [BUG] Segmentation fault at 0x0000000000000000&lt;BR /&gt;ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux-gnu]&lt;/PRE&gt;&lt;P&gt;Does anyone have any idea what can be root cause of that? &lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:38:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116721#M10836</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-09-11T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116722#M10837</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/22953/view.html" nodeid="22953"&gt;@Armin Ruech&lt;/A&gt; might be able to shed some light on this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; however that the Ruby SDK Binding is merely &lt;STRONG&gt;not&lt;/STRONG&gt; an officially &lt;STRONG&gt;supported&lt;/STRONG&gt; OneAgent SDK&lt;/P&gt;&lt;P&gt;(see the disclaimer: &lt;A rel="noopener noreferrer" href="https://github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding" target="_blank"&gt;https://github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 05:30:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116722#M10837</guid>
      <dc:creator>wolfgangziegler</dc:creator>
      <dc:date>2020-09-14T05:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116723#M10838</link>
      <description>&lt;P&gt;I've seen this disclaimer and I'm ok with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I was curious if anyone have tried it before with such issues. &lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 09:14:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116723#M10838</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-09-14T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116724#M10839</link>
      <description>&lt;P&gt;Hi Sebastian!&lt;/P&gt;&lt;P&gt;From the output (segmentation fault at null pointer), it looks like a null pointer is passed to the native SDK function &lt;CODE&gt;onesdk_webapplicationinfo_create_p&lt;/CODE&gt; called in that line. This might result from &lt;CODE&gt;nil&lt;/CODE&gt; being returned in either &lt;CODE&gt;onesdk_asciistr&lt;/CODE&gt; (line 96) or &lt;CODE&gt;onesdk_utf8str&lt;/CODE&gt; (line 109) for one of the three strings passed as arguments. I could also imagine that &lt;CODE&gt;String#encode&lt;/CODE&gt; does not work as expected and instead of throwing returns &lt;CODE&gt;nil&lt;/CODE&gt;, which in turn causes &lt;CODE&gt;FFI::MemoryPointer.from_string&lt;/CODE&gt; in line 113 to return a null pointer that gets stored in the &lt;CODE&gt;onesdk_string&lt;/CODE&gt; object. Could it be that the string object's encoding is set incorrectly or that it contains invalid bytes? You might want to step through the code or add some extra debug output for each parameter and step to get some more information.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 16:08:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116724#M10839</guid>
      <dc:creator>armin_ruech</dc:creator>
      <dc:date>2020-09-15T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116725#M10840</link>
      <description>&lt;P&gt;I’ll check it. What I was checking so far was overwriting string that came from WebServer to those that are passed manually by me and effect was the same. I’ll try to check what exactly is passing to this method. Thx for tip.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 21:37:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116725#M10840</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-09-15T21:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116726#M10841</link>
      <description>&lt;P&gt;I've checked everything, onesdk_string isn nil, memorypointer is set as well. I was replacing those 3 strings with something simple as well. Still there is kind of problem here related to segmentation fault. It's interesting thing. I was checking as well options to force encoding on ruby side but with no luck. &lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:19:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116726#M10841</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-09-16T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116727#M10842</link>
      <description>&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;since there is apparently no simple solution to this issue, I'm afraid we can't help out here.&lt;BR /&gt;Unfortunately, troubleshooting or creating reproducer scenarios for unsupported technologies is out of our scope at the moment.&lt;/P&gt;&lt;P&gt;Of course, we will let you know in case a solution to this issue comes up.&lt;/P&gt;&lt;P&gt;- Wolfgang&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 14:39:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116727#M10842</guid>
      <dc:creator>wolfgangziegler</dc:creator>
      <dc:date>2020-09-16T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: [OneAgent SDK] - Segmentation fault error on Ruby binding</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116728#M10843</link>
      <description>&lt;P&gt;For all others that may have this issue. For this particular environment there is some kind of issue when we were using OneAgent SDK called via FFI. I wrote own native extension for ruby which is working fine. In such case I can use SDK methods directly from ruby without and 3rd party gem needed. In this case it is working fine. &lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:29:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OneAgent-SDK-Segmentation-fault-error-on-Ruby-binding/m-p/116728#M10843</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-10-05T08:29:52Z</dc:date>
    </item>
  </channel>
</rss>

