<div><br></div><div>Hi Barry,</div><div>There is no other error in the following.</div><div>I get a result.</div><div><br></div><div>Do you mean that this error must don't impact on the result?</div><div><br></div><div>Thanks for your reply.</div><div>:)</div><div><br></div><div>Meng</div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Barry Smith";<bsmith@mcs.anl.gov>;</div><div><b>Date: </b> Jun 24, 2014</div><div><b>To: </b> "Oo      "<wumeng07maths@qq.com>; <wbr></div><div><b>Cc: </b> "petsc-users"<petsc-users@mcs.anl.gov>; <wbr></div><div><b>Subject: </b> Re: [petsc-users] PETSC ERROR: PetscInitialize()</div></div><div><br></div><br>  What happens at this point? Did the xterm open with the debugger or not? What is printed below seems like only a warning?<br><br>   If you are running with only a single process you can do -start_in_debugger noxterm     and it will open the debugger in the current window instead of starting a new xterm.<br><br>   Barry<br><br>On Jun 23, 2014, at 11:01 AM, Oo <wumeng07maths@qq.com> wrote:<br><br>> <br>> Dear all,<br>> <br>> Recently, I try to write a simple PETSC code for solving linear system problem.<br>> At the beginning of main function, I use PetscInitialize().<br>> However, when I run this program with "-start_in_debugger",<br>> there is a PETSC ERROR caused by this line.<br>> <br>> <br>> The PETSC ERROR is:<br>>  PETSC: Attaching gdb to /Users/meng/MyWork/BuildTools/bin/Parameterization of pid 7342 on display /tmp/launch-0lpYbb/org.macosforge.xquartz:0 on machine vis163d<br>> Warning: locale not supported by Xlib, locale set to C<br>> <br>> Do you have some suggestions to deal with this problem?<br>> <br>> Thanks a lot!<br>> <br>> Meng<br><br>.<br></div>