From unknown Sat Sep 06 05:55:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5076 <5076@debbugs.gnu.org> To: bug#5076 <5076@debbugs.gnu.org> Subject: Status: 23.1.50; gdb weird breakpoint problem Reply-To: bug#5076 <5076@debbugs.gnu.org> Date: Sat, 06 Sep 2025 12:55:37 +0000 retitle 5076 23.1.50; gdb weird breakpoint problem reassign 5076 emacs submitter 5076 Michael Welsh Duggan severity 5076 normal thanks From md5i@md5i.com Sun Nov 29 20:16:46 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Nov 2009 04:16:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.2 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD, IMPRONONCABLE_1,IMPRONONCABLE_2,MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD2, OBSCURED_EMAIL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAU4Gj2G022928 for ; Sun, 29 Nov 2009 20:16:46 -0800 Received: from mx10.gnu.org ([199.232.76.166]:46716) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NExgq-0005aJ-C0 for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:16:44 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NExgm-0003bG-Nr for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:16:44 -0500 Received: from md5i.com ([75.151.244.229]:56015 helo=maru.md5i.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NExgk-0003aw-0S for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:16:40 -0500 Received: from md5i by maru.md5i.com with local (Exim 4.69) (envelope-from ) id 1NExgd-0005nh-8K for emacs-pretest-bug@gnu.org; Sun, 29 Nov 2009 23:16:31 -0500 From: Michael Welsh Duggan To: emacs-pretest-bug@gnu.org Subject: 23.1.50; gdb weird breakpoint problem Date: Sun, 29 Nov 2009 23:16:31 -0500 Message-ID: <87k4x81wbk.fsf@maru.md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) --=-=-= Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Compile the following program using gcc -g -o bar bar.c --=-=-= Content-Type: text/x-csrc Content-Disposition: inline; filename=bar.c int main() { int a = 4; int b = 5; int c = a++ * b; int d = ++a * b; return d; } --=-=-= Start gdb on the resulting progam bar. An example (modify to suit location): M-x gdb RET C-a C-k gdb -i=mi bar RET Use the following gdb session: start n n n n n n n n start Here is what the output is for me: --=-=-= Content-Disposition: inline Current directory is /usr/local/home/md5i/ GNU gdb (GDB) 7.0-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/local/home/md5i/bar...done. (gdb) start Temporary breakpoint 1 at 0x80483a5: file bar.c, line 2. Starting program: /usr/local/home/md5i/bar (gdb) n (gdb) n (gdb) n (gdb) n (gdb) n (gdb) n (gdb) n (gdb) n The program is not being run. (gdb) start Temporary breakpoint 2 at 0x80483a5: file bar.c, line 2. Starting program: /usr/local/home/md5i/bar Error in re-setting breakpoint 2: Warning: Cannot insert breakpoint -44. Error accessing memory address 0xb7ea56c0: Input/output error. Warning: Cannot insert breakpoint -44. Error accessing memory address 0xb7ea56c0: Input/output error. --=-=-= Here is the gdb-debug-log for this session: --=-=-= Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ((recv . "40^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22176\",fram= e=3D{level=3D\"0\",addr=3D\"0xb7fe2850\",func=3D\"_start\",args=3D[],from= =3D\"/lib/ld-linux.so.2\"},state=3D\"stopped\"}],current-thread-id=3D\"1\"\= n(gdb) \n41^done,frame=3D{level=3D\"0\",addr=3D\"0xb7fe2850\",func=3D\"_sta= rt\",from=3D\"/lib/ld-linux.so.2\"}\n(gdb) \n42^done,BreakpointTable=3D{nr_= rows=3D\"1\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",col_n= ame=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",col_n= ame=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_nam= e=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_name= =3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_nam= e=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_na= me=3D\"what\",colhdr=3D\"What\"}],body=3D[bkpt=3D{number=3D\"2\",type=3D\"b= reakpoint\",disp=3D\"del\",enabled=3D\"y\",addr=3D\"0x080483a5\",func=3D\"m= ain\",file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"2= \",times=3D\"0\",original-location=3D\"main\"}]}\n(gdb) \n") (send-item "42-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "41-stack-info-frame" gdb-frame-handler) (recv . "&\"Error in re-setting breakpoint 2: Warning:\\n\"\n&\"Cannot ins= ert breakpoint -44.\\n\"\n&\"Error accessing memory address 0xb7ea56c0: Inp= ut/output error.\\n\"\n&\"\\n\"\n&\"Warning:\\n\"\n&\"Cannot insert breakpo= int -44.\\n\"\n&\"Error accessing memory address 0xb7ea56c0: Input/output e= rror.\\n\"\n&\"\\n\"\n^error,msg=3D\"Warning:\\nCannot insert breakpoint -4= 4.\\nError accessing memory address 0xb7ea56c0: Input/output error.\\n\"\n(= gdb) \n") (send-item "40-thread-info" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "=3Dlibrary-unloaded,id=3D\"/lib/ld-linux.so.2\",target-name=3D\"/= lib/ld-linux.so.2\",host-name=3D\"/lib/ld-linux.so.2\"\n=3Dlibrary-unloaded= ,id=3D\"/lib/i686/cmov/libc.so.6\",target-name=3D\"/lib/i686/cmov/libc.so.6= \",host-name=3D\"/lib/i686/cmov/libc.so.6\"\n~\"Temporary breakpoint 2 at 0= x80483a5: file bar.c, line 2.\\n\"\n~\"Starting program: /usr/local/home/md= 5i/bar \\n\"\n=3Dthread-group-created,id=3D\"22176\"\n=3Dthread-created,id= =3D\"1\",group-id=3D\"22176\"\n^running\n*running,thread-id=3D\"all\"\n=3Dl= ibrary-loaded,id=3D\"/lib/ld-linux.so.2\",target-name=3D\"/lib/ld-linux.so.= 2\",host-name=3D\"/lib/ld-linux.so.2\",symbols-loaded=3D\"0\"\n") (mi-send . #("start\n" 0 5 (fontified t))) (recv . "37^error,msg=3D\"No registers.\"\n(gdb) \n38^done,threads=3D[]\n(= gdb) \n39^done,BreakpointTable=3D{nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{w= idth=3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{wi= dth=3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{wid= th=3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width= =3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width= =3D\"10\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{wid= th=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body= =3D[]}\n(gdb) \n") (send-item "39-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "38-thread-info" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (send-item "37-stack-info-frame" gdb-frame-handler) (recv . "&\"The program is not being run.\\n\"\n^error,msg=3D\"The program= is not being run.\"\n(gdb) \n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "34^error,msg=3D\"Thread id: 1 has terminated\"\n(gdb) \n35^error,= msg=3D\"No registers.\"\n(gdb) \n36^done,BreakpointTable=3D{nr_rows=3D\"0\"= ,nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",col_name=3D\"numb= er\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",col_name=3D\"type= \",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\"= ,colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\= ",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_name=3D\"addr\",= colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_name=3D\"what\"= ,colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "36-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "35-stack-info-frame" gdb-frame-handler) (send-item "34-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n=3Dthread-exited,id= =3D\"1\",group-id=3D\"22163\"\n=3Dthread-group-exited,id=3D\"22163\"\n*stop= ped,reason=3D\"exited\",exit-code=3D\"036\"\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "32^done,frame=3D{level=3D\"0\",addr=3D\"0xb7e91b55\",func=3D\"__l= ibc_start_main\",file=3D\"libc-start.c\",line=3D\"254\"}\n(gdb) \n33^done,B= reakpointTable=3D{nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",ali= gnment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",ali= gnment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",align= ment=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignme= nt=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignm= ent=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alig= nment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "33-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "32-stack-info-frame --thread 1" gdb-frame-handler) (recv . "*stopped,reason=3D\"end-stepping-range\",frame=3D{addr=3D\"0xb7e9= 1b55\",func=3D\"__libc_start_main\",args=3D[{name=3D\"main\",value=3D\"0x80= 48394
\"},{name=3D\"argc\",value=3D\"1\"},{name=3D\"ubp_av\",value=3D= \"0xbffff434\"},{name=3D\"init\",value=3D\"0x80483f0 <__libc_csu_init>\"},{= name=3D\"fini\",value=3D\"0x80483e0 <__libc_csu_fini>\"},{name=3D\"rtld_fin= i\",value=3D\"0xb7ff0980 <_dl_fini>\"},{name=3D\"stack_end\",value=3D\"0xbf= fff42c\"}],file=3D\"libc-start.c\",line=3D\"254\"},thread-id=3D\"1\",stoppe= d-threads=3D[\"1\"]\n31^done,threads=3D[{id=3D\"1\",target-id=3D\"process 2= 2163\",frame=3D{level=3D\"0\",addr=3D\"0xb7e91b55\",func=3D\"__libc_start_m= ain\",args=3D[{name=3D\"main\",value=3D\"0x8048394
\"},{name=3D\"argc= \",value=3D\"1\"},{name=3D\"ubp_av\",value=3D\"0xbffff434\"},{name=3D\"init= \",value=3D\"0x80483f0 <__libc_csu_init>\"},{name=3D\"fini\",value=3D\"0x80= 483e0 <__libc_csu_fini>\"},{name=3D\"rtld_fini\",value=3D\"0xb7ff0980 <_dl_= fini>\"},{name=3D\"stack_end\",value=3D\"0xbffff42c\"}],file=3D\"libc-start= .c\",line=3D\"254\"},state=3D\"stopped\"}],current-thread-id=3D\"1\"\n(gdb)= \n") (send-item "31-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "28^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483d2\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"9\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n29^done,frame=3D{level=3D\"0= \",addr=3D\"0x080483d2\",func=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr= /local/home/md5i/bar.c\",line=3D\"9\"}\n(gdb) \n30^done,BreakpointTable=3D{= nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",co= l_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",co= l_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_= name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_na= me=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_n= ame=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_= name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "30-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "29-stack-info-frame --thread 1" gdb-frame-handler) (send-item "28-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n*stopped,reason=3D\= "end-stepping-range\",frame=3D{addr=3D\"0x080483d2\",func=3D\"main\",args= =3D[],file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"9= \"},thread-id=3D\"1\",stopped-threads=3D[\"1\"]\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "25^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483cf\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"8\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n26^done,frame=3D{level=3D\"0= \",addr=3D\"0x080483cf\",func=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr= /local/home/md5i/bar.c\",line=3D\"8\"}\n(gdb) \n27^done,BreakpointTable=3D{= nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",co= l_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",co= l_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_= name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_na= me=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_n= ame=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_= name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "27-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "26-stack-info-frame --thread 1" gdb-frame-handler) (send-item "25-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n*stopped,reason=3D\= "end-stepping-range\",frame=3D{addr=3D\"0x080483cf\",func=3D\"main\",args= =3D[],file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"8= \"},thread-id=3D\"1\",stopped-threads=3D[\"1\"]\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "22^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483c1\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"6\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n23^done,frame=3D{level=3D\"0= \",addr=3D\"0x080483c1\",func=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr= /local/home/md5i/bar.c\",line=3D\"6\"}\n(gdb) \n24^done,BreakpointTable=3D{= nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",co= l_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",co= l_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_= name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_na= me=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_n= ame=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_= name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "24-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "23-stack-info-frame --thread 1" gdb-frame-handler) (send-item "22-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n*stopped,reason=3D\= "end-stepping-range\",frame=3D{addr=3D\"0x080483c1\",func=3D\"main\",args= =3D[],file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"6= \"},thread-id=3D\"1\",stopped-threads=3D[\"1\"]\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "19^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483b3\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"5\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n20^done,frame=3D{level=3D\"0= \",addr=3D\"0x080483b3\",func=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr= /local/home/md5i/bar.c\",line=3D\"5\"}\n(gdb) \n21^done,BreakpointTable=3D{= nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",co= l_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",co= l_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_= name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_na= me=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_n= ame=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_= name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "21-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "20-stack-info-frame --thread 1" gdb-frame-handler) (send-item "19-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n*stopped,reason=3D\= "end-stepping-range\",frame=3D{addr=3D\"0x080483b3\",func=3D\"main\",args= =3D[],file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"5= \"},thread-id=3D\"1\",stopped-threads=3D[\"1\"]\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "16^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483ac\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"3\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n17^done,frame=3D{level=3D\"0= \",addr=3D\"0x080483ac\",func=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr= /local/home/md5i/bar.c\",line=3D\"3\"}\n(gdb) \n18^done,BreakpointTable=3D{= nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",co= l_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",co= l_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_= name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_na= me=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_n= ame=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_= name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (send-item "18-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "17-stack-info-frame --thread 1" gdb-frame-handler) (send-item "16-thread-info --thread 1" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "^running\n*running,thread-id=3D\"1\"\n(gdb) \n*stopped,reason=3D\= "end-stepping-range\",frame=3D{addr=3D\"0x080483ac\",func=3D\"main\",args= =3D[],file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"3= \"},thread-id=3D\"1\",stopped-threads=3D[\"1\"]\n") (mi-send . #("n\n" 0 1 (fontified t))) (recv . "13^done,register-names=3D[\"eax\",\"ecx\",\"edx\",\"ebx\",\"esp\"= ,\"ebp\",\"esi\",\"edi\",\"eip\",\"eflags\",\"cs\",\"ss\",\"ds\",\"es\",\"f= s\",\"gs\",\"st0\",\"st1\",\"st2\",\"st3\",\"st4\",\"st5\",\"st6\",\"st7\",= \"fctrl\",\"fstat\",\"ftag\",\"fiseg\",\"fioff\",\"foseg\",\"fooff\",\"fop\= ",\"xmm0\",\"xmm1\",\"xmm2\",\"xmm3\",\"xmm4\",\"xmm5\",\"xmm6\",\"xmm7\",\= "mxcsr\",\"orig_eax\",\"mm0\",\"mm1\",\"mm2\",\"mm3\",\"mm4\",\"mm5\",\"mm6= \",\"mm7\"]\n(gdb) \n14^done,frame=3D{level=3D\"0\",addr=3D\"0x080483a5\",f= unc=3D\"main\",file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",l= ine=3D\"2\"}\n(gdb) \n15^done,BreakpointTable=3D{nr_rows=3D\"0\",nr_cols=3D= \"6\",hdr=3D[{width=3D\"7\",alignment=3D\"-1\",col_name=3D\"number\",colhdr= =3D\"Num\"},{width=3D\"14\",alignment=3D\"-1\",col_name=3D\"type\",colhdr= =3D\"Type\"},{width=3D\"4\",alignment=3D\"-1\",col_name=3D\"disp\",colhdr= =3D\"Disp\"},{width=3D\"3\",alignment=3D\"-1\",col_name=3D\"enabled\",colhd= r=3D\"Enb\"},{width=3D\"10\",alignment=3D\"-1\",col_name=3D\"addr\",colhdr= =3D\"Address\"},{width=3D\"40\",alignment=3D\"2\",col_name=3D\"what\",colhd= r=3D\"What\"}],body=3D[]}\n(gdb) \n") (recv . "12^done,threads=3D[{id=3D\"1\",target-id=3D\"process 22163\",fram= e=3D{level=3D\"0\",addr=3D\"0x080483a5\",func=3D\"main\",args=3D[],file=3D\= "bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"2\"},state=3D\"= stopped\"}],current-thread-id=3D\"1\"\n(gdb) \n") (send-item "15-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "14-stack-info-frame --thread 1" gdb-frame-handler) (send-item "13-data-list-register-names --thread 1" gdb-register-names-han= dler) (recv . "*stopped,reason=3D\"breakpoint-hit\",disp=3D\"del\",bkptno=3D\"1\= ",frame=3D{addr=3D\"0x080483a5\",func=3D\"main\",args=3D[],file=3D\"bar.c\"= ,fullname=3D\"/usr/local/home/md5i/bar.c\",line=3D\"2\"},thread-id=3D\"1\",= stopped-threads=3D[\"1\"]\n") (recv . "(gdb) \n=3Dlibrary-loaded,id=3D\"/lib/i686/cmov/libc.so.6\",targe= t-name=3D\"/lib/i686/cmov/libc.so.6\",host-name=3D\"/lib/i686/cmov/libc.so.= 6\",symbols-loaded=3D\"0\"\n") (recv . "=3Dlibrary-loaded,id=3D\"/lib/ld-linux.so.2\",target-name=3D\"/li= b/ld-linux.so.2\",host-name=3D\"/lib/ld-linux.so.2\",symbols-loaded=3D\"0\"= \n") (send-item "12-thread-info" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (recv . "~\"Temporary breakpoint 1 at 0x80483a5: file bar.c, line 2.\\n\"\= n~\"Starting program: /usr/local/home/md5i/bar \\n\"\n=3Dthread-group-creat= ed,id=3D\"22163\"\n=3Dthread-created,id=3D\"1\",group-id=3D\"22163\"\n^runn= ing\n*running,thread-id=3D\"all\"\n") (mi-send . #("start\n" 0 5 (fontified t))) (recv . "10^done\n(gdb) \n11^done\n(gdb) \n") (send-item "11-enable-pretty-printing" ignore) (send-item "10-gdb-set target-async 1" ignore) (recv . "~\"done.\\n\"\n(gdb) \n1^done\n(gdb) \n2^done\n(gdb) \n3^done\n(g= db) \n4^done,files=3D[{file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/b= ar.c\"},{file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/bar.c\"}]\n(gdb= ) \n5^done,line=3D\"1\",file=3D\"bar.c\",fullname=3D\"/usr/local/home/md5i/= bar.c\",macro-info=3D\"0\"\n(gdb) \n6^done,value=3D\"(gdb) \"\n(gdb) \n7^er= ror,msg=3D\"No registers.\"\n(gdb) \n8^done,threads=3D[]\n(gdb) \n9^done,Br= eakpointTable=3D{nr_rows=3D\"0\",nr_cols=3D\"6\",hdr=3D[{width=3D\"7\",alig= nment=3D\"-1\",col_name=3D\"number\",colhdr=3D\"Num\"},{width=3D\"14\",alig= nment=3D\"-1\",col_name=3D\"type\",colhdr=3D\"Type\"},{width=3D\"4\",alignm= ent=3D\"-1\",col_name=3D\"disp\",colhdr=3D\"Disp\"},{width=3D\"3\",alignmen= t=3D\"-1\",col_name=3D\"enabled\",colhdr=3D\"Enb\"},{width=3D\"10\",alignme= nt=3D\"-1\",col_name=3D\"addr\",colhdr=3D\"Address\"},{width=3D\"40\",align= ment=3D\"2\",col_name=3D\"what\",colhdr=3D\"What\"}],body=3D[]}\n(gdb) \n") (recv . "~\"GNU gdb (GDB) 7.0-debian\\n\"\n~\"Copyright (C) 2009 Free Soft= ware Foundation, Inc.\\n\"\n~\"License GPLv3+: GNU GPL version 3 or later <= http://gnu.org/licenses/gpl.html>\\n\"\n~\"This is free software: you are f= ree to change and redistribute it.\\n\"\n~\"There is NO WARRANTY, to the ex= tent permitted by law. Type \\\"show copying\\\"\\n\"\n~\"and \\\"show war= ranty\\\" for details.\\n\"\n~\"This GDB was configured as \\\"i486-linux-g= nu\\\".\\n\"\n~\"For bug reporting instructions, please see:\\n\"\n~\"...\\n\"\n~\"Reading symbols from /usr/lo= cal/home/md5i/bar...\"\n") (send-item "9-break-list" (lambda (&rest args) (with-current-buffer # (apply 'gdb-breakpoints-list-handler args)))) (send-item "8-thread-info" (lambda (&rest args) (with-current-buffer # (apply 'gdb-thread-list-handler args)))) (send-item "7-stack-info-frame" gdb-frame-handler) (send-item "6-gdb-show prompt" gdb-get-prompt) (send-item "5-file-list-exec-source-file" gdb-get-source-file) (send-item "4-file-list-exec-source-files" gdb-get-source-file-list) (send-item "3-gdb-set non-stop 1" gdb-non-stop-handler) (send-item "2-gdb-set height 0" ignore) (send-item "1-inferior-tty-set /dev/pts/14" ignore)) --=-=-= In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-27 on maru Windowing system distributor `The X.Org Foundation', version 11.0.10605000 configured using `configure '--without-toolkit-scroll-bars'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: display-time-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-n C-n C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f M-b M-b M-f C-f M-d C-d C-M-f C-k C-k ) C-n M-b M-f g d b - s e l M-/ M-/ C-e C-M-b C-M-f C-n C-a C-k C-k C-x C-s C-x 1 C-M-x M-x g d b / u s l o c M-p M-n C-e b i l i l y p o n d b SPC m a i n _ w i C-_ C-x 4 b C-r ( w i t h - c u t r r r t r r e t C-s C-s C-s C-s C-s C-a C-x C-f g u d C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a C-M-x C-x o C-e r u n SPC C-c C-n C-c C-n C-c C-n C-c C-n C-c C-n C-c C-s C-c C-n f C-c C-y C-x 1 > C-p C-p C-p C-p C-p C-p M-q C-n C-n C-n C-p I t SPC d o e s SPC w o r k . SPC SPC I SPC w i l l SPC b e SPC s u b m i t t i n g SPC a SPC f o l l o w u p SPC m i s f e a t u r e b u g m i s f e a t u r e SPC a SPC s SPC a SPC s e p a r a t e SPC b u g . SPC C-c C-c M-x r e p o r t Recent messages: Command: -exec-next --thread 1 1 Mark set [2 times] Auto-saving...done Sending... Sending via mail... nnimap: Updating info for nnimap+localimap:archive.mail...done Sending...done Starting new Ispell process [default] ... Checking spelling of DISAPPEARS... DISAPPEARS is correct Load-path shadows: /usr/local/share/emacs/site-lisp/lilypond-words hides /usr/share/emacs/site-lisp/lilypond-words /usr/local/share/emacs/site-lisp/lilypond-indent hides /usr/share/emacs/site-lisp/lilypond-indent /usr/local/share/emacs/site-lisp/lilypond-mode hides /usr/share/emacs/site-lisp/lilypond-mode /home/md5i/src/elisp/psvn hides /usr/share/emacs/site-lisp/psvn /usr/local/share/emacs/site-lisp/lilypond-song hides /usr/share/emacs/site-lisp/lilypond-song /usr/local/share/emacs/site-lisp/lilypond-what-beat hides /usr/share/emacs/site-lisp/lilypond-what-beat /usr/local/share/emacs/site-lisp/lilypond-font-lock hides /usr/share/emacs/site-lisp/lilypond-font-lock /usr/local/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs/site-lisp/lilypond-init Features: (shadow ispell emacsbug newcomment speedbar sb-image ezimage dframe gdb-mi warnings bindat json gud dabbrev jka-compr find-func grep lilypond-mode scheme etags vc-git cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multi-isearch mule-util vc-dispatcher vc-svn gnus-cite ansi-color flow-fill gnus-async gnus-bcklg parse-time sort byte-opt bytecomp byte-compile gnus-ml disp-table gnus-topic nnfolder utf-7 utf7 rfc2104 nnimap nndraft nnmh bbdb-gnus bbdb-snarf mail-extr bbdb-com nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view smime dig gnus-cache edmacro kmacro gnus-demon nntp nnir gnus-sum gnus-group gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems server uptimes pp uniquify descr-text help-mode view tramp-imap epa epg epg-config imap-hash imap assoc tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source format-spec tramp-compat trampver time rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util sgml-mode psvn log-edit pcvs-util add-log diff-mode easy-mmode inf-caml camldebug thingatpt derived shell caml-types caml-emacs caml-font caml advice help-fns advice-preload compile imenu message sendmail ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils generic-x debian-el debian-el-loaddefs dired-x dired-aux dired bbdb-autoloads bbdb timezone ange-ftp regexp-opt comint ring cl cl-19 tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) -- Michael Welsh Duggan (md5i@md5i.com) --=-=-=-- From nickrob@snap.net.nz Tue Dec 1 23:07:15 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Dec 2009 07:07:15 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB277Ep4030494 for ; Tue, 1 Dec 2009 23:07:15 -0800 Received: from mx10.gnu.org ([199.232.76.166]:42282) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NFjIv-0006HL-B0 for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:07:13 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NFjIt-0001tg-DT for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:07:12 -0500 Received: from mail10.snap.net.nz ([202.37.101.41]:33263 helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFjIs-0001tA-Vc for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:07:11 -0500 Received: from totara (108.27.255.123.static.snap.net.nz [123.255.27.108]) by viper.snap.net.nz (Postfix) with ESMTP id 104173DAFF1; Wed, 2 Dec 2009 20:07:06 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 10958C167; Wed, 2 Dec 2009 20:07:05 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19222.4633.34878.857098@totara.tehura.co.nz> Date: Wed, 2 Dec 2009 20:07:05 +1300 To: Michael Welsh Duggan , 5076@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org Subject: bug#5076: 23.1.50; gdb weird breakpoint problem In-Reply-To: <87k4x81wbk.fsf@maru.md5i.com> References: <87k4x81wbk.fsf@maru.md5i.com> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 > Compile the following program using > gcc -g -o bar bar.c > > int main() { > int a = 4; > int b = 5; > > int c = a++ * b; > int d = ++a * b; > > return d; > } > > Start gdb on the resulting progam bar. An example (modify to suit > location): > > M-x gdb RET C-a C-k gdb -i=mi bar RET Yes. I think it will also happen with a more simple program/recipe too. By default Emacs uses GDB's non-stop mode but I think it has some bugs. Look at this: #include int main() { printf ("Hello World\n"); } ... This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/nickrob/bar...done. (gdb) set target-async 1 (gdb) set pagination off (gdb) set non-stop on (gdb) r Starting program: /home/nickrob/bar Hello World Program exited with code 014. (gdb) start Temporary breakpoint 1 at 0x400514: file bar.c, line 4. Starting program: /home/nickrob/bar Temporary breakpoint 1, main () at bar.c:4 4 printf ("Hello World\n"); (gdb) n Hello World 5 } (gdb) n Program received signal SIGSEGV, Segmentation fault. main () at bar.c:5 5 } -- Nick http://users.snap.net.nz/~nickrob From md5i@md5i.com Tue Dec 1 23:26:30 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Dec 2009 07:26:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB27QS60032057 for ; Tue, 1 Dec 2009 23:26:30 -0800 Received: from mx10.gnu.org ([199.232.76.166]:42952) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NFjbY-0004bB-1X for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:26:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NFjbV-0004VJ-HY for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:26:27 -0500 Received: from md5i.com ([75.151.244.229]:40858 helo=maru.md5i.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFjbV-0004Uz-1n for emacs-pretest-bug@gnu.org; Wed, 02 Dec 2009 02:26:25 -0500 Received: from md5i by maru.md5i.com with local (Exim 4.69) (envelope-from ) id 1NFjbQ-0005kR-OT; Wed, 02 Dec 2009 02:26:20 -0500 From: Michael Welsh Duggan To: nickrob@snap.net.nz (Nick Roberts) Cc: 5076@debbugs.gnu.org, emacs-pretest-bug@gnu.org Subject: Re: bug#5076: 23.1.50; gdb weird breakpoint problem References: <87k4x81wbk.fsf@maru.md5i.com> <19222.4633.34878.857098@totara.tehura.co.nz> Date: Wed, 02 Dec 2009 02:26:20 -0500 In-Reply-To: <19222.4633.34878.857098@totara.tehura.co.nz> (Nick Roberts's message of "Wed, 2 Dec 2009 20:07:05 +1300") Message-ID: <87k4x5zvj7.fsf@maru.md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) So, should I be reporting a bug to the GDB maintainers, or have you already done so? nickrob@snap.net.nz (Nick Roberts) writes: > Yes. I think it will also happen with a more simple program/recipe too. > By default Emacs uses GDB's non-stop mode but I think it has some bugs. > Look at this: > > #include > > int main() { > printf ("Hello World\n"); > } > > > ... > This GDB was configured as "x86_64-unknown-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /home/nickrob/bar...done. > (gdb) set target-async 1 > (gdb) set pagination off > (gdb) set non-stop on > (gdb) r > Starting program: /home/nickrob/bar > Hello World > > Program exited with code 014. > (gdb) start > Temporary breakpoint 1 at 0x400514: file bar.c, line 4. > Starting program: /home/nickrob/bar > > Temporary breakpoint 1, main () at bar.c:4 > 4 printf ("Hello World\n"); > (gdb) n > Hello World > 5 } > (gdb) n > > Program received signal SIGSEGV, Segmentation fault. > main () at bar.c:5 > 5 } -- Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 18 05:47:28 2011 Received: (at 5076) by debbugs.gnu.org; 18 Sep 2011 09:47:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5DyA-000800-V4 for submit@debbugs.gnu.org; Sun, 18 Sep 2011 05:47:28 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Dy2-0007zC-Er for 5076@debbugs.gnu.org; Sun, 18 Sep 2011 05:47:22 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5Dt8-0007UN-KT; Sun, 18 Sep 2011 11:42:14 +0200 From: Lars Magne Ingebrigtsen To: Michael Welsh Duggan Subject: Re: bug#5076: 23.1.50; gdb weird breakpoint problem In-Reply-To: <87k4x5zvj7.fsf@maru.md5i.com> (Michael Welsh Duggan's message of "Wed, 02 Dec 2009 02:26:20 -0500") Date: Sun, 18 Sep 2011 11:29:53 +0200 Message-ID: References: <87k4x81wbk.fsf@maru.md5i.com> <19222.4633.34878.857098@totara.tehura.co.nz> <87k4x5zvj7.fsf@maru.md5i.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Eurythmics's _Touch Dance_: "Cool Blue" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R5Dt8-0007UN-KT X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316943734.74974@T7Vgxnlr2V8LkVvH4SoN7g X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5076 Cc: Nick Roberts , 5076@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Michael Welsh Duggan writes: > So, should I be reporting a bug to the GDB maintainers, or have you > already done so? This sounds like a GDB bug and not an Emacs bug, in any case? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 18 06:28:29 2011 Received: (at 5076) by debbugs.gnu.org; 18 Sep 2011 10:28:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ebs-00026H-Dy for submit@debbugs.gnu.org; Sun, 18 Sep 2011 06:28:29 -0400 Received: from snapmx1.ironport.snap.net.nz ([202.37.100.100]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ebo-000264-Ns for 5076@debbugs.gnu.org; Sun, 18 Sep 2011 06:28:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYGAP/FdU5vRfR//2dsb2JhbABBFpxcilWCSgEBAQECATo/EAtGLCsGiAoEtHUOhmoEk0mRQg X-IronPort-AV: E=Sophos;i="4.68,400,1312113600"; d="scan'208";a="70145541" Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp1.ironport.snap.net.nz with ESMTP; 18 Sep 2011 22:23:26 +1200 X-Sender-IP: 111.69.244.127 X-Sender-IP: 111.69.244.127 X-Sender-IP: 111.69.244.127 Received: from totara (127.244.69.111.dynamic.snap.net.nz [111.69.244.127]) by rupert.snap.net.nz (Postfix) with ESMTP id CDB141FF95; Sun, 18 Sep 2011 22:23:26 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id A192E1189A0; Sun, 18 Sep 2011 22:23:25 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20085.50845.547022.848032@totara.tehura.co.nz> Date: Sun, 18 Sep 2011 22:23:25 +1200 From: Nick Roberts To: Lars Magne Ingebrigtsen Subject: Re: bug#5076: 23.1.50; gdb weird breakpoint problem In-Reply-To: References: <87k4x81wbk.fsf@maru.md5i.com> <19222.4633.34878.857098@totara.tehura.co.nz> <87k4x5zvj7.fsf@maru.md5i.com> X-Mailer: VM 7.19 under Emacs 23.1.1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5076 Cc: Michael Welsh Duggan , 5076@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > This sounds like a GDB bug and not an Emacs bug, in any case? Yes but it looks like it's been fixed, or at least I can't reporoduce it in current GDB. -- Nick http://users.snap.net.nz/~nickrob From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 18 06:36:51 2011 Received: (at 5076) by debbugs.gnu.org; 18 Sep 2011 10:36:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ejy-0002Jp-SQ for submit@debbugs.gnu.org; Sun, 18 Sep 2011 06:36:51 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ejw-0002Ji-Kk for 5076@debbugs.gnu.org; Sun, 18 Sep 2011 06:36:49 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5Ef4-0000Ne-BK; Sun, 18 Sep 2011 12:31:46 +0200 From: Lars Magne Ingebrigtsen To: Nick Roberts Subject: Re: bug#5076: 23.1.50; gdb weird breakpoint problem In-Reply-To: <20085.50845.547022.848032@totara.tehura.co.nz> (Nick Roberts's message of "Sun, 18 Sep 2011 22:23:25 +1200") Date: Sun, 18 Sep 2011 12:27:58 +0200 Message-ID: References: <87k4x81wbk.fsf@maru.md5i.com> <19222.4633.34878.857098@totara.tehura.co.nz> <87k4x5zvj7.fsf@maru.md5i.com> <20085.50845.547022.848032@totara.tehura.co.nz> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Eurythmics's _Savage_: "Brand New Day" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R5Ef4-0000Ne-BK X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316946706.82489@y1gBo1OJ5n7EBuC516aksg X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5076 Cc: Michael Welsh Duggan , 5076@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Nick Roberts writes: > Yes but it looks like it's been fixed, or at least I can't reporoduce it in > current GDB. Ok; I'll close the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 18 06:36:40 2011 Received: (at control) by debbugs.gnu.org; 18 Sep 2011 10:36:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ejo-0002JT-5I for submit@debbugs.gnu.org; Sun, 18 Sep 2011 06:36:40 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ejm-0002JN-Tg for control@debbugs.gnu.org; Sun, 18 Sep 2011 06:36:39 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5Eev-0000NQ-JT for control@debbugs.gnu.org; Sun, 18 Sep 2011 12:31:37 +0200 Date: Sun, 18 Sep 2011 12:28:17 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #5076 X-MailScanner-ID: 1R5Eev-0000NQ-JT X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316946697.9445@SR3Hb7NLbJbWZY/tYBEdgQ X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 5076 From unknown Sat Sep 06 05:55:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Oct 2011 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator