This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14631] hp ux internal-error: handle_inferior_event whenfollowing vfork


http://sourceware.org/bugzilla/show_bug.cgi?id=14631

--- Comment #2 from Roberto GimÃnez <chilabot at gmail dot com> 2012-10-01 18:24:13 UTC ---
mainline

$ gdb --version
GNU gdb (GDB) 7.5.50.20120926-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "ia64-hp-hpux11.31".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.


This log is saved to: /var/tmp/gdb-cmds7096318269954903676.log


NB build: 201207171143


=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.5.50.20120926-cvs\n"
~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to
change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by
law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"ia64-hp-hpux11.31\".\nFor bug reporting
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
&"/home/gimenero/.gdbinit: No such file or directory.\n"
(gdb) 
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6-enable-pretty-printing
7-file-exec-and-symbols 
"/home/gimenero/gitRepos/repos/src/projects/hp/py.com.personal/builder/dist/Debug/GNU-Generic/builder"
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info"]
(gdb) 
3^done
(gdb) 
4^done
(gdb) 
5^done
(gdb) 
6^done
(gdb) 
7^done
8-file-list-exec-source-file
9cd /home/gimenero/gitRepos/repos/src/projects/buildsys
10-exec-arguments --src ../.. -a chila/lib/misc
11-break-insert -f
"/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:48"
12-break-insert -f
"/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:74"
13-break-insert -f
"/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:79"
(gdb) 
14-break-insert -t _start
8^done,line="30",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",macro-info="0"
(gdb) 
&"cd /home/gimenero/gitRepos/repos/src/projects/buildsys\n"
~"Working directory /home/gimenero/gitRepos/repos/src/projects/buildsys.\n"
9^done
(gdb) 
=cmd-param-changed,param="args",value="--src ../.. -a chila/lib/misc"
10^done
(gdb) 
11^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x4000000000185e21",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="48",times="0",original-location="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:48"}
(gdb) 
12^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x4000000000186311",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="74",times="0",original-location="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:74"}
(gdb) 
13^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x4000000000186371",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="79",times="0",original-location="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:79"}
(gdb) 
14^error,msg="Function \"_start\" not defined."
15-break-insert -t main
(gdb) 
15^done,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x4000000000185de1",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="39",times="0",original-location="main"}
16-exec-run
(gdb) 
=thread-group-started,id="i1",pid="530"
=thread-created,id="1",group-id="i1"
16^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="/lib/hpux64/libpthread.so.1",target-name="/lib/hpux64/libpthread.so.1",host-name="/lib/hpux64/libpthread.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libstdc++.so.6",target-name="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libstdc++.so.6",host-name="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/hpux64/libm.so.1",target-name="/lib/hpux64/libm.so.1",host-name="/lib/hpux64/libm.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libgcc_s.so.0",target-name="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libgcc_s.so.0",host-name="/opt/hp-gcc-4.7.0/lib/gcc/ia64-hp-hpux11.23/4.7.0/../../../hpux64/libgcc_s.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/hpux64/libunwind.so.1",target-name="/lib/hpux64/libunwind.so.1",host-name="/lib/hpux64/libunwind.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/hpux64/libc.so.1",target-name="/lib/hpux64/libc.so.1",host-name="/lib/hpux64/libc.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/hpux64/libuca.so.1",target-name="/usr/lib/hpux64/libuca.so.1",host-name="/usr/lib/hpux64/libuca.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/hpux64/libdl.so.1",target-name="/usr/lib/hpux64/libdl.so.1",host-name="/usr/lib/hpux64/libdl.so.1",symbols-loaded="0",thread-group="i1"
=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x4000000000185de1",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="39",times="1",original-location="main"}
*stopped,reason="breakpoint-hit",disp="del",bkptno="4",frame={addr="0x4000000000185de1",func="main",args=[{name="argc",value="5"},{name="argv",value="0x9fffffffffffed70"}],file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="39"},thread-id="1",stopped-threads="all"
17-exec-continue
=breakpoint-deleted,id="4"
(gdb) 
17^running
No answer for: 16-exec-run


*running,thread-id="all"
(gdb) 
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x4000000000185e21",func="main(int,
char**)",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="48",times="1",original-location="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp:48"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x4000000000185e21",func="main",args=[{name="argc",value="5"},{name="argv",value="0x9fffffffffffed70"}],file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="48"},thread-id="1",stopped-threads="all"
18-stack-list-frames
(gdb) 
18^done,stack=[frame={level="0",addr="0x4000000000185e21",func="main",file="../../../../py.com.personal/builder/main.cpp",fullname="/home/gimenero/gitRepos/repos/src/py.com.personal/builder/main.cpp",line="48"}]
No answer for: 17-exec-continue


19-stack-list-arguments 1
20-var-update --all-values * 
(gdb) 
19^done,stack-args=[frame={level="0",args=[{name="argc",value="5"},{name="argv",value="0x9fffffffffffed70"}]}]
21-stack-list-locals --simple-values
(gdb) 
20^done,changelist=[]
(gdb) 
21^done,locals=[{name="builder",type="py::com::personal::buildsys::task::Builder"},{name="taskLoader",type="py::com::personal::builder::TaskLoader"},{name="start",type="boost::posix_time::ptime"}]
22-var-create - @ builder
23-var-create - @ taskLoader
24-var-create - @ start
25-var-create - @ argc
26-var-create - @ argv
27-var-update --all-values * 
(gdb) 
22^done,name="var1",numchild="2",value="{...}",type="py::com::personal::buildsys::task::Builder",thread-id="1",has_more="0"
28-var-show-attributes "var1"
(gdb) 
23^done,name="var2",numchild="1",value="{...}",type="py::com::personal::builder::TaskLoader",thread-id="1",has_more="0"
29-var-show-attributes "var2"
(gdb) 
24^done,name="var3",numchild="1",value="{...}",type="boost::posix_time::ptime",thread-id="1",has_more="0"
30-var-show-attributes "var3"
(gdb) 
25^done,name="var4",numchild="0",value="5",type="int",thread-id="1",has_more="0"
31-var-show-attributes "var4"
(gdb) 
26^done,name="var5",numchild="1",value="0x9fffffffffffed70",type="char
**",thread-id="1",has_more="0"
32-var-show-attributes "var5"
(gdb) 
27^done,changelist=[]
(gdb) 
28^done,attr="noneditable"
(gdb) 
29^done,attr="noneditable"
(gdb) 
30^done,attr="noneditable"
(gdb) 
31^done,attr="editable"
33-var-evaluate-expression var4
(gdb) 
32^done,attr="editable"
34-var-evaluate-expression var5
(gdb) 
35-var-list-children --all-values "var2" 0 100
36-var-list-children --all-values "var3" 0 100
33^done,value="5"
(gdb) 
34^done,value="0x9fffffffffffed70"
(gdb) 
37-var-list-children --all-values "var5" 0 100
35^done,numchild="1",children=[child={name="var2.private",exp="private",numchild="12",value="",thread-id="1"}],has_more="0"
38-var-list-children --all-values "var2.private" 0 100
(gdb) 
36^done,numchild="1",children=[child={name="var3.boost::date_time::base_time<boost::posix_time::ptime,
boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>
> >",exp="boost::date_time::base_time<boost::posix_time::ptime,
boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>
>
>",numchild="2",value="{...}",type="boost::date_time::base_time<boost::posix_time::ptime,
boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>
> >",thread-id="1"}],has_more="0"
39-var-show-attributes
"var3.boost::date_time::base_time<boost::posix_time::ptime,
boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>
> >"
(gdb) 
37^done,numchild="1",children=[child={name="var5.*argv",exp="*argv",numchild="1",value="0x9fffffffffffef38
\"/home/gimenero/gitRepos/repos/src/projects/hp/py.com.personal/builder/dist/Debug/GNU-Generic/builder\"",type="char
*",thread-id="1"}],has_more="0"
40-var-show-attributes "var5.*argv"
(gdb) 
38^done,numchild="12",children=[child={name="var2.private.xmlConfigFile",exp="xmlConfigFile",numchild="2",value="{...}",type="boost::filesystem::path",thread-id="1"},child={name="var2.private.autoConfigFile",exp="autoConfigFile",numchild="2",value="{...}",type="boost::filesystem::path",thread-id="1"},child={name="var2.private.taskManager",exp="taskManager",numchild="2",value="{...}",type="py::com::personal::buildsys::task::TaskManager
&",thread-id="1"},child={name="var2.private.fileTaskMap",exp="fileTaskMap",numchild="1",value="{...}",type="py::com::personal::buildsys::file::FileTaskMap",thread-id="1"},child={name="var2.private.variables",exp="variables",numchild="1",value="{...}",type="py::com::personal::builder::VariableMap",thread-id="1"},child={name="var2.private.boostVersion",exp="boostVersion",numchild="2",value="{...}",type="std::string",thread-id="1"},child={name="var2.private.showPrefix",exp="showPrefix",numchild="0",value="false",type="bool",thread-id="1"},child={name="var2.private.noAutoGenDeps",exp="noAutoGenDeps",numchild="0",value="false",type="bool",thread-id="1"},child={name="var2.private.platform",exp="platform",numchild="0",value="py::com::personal::builder::PE_LINUX_AMD64",type="py::com::personal::builder::PlatformEnum",thread-id="1"},child={name="var2.private.configFiles",exp="configFiles",numchild="1",value="{...}",type="py::com::personal::buildsys::file::PathVec",thread-id="1"},child={name="var2.private.targets",exp="targets",numchild="1",value="{...}",type="py::com::personal::buildsys::file::PathVec",thread-id="1"},child={name="var2.private.opened",exp="opened",numchild="1",value="{...}",type="py::com::personal::buildsys::file::PathSet",thread-id="1"}],has_more="0"
41-var-show-attributes "var2.private.xmlConfigFile"
42-var-show-attributes "var2.private.autoConfigFile"
43-var-show-attributes "var2.private.taskManager"
44-var-show-attributes "var2.private.fileTaskMap"
45-var-show-attributes "var2.private.variables"
46-var-show-attributes "var2.private.boostVersion"
47-var-show-attributes "var2.private.showPrefix"
48-var-show-attributes "var2.private.noAutoGenDeps"
49-var-show-attributes "var2.private.platform"
50-var-show-attributes "var2.private.configFiles"
51-var-show-attributes "var2.private.targets"
52-var-show-attributes "var2.private.opened"
(gdb) 
39^done,attr="noneditable"
(gdb) 
40^done,attr="editable"
(gdb) 
41^done,attr="noneditable"
(gdb) 
42^done,attr="noneditable"
(gdb) 
43^done,attr="noneditable"
(gdb) 
44^done,attr="noneditable"
(gdb) 
45^done,attr="noneditable"
(gdb) 
46^done,attr="noneditable"
(gdb) 
47^done,attr="editable"
(gdb) 
48^done,attr="editable"
(gdb) 
49^done,attr="editable"
(gdb) 
50^done,attr="noneditable"
(gdb) 
51^done,attr="noneditable"
(gdb) 
52^done,attr="noneditable"
(gdb) 
&"set debug infrun 1\n"
^done
No command for record ^done


(gdb) 
53-exec-continue
&"infrun: clear_proceed_status_thread (process 530, lwp 9632898)\n"
&"infrun: proceed (addr=0xffffffffffffffff, signal=144, step=0)\n"
&"infrun: resume (step=1, signal=0), trap_expected=1, current thread [process
530, lwp 9632898] at 0x4000000000185e21\n"
53^running
*running,thread-id="1"
(gdb) 
&"infrun: wait_for_inferior ()\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = stopped, signal = SIGTRAP\n"
&"infrun: infwait_normal_state\n"
&"infrun: TARGET_WAITKIND_STOPPED\n"
&"infrun: stop_pc = 0x4000000000185e22\n"
&"infrun: no stepping, continue\n"
&"infrun: resume (step=0, signal=0), trap_expected=0, current thread [process
530, lwp 9632898] at 0x4000000000185e22\n"
&"infrun: prepare_to_wait\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = forked\n"
&"infrun: infwait_normal_state\n"
&"infrun: TARGET_WAITKIND_FORKED\n"
&"Detaching after fork from child process 569.\n"
&"infrun: resume (step=0, signal=0), trap_expected=0, current thread [process
530, lwp 9632898] at 0x9fffffffbee48730\n"
&"infrun: prepare_to_wait\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = forked\n"
&"infrun: infwait_normal_state\n"
&"infrun: TARGET_WAITKIND_FORKED\n"
&"Detaching after fork from child process 570.\n"
&"infrun: resume (step=0, signal=0), trap_expected=0, current thread [process
530, lwp 9632898] at 0x9fffffffbee48730\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="2",group-id="i1"
~"[New process 530, lwp 9632977]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="3",group-id="i1"
~"[New process 530, lwp 9632978]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="4",group-id="i1"
~"[New process 530, lwp 9632979]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="5",group-id="i1"
~"[New process 530, lwp 9632980]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="6",group-id="i1"
~"[New process 530, lwp 9632981]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="7",group-id="i1"
~"[New process 530, lwp 9632982]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="8",group-id="i1"
~"[New process 530, lwp 9632983]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
=thread-created,id="9",group-id="i1"
~"[New process 530, lwp 9632984]\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632898],\ninfrun:   status->kind = ignore\n"
&"infrun: TARGET_WAITKIND_IGNORE\n"
&"infrun: prepare_to_wait\n"
&"infrun: target_wait (-1, status) =\ninfrun:   530 [process 530, lwp
9632977],\ninfrun:   status->kind = forked\n"
&"infrun: infwait_normal_state\n"
&"infrun: TARGET_WAITKIND_FORKED\n"
&"infrun: Switching context from process 530, lwp 9632898 to process 530, lwp
9632977\n"
&"Detaching after fork from child process 572.\n"
&"infrun: resume (step=0, signal=0), trap_expected=0, current thread [process
530, lwp 9632977] at 0x9fffffffbee48730\n"
~"[Switching to process 530, lwp 9632977]\n"
&"warning: Failed to read register value for psr.\n"
&"warning: Failed to read register value for ip.\n"
&"warning: Failed to read register value for bsp.\n"
&"warning: Failed to read register value for bspstore.\n"
*stopped,frame={addr="0x9fffffffbee48730",func="_fork_sys",args=[],from="/lib/hpux64/libc.so.1"},thread-id="2",stopped-threads="all"
54-stack-list-frames
53^error,msg="ttrace: Protocol error."
=thread-selected,id="2"
(gdb) 
&"warning: Failed to read register value for r12.\n"
&"warning: Failed to read register value for bsp.\n"
&"warning: Failed to read register value for cfm.\n"
&"warning: Failed to read register value for bspstore.\n"
&"warning: Failed to read register value for b0.\n"
&"warning: Failed to read register value for pfs.\n"
54^done,stack=[frame={level="0",addr="0x9fffffffbee48730",func="_fork_sys",from="/lib/hpux64/libc.so.1"},frame={level="1",addr="0x6000000001250dc0",func="??"},frame={level="2",addr="0x0000000000000000",func="??"}]
55-stack-list-arguments 1
56-var-update --all-values * 
(gdb) 
55^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[]},frame={level="2",args=[]}]
57-stack-list-locals --simple-values
(gdb) 
56^done,changelist=[{name="var5",in_scope="false",type_changed="false",has_more="0"},{name="var4",in_scope="false",type_changed="false",has_more="0"},{name="var3",in_scope="false",type_changed="false",has_more="0"},{name="var2",in_scope="false",type_changed="false",has_more="0"},{name="var1",in_scope="false",type_changed="false",has_more="0"}]
(gdb) 
57^done,locals=[]
58-var-update --all-values * 
(gdb) 
58^done,changelist=[]
(gdb) 


(In reply to comment #1)
> Does this one happen with current mainline?  Could you do the same test, but
> with "set debug infrun 1", so we could see gdb's internal run control debug
> output?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]