<?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: Core dump casting NULL to virtual base class in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627324#M722893</link>
    <description>Thanks, PHSS_25170 did solve&lt;BR /&gt;my problem. Due to priority&lt;BR /&gt;changes, I did not get a chance to&lt;BR /&gt;test it until now.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;Dave L.&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Jan 2002 00:07:40 GMT</pubDate>
    <dc:creator>David W Lauderback</dc:creator>
    <dc:date>2002-01-31T00:07:40Z</dc:date>
    <item>
      <title>Core dump casting NULL to virtual base class</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627322#M722891</link>
      <description>Bug(?) with "aCC: HP ANSI C++ B3910B A.03.30"&lt;BR /&gt;&lt;BR /&gt;Casting a null pointer to a virtual base class&lt;BR /&gt;appears to try to reference its virtual (function)&lt;BR /&gt;table and crash. This works on older versions of&lt;BR /&gt;the compiler and on other compilers (Sun's and MSVC).&lt;BR /&gt;&lt;BR /&gt;Casting of NULL pointers as a special case is&lt;BR /&gt;described in "The C++ Programming Language" by&lt;BR /&gt;Bjarne Stroustrup Section 15.4.1 (dynamic_cast).&lt;BR /&gt;&lt;BR /&gt;The following code compiles but (incorrectly)&lt;BR /&gt;core dumps. Is there a patch for this? I could&lt;BR /&gt;not find one.&lt;BR /&gt;&lt;BR /&gt;Dave Lauderback&lt;BR /&gt;davel@silvaco.com&lt;BR /&gt;&lt;BR /&gt;======= Dummy example code ==================&lt;BR /&gt;&lt;BR /&gt;class Item&lt;BR /&gt;{&lt;BR /&gt;  public:&lt;BR /&gt;    Item(){}&lt;BR /&gt;    virtual ~Item();&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Item::~Item()&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;class List : virtual public Item&lt;BR /&gt;{&lt;BR /&gt;public:&lt;BR /&gt;    List(){}&lt;BR /&gt;    virtual ~List(){}&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc , char* argv[])&lt;BR /&gt;{&lt;BR /&gt;  List* context = 0;&lt;BR /&gt;  Item* death   = context;&lt;BR /&gt;  return 0;  &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;======= end example ==========================&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2001 03:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627322#M722891</guid>
      <dc:creator>David W Lauderback</dc:creator>
      <dc:date>2001-12-07T03:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Core dump casting NULL to virtual base class</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627323#M722892</link>
      <description>Try patch PHSS_25170, which has the following defect fix:&lt;BR /&gt;&lt;BR /&gt;JAGad58885: Signal 11, derived to virtual base&lt;BR /&gt;            conversion not checked for NULL.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 07 Dec 2001 10:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627323#M722892</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-12-07T10:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Core dump casting NULL to virtual base class</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627324#M722893</link>
      <description>Thanks, PHSS_25170 did solve&lt;BR /&gt;my problem. Due to priority&lt;BR /&gt;changes, I did not get a chance to&lt;BR /&gt;test it until now.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;Dave L.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2002 00:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-casting-null-to-virtual-base-class/m-p/2627324#M722893</guid>
      <dc:creator>David W Lauderback</dc:creator>
      <dc:date>2002-01-31T00:07:40Z</dc:date>
    </item>
  </channel>
</rss>

