
{"id":10006,"date":"2022-06-21T09:10:38","date_gmt":"2022-06-21T09:10:38","guid":{"rendered":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/documentation\/rdk_video_documentation\/components\/open-sourced_components\/breakpad_wrapper\/"},"modified":"2025-03-25T05:18:35","modified_gmt":"2025-03-25T05:18:35","slug":"breakpad_wrapper","status":"publish","type":"page","link":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/","title":{"rendered":"Breakpad Wrapper"},"content":{"rendered":"<p><br \/>\n <\/p>\n<p>Breakpad consists of a library and tool suite &ndash;<\/p>\n<p>Library is linked with the&nbsp; application to record crashes in&nbsp;compact &#8220;minidump&#8221; file<\/p>\n<ul>\n<li><strong>libbreakpad_client.a<\/strong> (<em>breakpad<\/em><em> client: <\/em>that writes minidump)<\/li>\n<\/ul>\n<p>Tools are used in the server (or in a system where debugging is&nbsp;&nbsp; performed) to produce C and C++ stack traces.<\/p>\n<ul>\n<li><strong>dump_syms<\/strong> (<em>symbol dumper: <\/em>to extract the debug symbols for a given library\/binary)<\/li>\n<\/ul>\n<ul>\n<li><strong>minidump_stackwalk<\/strong> (<em>minidump<\/em><em> processor<\/em>: uses the minidump and the symbols created by dump_syms to produce stack trace)<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Breakpad C Wrapper<\/h2>\n\n\n<p>Breakpad wrapper acts as a&nbsp;<span>wrapper to integrate Google Breakpad with RDK components.<\/span><\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/16\/2023\/09\/breakpad.drawio.png\"><\/p>\n<p>Purpose of this component is to avoid static linking of the library&nbsp;(libbreakpad_client.a)&nbsp;across different modules. Includes the static library (<em>libbreakpad_client.a<\/em>) so that we can use dynamic library (<em>libbreakpadwrapper.so<\/em>) along with the native code <a href=\"https:\/\/code.rdkcentral.com\/r\/rdk\/components\/generic\/breakpad_wrapper\" class=\"external-link\" rel=\"nofollow\">https:\/\/code.rdkcentral.com\/r\/rdk\/components\/generic\/breakpad_wrapper<\/a>.<\/p>\n<p>Breakpad exception handler writes minidump to disk at exception time.<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">void breakpad_ExceptionHandler()\n\n{\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(\"tttt ********ENTER breakpad_ExceptionHandler****************** n\");\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static google_breakpad::ExceptionHandler* excHandler = NULL;\n\n&nbsp; &nbsp; &nbsp; &nbsp;excHandler = new&nbsp;&nbsp;&nbsp; google_breakpad::ExceptionHandler(google_breakpad::MinidumpDescriptor(\"\/opt\/minidumps\"), NULL, breakpadDumpCallback, NULL, true, -1);\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(\"tttt ******** breakpad_ExceptionHandler EXIT****************** n\");\n\n}<\/pre>\n<\/div>\n<\/div>\n<p>Breakpad-wrapper component compiles to create <em>libbreakpadwrapper.so <\/em>which needs to be linked with the RDK component for Breakpad integration.<\/p>\n<p>See the page&nbsp;<a href=\"https:\/\/developer.rdkcentral.com\/support\/support\/articles\/rdk-v_debugging_and_logging\/integrating_breakpad_to_rdk-v_component\/\" rel=\"nofollow\">Integrating Breakpad to RDK-V Component<\/a>&nbsp;to know about its usage<\/p>\n<p><\/p>\n<div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\">\n<p class=\"title\">Useful Tip:<\/p>\n<p><span class=\"aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon\"> <\/span><\/p>\n<div class=\"confluence-information-macro-body\">\n<p><span>Breakpad wrapper now supports writing minidump content to a specific <\/span><span>file descriptor provided by an environment variable named <strong>BREAKPAD_FD<\/strong><\/span><\/p>\n<\/div>\n<\/div>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Breakpad consists of a library and tool suite &ndash; Library is linked with the&nbsp; application [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"parent":9844,"menu_order":28,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-10006","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Breakpad Wrapper - RDK Documentation Portal | Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Breakpad Wrapper - RDK Documentation Portal | Documentation\" \/>\n<meta property=\"og:description\" content=\"Breakpad consists of a library and tool suite &ndash; Library is linked with the&nbsp; application [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/\" \/>\n<meta property=\"og:site_name\" content=\"RDK Documentation Portal | Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-25T05:18:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/\",\"name\":\"Breakpad Wrapper - RDK Documentation Portal | Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\"},\"datePublished\":\"2022-06-21T09:10:38+00:00\",\"dateModified\":\"2025-03-25T05:18:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"RDK Video\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Components\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Breakpad Wrapper\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/\",\"name\":\"RDK Documentation Portal | Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Breakpad Wrapper - RDK Documentation Portal | Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/","og_locale":"en_US","og_type":"article","og_title":"Breakpad Wrapper - RDK Documentation Portal | Documentation","og_description":"Breakpad consists of a library and tool suite &ndash; Library is linked with the&nbsp; application [&hellip;]","og_url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/","og_site_name":"RDK Documentation Portal | Documentation","article_modified_time":"2025-03-25T05:18:35+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/","url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/","name":"Breakpad Wrapper - RDK Documentation Portal | Documentation","isPartOf":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website"},"datePublished":"2022-06-21T09:10:38+00:00","dateModified":"2025-03-25T05:18:35+00:00","breadcrumb":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/breakpad_wrapper\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":3,"name":"RDK Video","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/"},{"@type":"ListItem","position":4,"name":"Components","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/components\/"},{"@type":"ListItem","position":5,"name":"Breakpad Wrapper"}]},{"@type":"WebSite","@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website","url":"https:\/\/developer.rdkcentral.com\/documentation\/","name":"RDK Documentation Portal | Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/comments?post=10006"}],"version-history":[{"count":3,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10006\/revisions"}],"predecessor-version":[{"id":11692,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10006\/revisions\/11692"}],"up":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/9844"}],"wp:attachment":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/media?parent=10006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}