<?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: Error accessing Memory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016351#M93529</link>
    <description>Have you solved your problem with memcpy?&lt;BR /&gt;&lt;BR /&gt;we just tried memset the SaveArea and now we are not facing the issue to the length as much as it is going to copy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now we are able to debug our exe's but still we are facing some segmentation violation faults. may be i should start new thread for that. i will try to fix and let u know if ur help requires.</description>
    <pubDate>Fri, 15 Jun 2007 03:17:49 GMT</pubDate>
    <dc:creator>JaganKumar</dc:creator>
    <dc:date>2007-06-15T03:17:49Z</dc:date>
    <item>
      <title>Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016333#M93511</link>
      <description>We are trying to execute a request for which Sybase database is queried and the output is returned to the exe.&lt;BR /&gt;&lt;BR /&gt;But we are getting some error in accessing memory.&lt;BR /&gt;&lt;BR /&gt;here is the bt of gdb core.&lt;BR /&gt;&lt;BR /&gt;#0  0x60000000c01d60e0:1 in memmove+0x19e1 () from /usr/lib/hpux32/libc.so.1&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0x60000000c01d60e0:1 in memmove+0x19e1 () from /usr/lib/hpux32/libc.so.1&lt;BR /&gt;#1  0x60000000c582a3a0:0 in pctl_process (ReqObj=90) at pctl.c:153&lt;BR /&gt;#2  0x60000000c58239c0:0 in ods_process (req=90) at odsproc.c:60&lt;BR /&gt;#3  0x60000000c572e220:0 in BillReg (reqobj=89) at bill_reg.c:213&lt;BR /&gt;#4  0x60000000c57226c0:0 in bill_reg (ls=0x7fffd1e0) at add_reg.c:2464&lt;BR /&gt;#5  0x60000000c57212c0:0 in bulk_matched_nodup (dbproc=0x4005ab20,&lt;BR /&gt;    ls=0x7fffd1e0) at add_reg.c:940&lt;BR /&gt;#6  0x60000000c571e350:0 in bulk_matched (dbproc=0x4005ab20, ls=0x7fffd1e0)&lt;BR /&gt;    at add_reg.c:589&lt;BR /&gt;#7  0x60000000c571b2d0:0 in add_reg_main (dbproc=0x4005ab20, ls=0x7fffd1e0)&lt;BR /&gt;    at add_reg.c:433&lt;BR /&gt;#8  0x60000000c5718fe0:0 in AddReg (reqobj=87) at add_reg.c:313&lt;BR /&gt;#9  0x60000000c57e2cd0:0 in RenewBlk (reqobj=87) at RenewBlk.c:243&lt;BR /&gt;#10 0x60000000c5835540:0 in RunFunction (Function=0x77733d60, InputObj=87)&lt;BR /&gt;    at objctrl.c:423&lt;BR /&gt;#11 0x60000000c5831240:0 in pctl_process (ReqObj=87) at pctl.c:299&lt;BR /&gt;#12 0x60000000c58239c0:0 in ods_process (req=3) at odsproc.c:60&lt;BR /&gt;#13 0x60000000c5825050:0 in ods_processMessage (req=2) at odspkts.c:36&lt;BR /&gt;#14 0x400b0f0:0 in Process () at dlbx.c:688&lt;BR /&gt;#15 0x4003e20:0 in main (argc=2, argv=0x7ffff084) at dlbx.c:179&lt;BR /&gt;(gdb) frame 1&lt;BR /&gt;#1  0x60000000c582a3a0:0 in pctl_process (ReqObj=90) at pctl.c:153&lt;BR /&gt;153             memcpy( SaveArea, PctlGlobals, sizeof( PCTLGLOBALS ) );&lt;BR /&gt;(gdb) info locals&lt;BR /&gt;Response = 2004831394&lt;BR /&gt;ProcInfo = 90&lt;BR /&gt;APInfo = 100090&lt;BR /&gt;oReqObj = 90&lt;BR /&gt;ProcDetailObj = 0&lt;BR /&gt;ShLibName = 0xc58239b0 "\031\b"&lt;BR /&gt;APFunction = 0x7fffd130 &lt;ADDRESS 0x7fffd130="" out="" of="" bounds=""&gt;&lt;BR /&gt;Arg = 0x186fa &lt;ADDRESS 0x186fa="" out="" of="" bounds=""&gt;&lt;BR /&gt;Function = (void *) 0x777f4ca2&lt;BR /&gt;rc = 1&lt;BR /&gt;hLib = 0x5a&lt;BR /&gt;pTime = 0x0&lt;BR /&gt;Timeout = 300&lt;BR /&gt;RequestCount = 0&lt;BR /&gt;WkBuf = Cannot access memory at address 0x200000007fffcb00&lt;BR /&gt;(gdb) p SaveArea&lt;BR /&gt;Cannot access memory at address 0x200000007fffcc00&lt;BR /&gt;&lt;BR /&gt;Is there a way to check why our application try accessing these memory. is there a chance just because our PA-RISC source code is recompiled in Itanium and we are executing the exe.&lt;/ADDRESS&gt;&lt;/ADDRESS&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016333#M93511</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-08T09:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016334#M93512</link>
      <description>Unfortunately you couldn't print out the values from your memcpy call.  Perhaps they were macros?&lt;BR /&gt;&lt;BR /&gt;Ah, the debugger is telling you the adddress of SaveArea is bad.&lt;BR /&gt;&lt;BR /&gt;In any case, you can look at it in assembly mode:&lt;BR /&gt;(gdb) frame 0&lt;BR /&gt;(gdb) info reg&lt;BR /&gt;(gdb) disas $pc-16*8 $pc+16*4&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is there a way to check why our application try accessing these memory.&lt;BR /&gt;&lt;BR /&gt;Look print the values in hex?&lt;BR /&gt;What is the types of SaveArea and PctlGlobals.  And what is the value of sizeof(PCTLGLOBALS).  And the size of SaveArea.</description>
      <pubDate>Fri, 08 Jun 2007 20:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016334#M93512</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-08T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016335#M93513</link>
      <description>Thanks Dennis,&lt;BR /&gt;&lt;BR /&gt;we tried looking into the assembly mode but we are not able to understand the output. i have attached the same. Pl. let us know how to analyse. And we are facing same issue in ather module our application also. &lt;BR /&gt;&lt;BR /&gt;FYI,&lt;BR /&gt;362        arg0 = pgm;&lt;BR /&gt;(gdb)&lt;BR /&gt;363        sprintf(arg1, "%d", shmid);&lt;BR /&gt;(gdb)&lt;BR /&gt;364        cii-&amp;gt;isc_return_data_len = 0;&lt;BR /&gt;(gdb)&lt;BR /&gt;369        switch (r=fork())&lt;BR /&gt;(gdb) p shmid&lt;BR /&gt;$1 = 327690&lt;BR /&gt;(gdb) s&lt;BR /&gt;[New process 18664]&lt;BR /&gt;Detaching from program: /dnbusr1/montexec/bin/dlsockd, process 18655&lt;BR /&gt;Attaching after fork to process 18664&lt;BR /&gt;[Switching to process 18664]&lt;BR /&gt;377              fd = open("/dev/null", O_RDWR);&lt;BR /&gt;(gdb)&lt;BR /&gt;(gdb) s&lt;BR /&gt;Executing new program: montciid&lt;BR /&gt;Cannot insert breakpoint 0:&lt;BR /&gt;Error accessing memory address 0x4007660: Not owner.&lt;BR /&gt;&lt;BR /&gt;Fork process intiates the child, in that process we are facing the memory accessing error in first step itself.</description>
      <pubDate>Mon, 11 Jun 2007 03:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016335#M93513</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-11T03:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016336#M93514</link>
      <description>&lt;P&gt;&amp;gt;we tried looking into the assembly mode but we are not able to understand the output. I have attached the same. Pl. let us know how to analyse.&lt;BR /&gt;&lt;BR /&gt;You stopped the register dump too early:&lt;BR /&gt;pr22: 0&lt;BR /&gt;---Type to continue, or q to quit---q&lt;BR /&gt;&lt;BR /&gt;#0 0x60000000c01d4780:0 in memmove+0x80 /usr/lib/hpux32/libc.so.1&lt;BR /&gt;&lt;BR /&gt;0x60000000c01d4780:0 : (p15) st1 [r32]=r27,2&lt;BR /&gt;&lt;BR /&gt;This indicates that you are storing into the address in R32, or SaveArea is bad.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Error accessing memory address 0x4007660: Not owner.&lt;BR /&gt;&lt;BR /&gt;I'm not sure why you are getting this. I'll have some debugger experts look at it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Fork process initiates the child, in that process we are facing the memory accessing error in first step itself.&lt;BR /&gt;&lt;BR /&gt;Do you know where SaveArea is defined? Is it a global, local or shlib global?&lt;BR /&gt;&lt;BR /&gt;The address SaveArea 0x200000007fffcc00 seems like a local in main or a few frames below that. For PA, if you didn't allocate enough space, you wouldn't abort right away, but with the IPF stack growing in the other direction, you would get an abort like this, depending on the length. A register dump would have shown it.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 05:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016336#M93514</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-02T05:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016337#M93515</link>
      <description>I have attached entire list of reg. PFA&lt;BR /&gt;&lt;BR /&gt;&amp;gt;we tried looking into the assembly mode but we are not able to understand the output. i have attached the same. Pl. let us know how to analyse.&lt;BR /&gt;&lt;BR /&gt;You stopped the register dump too early:&lt;BR /&gt;pr22: 0&lt;BR /&gt;---Type &lt;RETURN&gt; to continue, or q &lt;RETURN&gt; to quit---q&lt;BR /&gt;&lt;BR /&gt;#0 0x60000000c01d4780:0 in memmove+0x80 /usr/lib/hpux32/libc.so.1&lt;BR /&gt;&lt;BR /&gt;0x60000000c01d4780:0 &lt;MEMMOVE&gt;: (p15) st1 [r32]=r27,2&lt;BR /&gt;&lt;BR /&gt;This indicates that you are storing into the address in R32, or SaveArea is bad.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Error accessing memory address 0x4007660: Not owner.&lt;BR /&gt;&lt;BR /&gt;I'm not sure why you are getting this. I'll have some debugger experts look at it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Fork process intiates the child, in that process we are facing the memory accessing error in first step itself.&lt;BR /&gt;&lt;BR /&gt;Do you know where SaveArea is defined? Is it a global, local or shlib global?&lt;BR /&gt;&lt;BR /&gt;SaveArea is define on the pctl_process function as local variable. does this error will go if we memset the SaveArea to the size it required.&lt;BR /&gt;&lt;BR /&gt;Cannot access memory at address 0x200000007fffcc00: not owner&lt;BR /&gt;&lt;BR /&gt;this show stopper of our debugging, we are not able to proceed any further to try out any thing.&lt;/MEMMOVE&gt;&lt;/RETURN&gt;&lt;/RETURN&gt;</description>
      <pubDate>Tue, 12 Jun 2007 02:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016337#M93515</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-12T02:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016338#M93516</link>
      <description>&amp;gt;I have attached entire list of reg. PFA&lt;BR /&gt;&lt;BR /&gt;You are moving 2 bytes (R34) from 0x29 (R33) to 0x200000006c76616e (R32).&lt;BR /&gt;&lt;BR /&gt;R32 doesn't match your original value for SaveArea, 0x200000007fffcc00.&lt;BR /&gt;&lt;BR /&gt;R33 is a garbage value.  Possibly a NULL pointer with the offset of 41 bytes?&lt;BR /&gt;You might want to link with -z so you abort sooner when dereferencing NULL pointers.&lt;BR /&gt;&lt;BR /&gt;The target also isn't valid because you can't store there.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;SaveArea is define on the pctl_process function as local variable.&lt;BR /&gt;&lt;BR /&gt;How long is it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;does this error will go if we memset the SaveArea to the size it required.&lt;BR /&gt;&lt;BR /&gt;No, it would probably abort the same way&lt;BR /&gt;&lt;BR /&gt;&amp;gt;this show stopper of our debugging, we are not able to proceed any further to try out anything.&lt;BR /&gt;&lt;BR /&gt;What version of gdb are you using?  You should download the latest.&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, what is the version of the compiler you are using?</description>
      <pubDate>Tue, 12 Jun 2007 04:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016338#M93516</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-12T04:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016339#M93517</link>
      <description>Hi Jagan,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;WkBuf = Cannot access memory at address 0x200000007fffcb00&lt;BR /&gt;&amp;gt;(gdb) p SaveArea&lt;BR /&gt;&amp;gt;Cannot access memory at address &amp;gt;0x200000007fffcc00&lt;BR /&gt;&lt;BR /&gt;Do checkout for any corruption happening to the caller to memmove due to any buffer overflow.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Executing new program: montciid&lt;BR /&gt;&amp;gt;Cannot insert breakpoint 0:&lt;BR /&gt;&amp;gt;Error accessing memory address 0x4007660: Not owner.&lt;BR /&gt;&lt;BR /&gt;This error might be occuring here because you seem to exec a new program (or even 64-bit program from a 32-bit program). This error only says that some previously inserted breakpoints cannot be  inserted after the exec. This problem will be fixed in the next release of WDB (5.8).&lt;BR /&gt;&lt;BR /&gt;As a workaround, please try deleting the breakpoints (especially &lt;ADDRESS&gt; breakpoints) just before the exec() and try again. break on function-names will work provided the function has a definition in the program that is being exec`d and the one that is exec`ing.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Mithun&lt;BR /&gt;(HP-WDB team).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/ADDRESS&gt;</description>
      <pubDate>Tue, 12 Jun 2007 04:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016339#M93517</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-12T04:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016340#M93518</link>
      <description>what is the version of the compiler you are &lt;BR /&gt;using? &lt;BR /&gt;&lt;BR /&gt;cc: HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006]&lt;BR /&gt;&lt;BR /&gt;GDB version 5.4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How long is it(SaveArea)?&lt;BR /&gt;1344&lt;BR /&gt;&lt;BR /&gt;Hi Mithun,&lt;BR /&gt;&lt;BR /&gt;We are using gdb ver 5.4, is there a possibility that if we use 5.6 this error may go. Please let me know.&lt;BR /&gt;&lt;BR /&gt;and as you said i tried remove break points, but i am getting the same error.&lt;BR /&gt;&lt;BR /&gt;FYI,&lt;BR /&gt;362        arg0 = pgm;&lt;BR /&gt;(gdb)&lt;BR /&gt;(gdb) d b 1&lt;BR /&gt;(gdb) s&lt;BR /&gt;363        sprintf(arg1, "%d", shmid);&lt;BR /&gt;(gdb) s&lt;BR /&gt;364        cii-&amp;gt;isc_return_data_len = 0;&lt;BR /&gt;(gdb) s&lt;BR /&gt;369        switch (fork())&lt;BR /&gt;(gdb)&lt;BR /&gt;[New process 9525]&lt;BR /&gt;Detaching from program: /dnbusr1/montexec/bin/dlsockd, process 9483&lt;BR /&gt;Attaching after fork to process 9525&lt;BR /&gt;[Switching to process 9525]&lt;BR /&gt;378              dup2(fd, 0);&lt;BR /&gt;(gdb)&lt;BR /&gt;(gdb) s&lt;BR /&gt;Executing new program: montciid&lt;BR /&gt;Cannot insert breakpoint 0:&lt;BR /&gt;Error accessing memory address 0x4007660: Not owner.&lt;BR /&gt;(gdb) q&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2007 23:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016340#M93518</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-12T23:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016341#M93519</link>
      <description>&amp;gt;We are using gdb ver 5.4, is there a &amp;gt;possibility that if we use 5.6 this error &amp;gt;may go. Please let me know.&lt;BR /&gt;&lt;BR /&gt;You might get the same error even with WDB 5.6. But, it is always advised you use the latest version of WDB to leverage the new fetures put in.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;and as you said i tried remove break &amp;gt;points, but i am getting the same error.&lt;BR /&gt;&amp;gt;(gdb) d b 1&lt;BR /&gt;&lt;BR /&gt;&amp;gt;(gdb) s&lt;BR /&gt;&amp;gt;Executing new program: montciid&lt;BR /&gt;&amp;gt;Cannot insert breakpoint 0:&lt;BR /&gt;&amp;gt;Error accessing memory address 0x4007660: &amp;gt;Not owner.&lt;BR /&gt;&lt;BR /&gt;Are you sure you have removed all breakpoints including the one you have placed at PC 0x4007660 ?&lt;BR /&gt;(gdb) delete&lt;BR /&gt;Delete all breakpoints? (y or n) y&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mithun&lt;BR /&gt;HP-WDB team</description>
      <pubDate>Wed, 13 Jun 2007 00:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016341#M93519</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-13T00:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016342#M93520</link>
      <description>&lt;P&gt;&amp;gt;How long is it(SaveArea)?&lt;BR /&gt;1344&lt;BR /&gt;&lt;BR /&gt;How long does the gdb think it is:&lt;BR /&gt;(gdb) p sizeof SaveArea&lt;BR /&gt;(gdb) ptype SaveArea&lt;BR /&gt;(gdb) p /x SaveArea&lt;BR /&gt;(gdb) p &amp;amp;SaveArea&lt;BR /&gt;&lt;BR /&gt;And the same for PctlGlobals.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;cc: HP aC++/ANSI C A.06.10 [Mar 22 2006]&lt;BR /&gt;&lt;BR /&gt;The latest patch for this is A.06.14, PHSS_35974.&lt;BR /&gt;&lt;BR /&gt;Have you thought of using some of the +check= options? +check=uninit +check=bounds +check=malloc&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Mithun: Are you sure you have removed all breakpoints&lt;BR /&gt;&lt;BR /&gt;Does single stepping set a temp breakpoint that causes JaganKumar's problems? If so, he should just continue after it displays the fork below.&lt;BR /&gt;(gdb) s&lt;BR /&gt;369 switch (fork())&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 05:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016342#M93520</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-02T05:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016343#M93521</link>
      <description>&amp;gt;Mithun: Are you sure you have removed all breakpoints&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Dennis: Does single stepping set a temp &amp;gt;breakpoint that causes JaganKumar's &amp;gt;problems? If so, he should just continue &amp;gt;after it displays the fork below.&lt;BR /&gt;&amp;gt;(gdb) s&lt;BR /&gt;&amp;gt;369 switch (fork())&lt;BR /&gt;&lt;BR /&gt;The breakpoints that are posing a problem here are probably those that have been set before exec (w.r.t the older program). So, the workaround of deleting those breakpoints would work. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mithun&lt;BR /&gt;HP-WDB team&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2007 01:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016343#M93521</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-13T01:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016344#M93522</link>
      <description>&amp;gt;&amp;gt;The breakpoints that are posing a problem here are probably those that have been set before exec (w.r.t the older program). So, the workaround of deleting those breakpoints would work. &lt;BR /&gt;&lt;BR /&gt;Mithun,&lt;BR /&gt;&lt;BR /&gt;I tried debugging after delete all the break points, but still i am getting the same error. please let us know if any other work around for this to proceed further.</description>
      <pubDate>Wed, 13 Jun 2007 11:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016344#M93522</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-13T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016345#M93523</link>
      <description>&amp;gt;I tried debugging after delete all the break points, &lt;BR /&gt;&lt;BR /&gt;Have you tried not single stepping into fork?</description>
      <pubDate>Wed, 13 Jun 2007 17:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016345#M93523</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-13T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016346#M93524</link>
      <description>&amp;gt;I tried debugging after delete all the break points, &lt;BR /&gt;&lt;BR /&gt;&amp;gt;Dennis: Have you tried not single stepping into fork?&lt;BR /&gt;&lt;BR /&gt;Did you try not to step into fork ?&lt;BR /&gt;&lt;BR /&gt;Can you show us the output of this gdb command ?&lt;BR /&gt;(gdb) maint info break&lt;BR /&gt;&lt;BR /&gt;And also let us know how you are invoking gdb, the options used.&lt;BR /&gt;&lt;BR /&gt;Mithun</description>
      <pubDate>Wed, 13 Jun 2007 23:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016346#M93524</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-13T23:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016347#M93525</link>
      <description>&amp;gt;I tried debugging after delete all the break points, &lt;BR /&gt;&lt;BR /&gt;&amp;gt;Dennis: Have you tried not single stepping into fork?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Did you try not to step into fork ?&lt;BR /&gt;&lt;BR /&gt;Workaround:&lt;BR /&gt;1&amp;gt; ensure that you do not have any breakpoints corresponding to the child`s pre-exec`d parent.&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; Do not use the "step" command to step over fork, exec. &lt;BR /&gt;If you want to debug the new exec`d program, use the "next" command and before using "next" over fork, exec, you can plant breakpoints w.r.t the "being exec`d" process, &lt;BR /&gt;say (gdb) break &lt;NEW_PROGRAM&gt;&lt;BR /&gt;&lt;BR /&gt;3&amp;gt; Use the latest gdb 5.6 from&lt;BR /&gt;  &lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Do let me know whether this works.&lt;BR /&gt;&lt;BR /&gt;Mithun&lt;BR /&gt;HP-WDB team&lt;BR /&gt;&lt;BR /&gt;&lt;/NEW_PROGRAM&gt;</description>
      <pubDate>Thu, 14 Jun 2007 02:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016347#M93525</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-14T02:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016348#M93526</link>
      <description>&amp;gt;Workaround:&lt;BR /&gt;&amp;gt;1&amp;gt; ensure that you do not have any &amp;gt;breakpoints corresponding to the child`s pre-exec`d parent.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2&amp;gt; Do not use the "step" command to step &amp;gt;over fork, exec. &lt;BR /&gt;&amp;gt;If you want to debug the new exec`d program, use the "next" command and before using "next" over fork, exec, you can plant breakpoints w.r.t the "being exec`d" process, &lt;BR /&gt;&amp;gt;say (gdb) break &lt;NEW_PROGRAM&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;3&amp;gt; Use the latest gdb 5.6 from&lt;BR /&gt;&amp;gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I could get to reproduce a problem similar to yours. Do try the first 2 workaround steps with gdb 5.4. &lt;BR /&gt;You can download the latest gdb 5.6 and still use these workarounds as stated above. There are some fixes that have gone into 5.6 which might even help your type of scenario.&lt;BR /&gt;&lt;BR /&gt;Mithun&lt;BR /&gt;HP-WDB team&lt;/NEW_PROGRAM&gt;</description>
      <pubDate>Thu, 14 Jun 2007 02:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016348#M93526</guid>
      <dc:creator>Mithun R N</dc:creator>
      <dc:date>2007-06-14T02:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016349#M93527</link>
      <description>&amp;gt;2&amp;gt; Do not use the "step" command to step &amp;gt;over fork, exec. &lt;BR /&gt;&lt;BR /&gt;yes it is working for next. &lt;BR /&gt;&lt;BR /&gt;we have installed gdb5.6 and we are trying to debug with that.&lt;BR /&gt;&lt;BR /&gt;Thanks for your valuable suggestion and comments.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jun 2007 00:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016349#M93527</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-15T00:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016350#M93528</link>
      <description>&amp;gt;yes it is working for next.&lt;BR /&gt;&lt;BR /&gt;Have you solved your problem with memcpy?</description>
      <pubDate>Fri, 15 Jun 2007 02:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016350#M93528</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-15T02:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error accessing Memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016351#M93529</link>
      <description>Have you solved your problem with memcpy?&lt;BR /&gt;&lt;BR /&gt;we just tried memset the SaveArea and now we are not facing the issue to the length as much as it is going to copy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now we are able to debug our exe's but still we are facing some segmentation violation faults. may be i should start new thread for that. i will try to fix and let u know if ur help requires.</description>
      <pubDate>Fri, 15 Jun 2007 03:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-accessing-memory/m-p/4016351#M93529</guid>
      <dc:creator>JaganKumar</dc:creator>
      <dc:date>2007-06-15T03:17:49Z</dc:date>
    </item>
  </channel>
</rss>

