https://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912012-11-23T17:55:40ZLTTng bugs repositoryLTTng-tools - Bug #404: Enabling event without filter fails with error: Not enough memory for filter bytecodehttps://bugs.lttng.org/issues/404?journal_id=9202012-11-23T17:55:40ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>File</strong> <a href="/attachments/97">.swp</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/97/.swp">.swp</a> added</li></ul><p>Can you try the following patch ?</p> LTTng-tools - Bug #404: Enabling event without filter fails with error: Not enough memory for filter bytecodehttps://bugs.lttng.org/issues/404?journal_id=9212012-11-23T20:03:32ZJesus Garciajesus.garcia@ericsson.com
<ul></ul><p>Hi Mathieu,</p>
<p>I tried the patch, but it doesn't fix the issue. I'm getting the same error. Are you checking for empty string on the filter?</p>
<p>Regards,<br />Jesus</p> LTTng-tools - Bug #404: Enabling event without filter fails with error: Not enough memory for filter bytecodehttps://bugs.lttng.org/issues/404?journal_id=9222012-11-23T20:29:50ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>File</strong> <a href="/attachments/98">fix-lttng-tools-empty-filter.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/98/fix-lttng-tools-empty-filter.patch">fix-lttng-tools-empty-filter.patch</a> added</li></ul><p>Please try the attached patch, but make sure you follow the API as this patch documents it. A NULL filter string will fall-back to enabling an event without filter attached. However, an empty string is considered as an invalid filter.</p>
<p>Thanks,</p>
<p>Mathieu</p> LTTng-tools - Bug #404: Enabling event without filter fails with error: Not enough memory for filter bytecodehttps://bugs.lttng.org/issues/404?journal_id=9252012-11-26T21:05:59ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Clarify empty string/NULL filter errors Fixes #404 Reported-by: Jesus Garcia <jesus.garcia@eric..." href="https://bugs.lttng.org/projects/lttng-tools/repository/lttng-tools/revisions/52df24019c3998b87870fb8371fa20fb33449a0d">52df24019c3998b87870fb8371fa20fb33449a0d</a>.</p>