<?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: Unexpected core by signal 11 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782349#M93885</link>
    <description>My application is very big.&lt;BR /&gt;Core file size is above 100Mb&lt;BR /&gt;Application has many modules and libraries, and has a connection with delivery system.&lt;BR /&gt;I can't do access for you to our test server.&lt;BR /&gt;What kind of information do you need?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 18 May 2006 02:42:34 GMT</pubDate>
    <dc:creator>Alex Pronichev</dc:creator>
    <dc:date>2006-05-18T02:42:34Z</dc:date>
    <item>
      <title>Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782328#M93864</link>
      <description>Hello!&lt;BR /&gt;There is a call stack from core file&lt;BR /&gt;#0  0x800003ff7fda5b98 in real_malloc+0xae8 () from /lib/pa20_64/libc.2&lt;BR /&gt;#1  0x800003ff7fda2a70 in _malloc+0x658 () from /lib/pa20_64/libc.2&lt;BR /&gt;#2  0x800003ff7fda8ddc in malloc+0x1c4 () from /lib/pa20_64/libc.2&lt;BR /&gt;#3  0x800003ff7fdb8d64 in strdup+0x2c () from /lib/pa20_64/libc.2&lt;BR /&gt;#4  0x800003ff7e7ebcc8 in DataElement::DataElement (this=0x80000001008a57f8, node=0x8000000100547c00) at data_element.cpp:161&lt;BR /&gt;#5  0x800003ff7e7eccbc in CurrencyDataElement::CurrencyDataElement (this=0x80000001008a57f8, node=0x8000000100547c00) at data_element.cpp:248&lt;BR /&gt;...and so on to main()&lt;BR /&gt;&lt;BR /&gt;in step 4 we have&lt;BR /&gt;#4  0x800003ff7e7ebcc8 in DataElement::DataElement (this=0x80000001008a57f8, node=0x8000000100547c00) at data_element.cpp:161&lt;BR /&gt;161                 CalcProc = strdup( calc_proc );&lt;BR /&gt;&lt;BR /&gt;initially CalcProc was initialized by NULL&lt;BR /&gt;&lt;BR /&gt;p calc_proc&lt;BR /&gt;$1 = 0x800000010087f6e8 "res = @page_931000100000.s_931.00.009 + @page.s_931.00.021 + @page.s_931.00.022 + @page.s_931.00.023 + @page.s_931.00.024 + @page.s_931.00.025 - @page_931000100000.s_931.00.001;"&lt;BR /&gt;&lt;BR /&gt;what is wrong? &lt;BR /&gt;what I do wrong?&lt;BR /&gt;&lt;BR /&gt;The process is ended sometimes by core dump.&lt;BR /&gt;&lt;BR /&gt;OS: HPUX 11.23 PA-RISC</description>
      <pubDate>Thu, 04 May 2006 02:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782328#M93864</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-04T02:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782329#M93865</link>
      <description>What does "file core" say?</description>
      <pubDate>Thu, 04 May 2006 02:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782329#M93865</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-04T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782330#M93866</link>
      <description>Alex,&lt;BR /&gt;as strdup executes a malloc, are you having a memory problem?&lt;BR /&gt;what are the definitions for calc_proc and CalcProc ?&lt;BR /&gt;&lt;BR /&gt;Try and print out calc_proc and check the length of the calc_proc string.&lt;BR /&gt;&lt;BR /&gt;char *strdup(const char *s);</description>
      <pubDate>Thu, 04 May 2006 02:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782330#M93866</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-05-04T02:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782331#M93867</link>
      <description>Core file say:&lt;BR /&gt;Core was generated by `binserver'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;#0  0xc00000001099db98 in real_malloc+0xae8 () from /lib/pa20_64/libc.2&lt;BR /&gt;(gdb) ba&lt;BR /&gt;#0  0xc00000001099db98 in real_malloc+0xae8 () from /lib/pa20_64/libc.2&lt;BR /&gt;#1  0xc00000001099aa70 in _malloc+0x658 () from /lib/pa20_64/libc.2&lt;BR /&gt;#2  0xc0000000109a0ddc in malloc+0x1c4 () from /lib/pa20_64/libc.2&lt;BR /&gt;#3  0xc0000000109b0d64 in strdup+0x2c () from /lib/pa20_64/libc.2&lt;BR /&gt;#4  0xc000000011dafcc8 in DataElement::DataElement (this=0x800000010057ea00, node=0x80000001004a4ee8) at data_element.cpp:161&lt;BR /&gt;#5  0xc000000011db0cbc in CurrencyDataElement::CurrencyDataElement (this=0x800000010057ea00, node=0x80000001004a4ee8) at data_element.cpp:248&lt;BR /&gt;#6  0xc000000011dabee0 in CreateDataElement&lt;CURRENCYDATAELEMENT&gt; (node=0x80000001004a4ee8, ElementCache=0x8000000100680748) at const.cpp:21&lt;BR /&gt;#7  0xc000000011daaa4c in CurrencyElement::CurrencyElement (this=0x80000001006356c0, node=0x80000001004a4ee8, fCont=0x800000010007f970, fRow=0x0, &lt;BR /&gt;    ElementCache=0x8000000100680748) at const.cpp:353&lt;BR /&gt;and so on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the definition of CalcProc and calc_proc is&lt;BR /&gt;const char* CheckProc;&lt;BR /&gt;const char* calc_proc&lt;BR /&gt;&lt;BR /&gt;the value of calc_proc when program crash&lt;BR /&gt;"res = @page_931000100000.s_931.00.009 + @page.s_931.00.021 + @page.s_931.00.022 + @page.s_931.00.023 + @page.s_931.00.024 + @page.s_931.00.025 - @page_931000100000.s_931.00.001;"&lt;BR /&gt;&lt;BR /&gt;Yes. The program crash sometimes, 1 of 250-280 times.&lt;/CURRENCYDATAELEMENT&gt;</description>
      <pubDate>Thu, 04 May 2006 05:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782331#M93867</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-04T05:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782332#M93868</link>
      <description>Before doing strdup I'm checking the value of calc_proc that is not empty with next case:&lt;BR /&gt;&lt;BR /&gt;if( calc_proc != NULL &amp;amp;&amp;amp; calc_proc[0] != '\0' ) {&lt;BR /&gt;   CalcProc = strdup( calc_proc );&lt;BR /&gt;}</description>
      <pubDate>Thu, 04 May 2006 05:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782332#M93868</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-04T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782333#M93869</link>
      <description>Alex,&lt;BR /&gt;assuming the reply with the definitions included a typing mistake:&lt;BR /&gt;CheckProc instead of CalcProc&lt;BR /&gt;&lt;BR /&gt;I still think you are hitting a memory allocation problem. According to the spec, if the malloc fails, the return value is set to NULL and errno set to ENOMEM, which indicates not enough memory. In that case free() up any unneeded memory.</description>
      <pubDate>Thu, 04 May 2006 06:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782333#M93869</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-05-04T06:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782334#M93870</link>
      <description>You right I take mistype when show definition&lt;BR /&gt;const char* CalcProc;&lt;BR /&gt;&lt;BR /&gt;Another words what can I do?&lt;BR /&gt;&lt;BR /&gt;I need remove direct call of strdup and use malloc directly test return value for null and then memcpy to catch memory allocation problem? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 06:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782334#M93870</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-04T06:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782335#M93871</link>
      <description>Alex,&lt;BR /&gt;replace your strdup call with:&lt;BR /&gt;&lt;BR /&gt;  char *s;&lt;BR /&gt;  char *d;&lt;BR /&gt;  &lt;BR /&gt;  if ((d = malloc (strlen (s) + 1)) == NULL)&lt;BR /&gt;  printf("Error in malloc\n");&lt;BR /&gt;&lt;BR /&gt;  memcpy (d, s, strlen (s) + 1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 06:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782335#M93871</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-05-04T06:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782336#M93872</link>
      <description>Here another core with same symptoms:&lt;BR /&gt;Core was generated by `binserver'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;#0  0xc00000001099db98 in real_malloc+0xae8 () from /lib/pa20_64/libc.2&lt;BR /&gt;(gdb) ba&lt;BR /&gt;#0  0xc00000001099db98 in real_malloc+0xae8 () from /lib/pa20_64/libc.2&lt;BR /&gt;#1  0xc00000001099aa70 in _malloc+0x658 () from /lib/pa20_64/libc.2&lt;BR /&gt;#2  0xc0000000109a0ddc in malloc+0x1c4 () from /lib/pa20_64/libc.2&lt;BR /&gt;#3  0xc000000010aeb7ec in operator new+0x4c () from /lib/pa20_64/libCsup.2&lt;BR /&gt;#4  0x4000000000025698 in std::allocator&lt;CHAR&gt;::allocate+0x38 ()&lt;BR /&gt;#5  0x4000000000024ccc in std::basic_string&lt;CHAR&gt;,std::allocator&lt;CHAR&gt;&amp;gt;::_C_getRep+0x594 ()&lt;BR /&gt;#6  0x4000000000024498 in std::basic_string&lt;CHAR&gt;,std::allocator&lt;CHAR&gt;&amp;gt;::replace+0x788 ()&lt;BR /&gt;#7  0xc000000011330b58 in std::basic_string&lt;CHAR&gt;,std::allocator&lt;CHAR&gt;&amp;gt;::operator+= (this=0x800003ff7fff30b0, &lt;BR /&gt;    __s=0xc000000011d26499 "\"") at /opt/aCC/include_std/string:448&lt;BR /&gt;#8  0xc000000011de5758 in SaveXMLVisitor::visit_Document (this=0x800000010051b000, document=@0x800000010000a978) at savexml.cpp:122&lt;BR /&gt;#9  0xc000000011db9270 in Document_Impl::Accept (this=0x800000010000a978, p_visitor=@0x800000010051b000) at document.cpp:177&lt;BR /&gt;and so on...&lt;BR /&gt;&lt;BR /&gt;(gdb) up 7&lt;BR /&gt;#7  0xc000000011330b58 in std::basic_string&lt;CHAR&gt;,std::allocator&lt;CHAR&gt;&amp;gt;::operator+= (this=0x800003ff7fff30b0, &lt;BR /&gt;    __s=0xc000000011d26499 "\"") at /opt/aCC/include_std/string:448&lt;BR /&gt;&lt;BR /&gt;(gdb) p *this  &lt;BR /&gt;$3 = {&lt;CLASS allocator=""&gt;&amp;gt; = {&lt;NO data="https://community.hpe.com/" fields=""&gt;}, static npos = 18446744073709551615, static __nullref = {__ref_hdr_ = {&lt;BR /&gt;      __mutex_ = {&lt;STRUCT __rw_mutex_base=""&gt; = {_C_mutex = {pmutex = 0x800003ff7fbcff00}}, &lt;NO data="https://community.hpe.com/" fields=""&gt;}, __refs_ = 1, __capacity_ = 0, &lt;BR /&gt;      __nchars_ = 0}, __eos_char_ = 0 '\000'}, _C_data = 0x8000000100a80a60 " datageneration=\""}&lt;BR /&gt;&lt;BR /&gt;(gdb) p __s&lt;BR /&gt;$4 = 0xc000000011d26499 "\""&lt;BR /&gt;&lt;BR /&gt;there is concatenation of two strings via += operator&lt;BR /&gt;&lt;BR /&gt;string s1 =" datageneration=\"";&lt;BR /&gt;string s2 ="\"";&lt;BR /&gt;s1 += s2 core dump :(&lt;BR /&gt;&lt;BR /&gt;Anybody have some troubles?&lt;/NO&gt;&lt;/STRUCT&gt;&lt;/NO&gt;&lt;/CLASS&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;</description>
      <pubDate>Thu, 04 May 2006 07:07:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782336#M93872</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-04T07:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782337#M93873</link>
      <description>SIGSEGV in standard library memory allocation is almost always a sign of trashing your heap.&lt;BR /&gt;&lt;BR /&gt;That's usually caused by stale pointer dereference (causing you to write garbage to memory that is supposed to be free on the heap, trashing the metadata used to manage the heap inside the library) or [and this is my bet] buffer overrun. Heap management is usually done by placing metadata before or after the object returned by malloc -- and overruns corrupt the metadata for the next/previous object... causing the library as it attempts to walk the pointers in the metadata (or whatever it is doing) to dereference a bad address.... hence, SIGSEGV.&lt;BR /&gt;&lt;BR /&gt;Check your pointer usage.</description>
      <pubDate>Thu, 04 May 2006 09:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782337#M93873</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2006-05-04T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11 (heap corruption)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782338#M93874</link>
      <description>&lt;P&gt;Yes, Don is correct. You have corrupted the heap.&lt;BR /&gt;&lt;BR /&gt;You may want to use gdb's heap commands to look for heap corruption. There is "info heap" and "info leak".&lt;BR /&gt;&lt;BR /&gt;You turn it on with "set heap-check ...". See "help set heap-check".&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782338#M93874</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T22:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782339#M93875</link>
      <description>if( calc_proc != NULL &amp;amp;&amp;amp; calc_proc[0] != '\0' ) { &lt;BR /&gt;CalcProc = strdup( calc_proc ); &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The above statement is dangerous and is implementation dependent upon whether an if with a logical and falls thru as soon as a false condition is detected. In some implenmentations, both sides of the if are evaluated then the AND is tested -- which would be a killer for you.&lt;BR /&gt;&lt;BR /&gt;On some platforms, the evaluation of calc_proc[0] would produce a segmentation violation if calc_proc were NULL. I've seen a few cases where code like this would run just fine until the optimizer was used. Regardless of the language (Pascal, C, C++, FORTRAN) the safer play is to break this into two distinct conditions:&lt;BR /&gt;&lt;BR /&gt;if (calc_proc != NULL)&lt;BR /&gt;  {&lt;BR /&gt;    if (calc_proc[0] != '\0') CalcProc = strdup( calc_proc );&lt;BR /&gt;  }&lt;BR /&gt; &lt;BR /&gt;This construct will execute safely under all conditions regardless of language or platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 17:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782339#M93875</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-04T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11 (heap corruption)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782340#M93876</link>
      <description>&lt;P&gt;&amp;gt; if(calc_proc != NULL &amp;amp;&amp;amp; calc_proc[0] != '\0')&lt;BR /&gt;&amp;gt;The above statement is dangerous and is implementation dependent upon whether an if with a logical and falls thru as soon as a false condition is detected. In some implementations, both sides of the if are evaluated then the AND is tested&lt;BR /&gt;&lt;BR /&gt;You are confused. ANSI C and ANSI C++ REQUIRE the evaluation to be short circuited. I don't think Alex should program for broken C/C++ compilers.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Regardless of the language (Pascal, C, C++, FORTRAN)&lt;BR /&gt;&lt;BR /&gt;You are correct about Pascal.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782340#M93876</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T22:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782341#M93877</link>
      <description>Nothing in this posting convinces me that this code fragment was not K&amp;amp;R C. I am well aware of what the language specification calls for; I am also well aware that I have seen this specific behavior in both ANSI C and C++ --- although I shouldn't. I have even seen cases as I mntioned earlier in which all was well until the optimizer was used.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2006 19:27:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782341#M93877</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-05-04T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782342#M93878</link>
      <description>The problem in core file pointed on line &lt;BR /&gt;161 CalcProc = strdup( calc_proc );&lt;BR /&gt;&lt;BR /&gt;not on&lt;BR /&gt;160 if( calc_proc != NULL &amp;amp;&amp;amp; calc_proc[0] != '\0' ) &lt;BR /&gt;&lt;BR /&gt;I also use GDB with keys &lt;BR /&gt;set heap-check bounds on&lt;BR /&gt;set heap-check scramble on&lt;BR /&gt;but this haven't any result&lt;BR /&gt;</description>
      <pubDate>Fri, 05 May 2006 22:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782342#M93878</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-05T22:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11 (heap corruption)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782343#M93879</link>
      <description>&lt;P&gt;&amp;gt;The problem in core file pointed on line&lt;BR /&gt;&amp;gt;161 CalcProc = strdup(calc_proc);&lt;BR /&gt;&amp;gt;not on&lt;BR /&gt;&amp;gt;160 if(calc_proc != NULL &amp;amp;&amp;amp; calc_proc[0] !=&lt;BR /&gt;&lt;BR /&gt;Clay proposed that your coding style was dangerous and I was defending you. :-) This is not your problem because HP's compilers meet the Standards requirements for ordering for &amp;amp;&amp;amp; and ||.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I also use GDB with: set heap-check bounds on scramble on&lt;BR /&gt;&amp;gt;but this haven't any result&lt;BR /&gt;&lt;BR /&gt;I would have thought that would catch it. You might try free on and string on. The latter may need the latest gdb.&lt;BR /&gt;&lt;BR /&gt;If gdb can't catch it, you may need purify.&lt;BR /&gt;Otherwise you need to understand machine code and be able to guess the heap data structures that are being corrupted and set watch points to catch the corruption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Nothing in this posting convinces me that this code fragment was not K&amp;amp;R C.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The stack trace shows it is aC++!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782343#M93879</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T22:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782344#M93880</link>
      <description>What do you have maxssiz and maxssiz_64bit set to in the kernel ?</description>
      <pubDate>Wed, 17 May 2006 03:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782344#M93880</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2006-05-17T03:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782345#M93881</link>
      <description>This parameteres are set to next values:&lt;BR /&gt;&lt;BR /&gt;maxssiz = 100610048     &lt;BR /&gt;maxssiz_64bit = 2147483648    &lt;BR /&gt;maxtsiz = 1073741824    &lt;BR /&gt;maxtsiz_64bit = 4398046511103</description>
      <pubDate>Wed, 17 May 2006 03:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782345#M93881</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-17T03:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11 (heap corruption)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782346#M93882</link>
      <description>&lt;P&gt;&amp;gt;Stephen Keane: What do you have maxssiz and maxssiz_64bit set to in the kernel ?&lt;BR /&gt;&lt;BR /&gt;Ah, you are thinking Alex has a stack overflow and not a heap corruption?&lt;BR /&gt;&lt;BR /&gt;That is very possible. Especially if using threads. Though Alex said: ... and so on to main()&lt;BR /&gt;&lt;BR /&gt;Normally a stack overflow occurs near the beginning and not so far into the function: real_malloc+0xae8&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2011 22:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782346#M93882</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-25T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected core by signal 11</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782347#M93883</link>
      <description>My application is single threaded.</description>
      <pubDate>Thu, 18 May 2006 01:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unexpected-core-by-signal-11/m-p/3782347#M93883</guid>
      <dc:creator>Alex Pronichev</dc:creator>
      <dc:date>2006-05-18T01:51:46Z</dc:date>
    </item>
  </channel>
</rss>

