From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39311 invoked by alias); 26 Apr 2015 12:38:20 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 39284 invoked by uid 48); 26 Apr 2015 12:38:20 -0000 From: "red.skotina at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug varobj/18332] New: internal-error with -var-evaluate-expression Date: Sun, 26 Apr 2015 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: varobj X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: red.skotina at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00156.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18332 Bug ID: 18332 Summary: internal-error with -var-evaluate-expression Product: gdb Version: 7.9 Status: NEW Severity: normal Priority: P2 Component: varobj Assignee: unassigned at sourceware dot org Reporter: red.skotina at gmail dot com Target Milestone: --- Overview: gdb crashed while trying evalue expression from structure. Steps to Reproduce: compile: //pretty_printing_test.cpp #include using namespace std; class Test{ public: int s; Test(int i){s = i;}; }; int main(int argc, char **argv) { vector vector_of_objptr; vector_of_objptr.push_back(new Test(11)); vector_of_objptr.push_back(new Test(22)); //line 17 } debug with gdb: c:/gdb79/bin/gdb --batch --interpreter=mi2 -q -nx -x mintest.mi # mintest.mi interpreter-exec mi "-gdb-set breakpoint pending on" interpreter-exec mi "-enable-pretty-printing" python import sys sys.path.insert(0, 'C:\Users\Red\AppData\Roaming\codelite\gdb_printers') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end interpreter-exec mi "-file-exec-and-symbols --thread-group i1 pretty_printing_test.exe" interpreter-exec mi "-break-insert -f \"main.cpp:17\"" commands 1 interpreter-exec mi "-var-create - @ \"vector_of_objptr\"" interpreter-exec mi "-var-evaluate-expression \"var1\"" interpreter-exec mi "-var-update \"var1\"" interpreter-exec mi "-var-list-children \"var1\"" interpreter-exec mi "-var-evaluate-expression \"var1.[0]\"" interpreter-exec mi "-var-update \"var1.[0]\"" interpreter-exec mi "-var-list-children \"var1.[0]\"" interpreter-exec mi "-var-evaluate-expression \"var1.[0]\"" end interpreter-exec mi "-exec-run" Actual Results: C:\gdb79\bin\gdb-children-bug>c:/gdb79/bin/gdb --batch --interpreter=mi2 -q -nx -x mintest.mi =thread-group-added,id="i1" ~"^done\n" ~"^done\n" ~"^done\n" ~"^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr= \"0x00401596\",func=\"main(int, char**)\",file=\"D:/code/testx/testx/pretty_prin ting_test/main.cpp\",fullname=\"D:\\\\code\\\\testx\\\\testx\\\\pretty_printing_ test\\\\main.cpp\",line=\"17\",thread-groups=[\"i1\"],times=\"0\",original-locat ion=\"main.cpp:17\"}\n" =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y", addr="0x00401596",func="main(int, char**)",file="D:/code/testx/testx/pretty_prin ting_test/main.cpp",fullname="D:\\code\\testx\\testx\\pretty_printing_test\\main .cpp",line="17",thread-groups=["i1"],times="0",script={"interpreter-exec mi \"-v ar-create - @ \\\"vector_of_objptr\\\"\"","interpreter-exec mi \"-var-evaluate-e xpression \\\"var1\\\"\"","interpreter-exec mi \"-var-update \\\"var1\\\"\"","in terpreter-exec mi \"-var-list-children \\\"var1\\\"\"","interpreter-exec mi \"-v ar-evaluate-expression \\\"var1.[0]\\\"\"","interpreter-exec mi \"-var-update \\ \"var1.[0]\\\"\"","interpreter-exec mi \"-var-list-children \\\"var1.[0]\\\"\"", "interpreter-exec mi \"-var-evaluate-expression \\\"var1.[0]\\\"\""},original-lo cation="main.cpp:17"} =thread-group-started,id="i1",pid="8080" =thread-created,id="1",group-id="i1" ~"~\"[New Thread 8080.0x1f74]\\n\"\n" ~"^running\n" ~"*running,thread-id=\"all\"\n" ~"(gdb) \n" =library-loaded,id="C:\\Windows\\SysWOW64\\ntdll.dll",target-name="C:\\Windows\\ SysWOW64\\ntdll.dll",host-name="C:\\Windows\\SysWOW64\\ntdll.dll",symbols-loaded ="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\kernel32.dll",target-name="C:\\Window s\\syswow64\\kernel32.dll",host-name="C:\\Windows\\syswow64\\kernel32.dll",symbo ls-loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\KernelBase.dll",target-name="C:\\Wind ows\\syswow64\\KernelBase.dll",host-name="C:\\Windows\\syswow64\\KernelBase.dll" ,symbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\msvcrt.dll",target-name="C:\\Windows\ \syswow64\\msvcrt.dll",host-name="C:\\Windows\\syswow64\\msvcrt.dll",symbols-loa ded="0",thread-group="i1" =library-loaded,id="c:\\gdb79\\opt\\bin\\libgcc_s_sjlj-1.dll",target-name="c:\\g db79\\opt\\bin\\libgcc_s_sjlj-1.dll",host-name="c:\\gdb79\\opt\\bin\\libgcc_s_sj lj-1.dll",symbols-loaded="0",thread-group="i1" =library-loaded,id="c:\\gdb79\\opt\\bin\\libwinpthread-1.dll",target-name="c:\\g db79\\opt\\bin\\libwinpthread-1.dll",host-name="c:\\gdb79\\opt\\bin\\libwinpthre ad-1.dll",symbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\TDM-GCC-64\\bin\\libstdc++-6.dll",target-name="C:\\TDM-G CC-64\\bin\\libstdc++-6.dll",host-name="C:\\TDM-GCC-64\\bin\\libstdc++-6.dll",sy mbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\user32.dll",target-name="C:\\Windows\ \syswow64\\user32.dll",host-name="C:\\Windows\\syswow64\\user32.dll",symbols-loa ded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\gdi32.dll",target-name="C:\\Windows\\ syswow64\\gdi32.dll",host-name="C:\\Windows\\syswow64\\gdi32.dll",symbols-loaded ="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\lpk.dll",target-name="C:\\Windows\\sy swow64\\lpk.dll",host-name="C:\\Windows\\syswow64\\lpk.dll",symbols-loaded="0",t hread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\usp10.dll",target-name="C:\\Windows\\ syswow64\\usp10.dll",host-name="C:\\Windows\\syswow64\\usp10.dll",symbols-loaded ="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\advapi32.dll",target-name="C:\\Window s\\syswow64\\advapi32.dll",host-name="C:\\Windows\\syswow64\\advapi32.dll",symbo ls-loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\SysWOW64\\sechost.dll",target-name="C:\\Windows \\SysWOW64\\sechost.dll",host-name="C:\\Windows\\SysWOW64\\sechost.dll",symbols- loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\rpcrt4.dll",target-name="C:\\Windows\ \syswow64\\rpcrt4.dll",host-name="C:\\Windows\\syswow64\\rpcrt4.dll",symbols-loa ded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\sspicli.dll",target-name="C:\\Windows \\syswow64\\sspicli.dll",host-name="C:\\Windows\\syswow64\\sspicli.dll",symbols- loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\cryptbase.dll",target-name="C:\\Windo ws\\syswow64\\cryptbase.dll",host-name="C:\\Windows\\syswow64\\cryptbase.dll",sy mbols-loaded="0",thread-group="i1" =library-loaded,id="C:\\Windows\\SysWOW64\\imm32.dll",target-name="C:\\Windows\\ SysWOW64\\imm32.dll",host-name="C:\\Windows\\SysWOW64\\imm32.dll",symbols-loaded ="0",thread-group="i1" =library-loaded,id="C:\\Windows\\syswow64\\msctf.dll",target-name="C:\\Windows\\ syswow64\\msctf.dll",host-name="C:\\Windows\\syswow64\\msctf.dll",symbols-loaded ="0",thread-group="i1" =library-loaded,id="c:\\ansicon\\ANSI32.dll",target-name="c:\\ansicon\\ANSI32.dl l",host-name="c:\\ansicon\\ANSI32.dll",symbols-loaded="0",thread-group="i1" =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y", addr="0x00401596",func="main(int, char**)",file="D:/code/testx/testx/pretty_prin ting_test/main.cpp",fullname="D:\\code\\testx\\testx\\pretty_printing_test\\main .cpp",line="17",thread-groups=["i1"],times="1",script={"interpreter-exec mi \"-v ar-create - @ \\\"vector_of_objptr\\\"\"","interpreter-exec mi \"-var-evaluate-e xpression \\\"var1\\\"\"","interpreter-exec mi \"-var-update \\\"var1\\\"\"","in terpreter-exec mi \"-var-list-children \\\"var1\\\"\"","interpreter-exec mi \"-v ar-evaluate-expression \\\"var1.[0]\\\"\"","interpreter-exec mi \"-var-update \\ \"var1.[0]\\\"\"","interpreter-exec mi \"-var-list-children \\\"var1.[0]\\\"\"", "interpreter-exec mi \"-var-evaluate-expression \\\"var1.[0]\\\"\""},original-lo cation="main.cpp:17"} ~"*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"1\",frame={addr=\"0x 00401596\",func=\"main\",args=[{name=\"argc\",value=\"1\"},{name=\"argv\",value= \"0x9c2ca0\"}],file=\"D:/code/testx/testx/pretty_printing_test/main.cpp\",fullna me=\"D:\\\\code\\\\testx\\\\testx\\\\pretty_printing_test\\\\main.cpp\",line=\"1 7\"},thread-id=\"1\",stopped-threads=\"all\"\n" ~"^done,name=\"var1\",numchild=\"0\",value=\"{...}\",type=\"std::vector >\",thread-id=\"1\",displayhint=\"array\",dynamic=\"1\",has _more=\"1\"\n" ~"^done,value=\"{...}\"\n" ~"^done,changelist=[]\n" ~"^done,numchild=\"1\",displayhint=\"array\",children=[child={name=\"var1.[0]\", exp=\"[0]\",numchild=\"1\",type=\"Test *\",thread-id=\"1\"}],has_more=\"0\"\n" ~"^done,value=\"0x9c3198\"\n" ~"^done,changelist=[{name=\"var1.[0]\",in_scope=\"true\",type_changed=\"false\", has_more=\"0\"}]\n" ~"^done,numchild=\"1\",children=[child={name=\"var1.[0].public\",exp=\"public\", numchild=\"1\",thread-id=\"1\"}],has_more=\"0\"\n" ~"~\"c-varobj.c:519: internal-error: c_value_of_variable: Assertion `varobj_valu e_is_changeable_p (var)' failed.\\nA problem internal to GDB has been detected,\ \nfurther debugging may prove unreliable.\\nQuit this debugging session? \"\n" ~"~\"(y or n) [answered Y; input not from terminal]\\n\"\n" ~"&\"\\nThis is a bug, please report it.\"\n" ~"&\" For instructions, see:\\n.\"\n" ~"&\"\\n\\n\"\n" ~"~\"c-varobj.c:519: internal-error: c_value_of_variable: Assertion `varobj_valu e_is_changeable_p (var)' failed.\\nA problem internal to GDB has been detected,\ \nfurther debugging may prove unreliable.\\nCreate a core file of GDB? \"\n" ~"~\"(y or n) [answered Y; input not from terminal]\\n\"\n" This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Expected Results: No error Build Date & Hardware: 7.9 release Build 2015-22-04 on Windows 7 x64 (i686-mingw-w64) Additional Information: None -- You are receiving this mail because: You are on the CC list for the bug.