From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22428 invoked by alias); 22 May 2012 10:55:20 -0000 Received: (qmail 22419 invoked by uid 22791); 22 May 2012 10:55:18 -0000 X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,LIBERO,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from outrelay02.libero.it (HELO outrelay02.libero.it) (212.52.84.102) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 May 2012 10:55:04 +0000 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B020B.4FBB7086.01EC,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Received: from wmail63 (172.31.0.42) by outrelay02.libero.it (8.5.140) id 4FB2B24200E51A38 for gdb@sourceware.org; Tue, 22 May 2012 12:55:02 +0200 Message-ID: <25154829.3840181337684102538.JavaMail.defaultUser@defaultHost> Date: Tue, 22 May 2012 10:55:00 -0000 From: "erupter@libero.it" Reply-To: "erupter@libero.it" To: gdb@sourceware.org Subject: Re: Gdb crashing or not attaching in Netbeans MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SenderIP: 78.13.218.151 X-libjamv: 7PSgDExxDbg= X-libjamsun: 6MbrOSSgDi6KeHmcbg03xUgBaGCNl2Zu X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00114.txt.bz2 Finally I got logs! I'm asking for help in understanding what is happening. First is a correct log, as to say a log of a working debugging session up t= o=20 the first break point. Then a log of a crashed debugging session, from which the debugger never=20 recovers (closing the IDE, restarting the computer, nothing solves the debu= gger=20 crash. Just clearing the IDE user settings folder). So here is a working log. =3Dthread-group-added,id=3D"i1" ~"GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04\n" ~"Copyright (C) 2012 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it. \nThere is NO WARRANTY, to the extent permitted by law. Type \"show copyin= g\" \nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting=20 instructions, please see:\n" ~".\n" &"/home/erupter/.gdbinit: No such file or directory.\n" (gdb)=20 2-list-features 3-gdb-set print repeat 0 4-gdb-set backtrace limit 1024 5-gdb-set print elements 0 6-environment-directory ".:/usr/local/include/player-3.1: /usr/local/include/Stage-4.1" 7-file-exec-and-symbols "/home/erupter/NetBeansProjects/PlayerStage=20 Test/dist/Debug/GNU-Linux-x86/playerstage_test" 2^done,features=3D["frozen-varobjs","pending-breakpoints","thread-info","da= ta- read-memory-bytes","breakpoint-notifications","ada-task-info","python"] (gdb)=20 3^done (gdb)=20 4^done (gdb)=20 5^done (gdb)=20 &"Warning: /home/erupter/NetBeansProjects/PlayerStage Test/.: /usr/local/include/player-3.1:/usr/local/include/Stage-4.1: No such file or= =20 directory.\n" 6^done,source-path=3D"/home/erupter/NetBeansProjects/PlayerStage Test/.: /usr/local/include/player-3.1:/usr/local/include/Stage-4.1:$cdir:$cwd" (gdb)=20 7^done (gdb)=20 8-file-list-exec-source-file 8^done,line=3D"10",file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",macro-info=3D"0" (gdb)=20 9cd /home/erupter/NetBeansProjects/PlayerStage Test 10-exec-arguments=20 11set environment $LD_LIBRARY_PATH=3D/usr/local/lib64;/usr/local/lib;/usr/l= ib; /usr/lib64 12-break-insert -f "main.c:35" &"cd /home/erupter/NetBeansProjects/PlayerStage Test\n" ~"Working directory /home/erupter/NetBeansProjects/PlayerStage Test.\n" 9^done (gdb)=20 10^done (gdb)=20 &"set environment $LD_LIBRARY_PATH=3D/usr/local/lib64;/usr/local/lib;/usr/l= ib; /usr/lib64\n" 11^done (gdb)=20 12^done,bkpt=3D{number=3D"1",type=3D"breakpoint",disp=3D"keep",enabled=3D"y= ",addr=3D" 0x0000000000401109",func=3D"main",file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",line=3D"35",times= =3D"0", original-location=3D"main.c:35"} (gdb)=20 13-break-insert -t _start 13^done,bkpt=3D{number=3D"2",type=3D"breakpoint",disp=3D"del",enabled=3D"y"= ,addr=3D" 0x0000000000400f60",at=3D"<_start>",times=3D"0",original-location=3D"_start= "} (gdb)=20 14-exec-run =3Dthread-group-started,id=3D"i1",pid=3D"7246" =3Dthread-created,id=3D"1",group-id=3D"i1" 14^running *running,thread-id=3D"all" (gdb)=20 =3Dlibrary-loaded,id=3D"/lib64/ld-linux-x86-64.so.2",target-name=3D"/lib64/= ld-linux- x86-64.so.2",host-name=3D"/lib64/ld-linux-x86-64.so.2",symbols-loaded=3D"0"= ,thread- group=3D"i1" =3Dlibrary-loaded,id=3D"/usr/local/lib64/libplayerc.so.3.1",target-name=3D" /usr/local/lib64/libplayerc.so.3.1",host-name=3D"/usr/local/lib64/libplayer= c.so. 3.1",symbols-loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libm.so.6",target-name=3D"/li= b/x86_64- linux-gnu/libm.so.6",host-name=3D"/lib/x86_64-linux-gnu/libm.so.6",symbols- loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libc.so.6",target-name=3D"/li= b/x86_64- linux-gnu/libc.so.6",host-name=3D"/lib/x86_64-linux-gnu/libc.so.6",symbols- loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/usr/local/lib64/libplayerinterface.so.3.1",target-= name=3D" /usr/local/lib64/libplayerinterface.so.3.1",host-name=3D" /usr/local/lib64/libplayerinterface.so.3.1",symbols-loaded=3D"0",thread-gro= up=3D" i1" =3Dlibrary-loaded,id=3D"/usr/local/lib64/libplayerwkb.so.3.1",target-name= =3D" /usr/local/lib64/libplayerwkb.so.3.1",host-name=3D"/usr/local/lib64/libplay= erwkb. so.3.1",symbols-loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libz.so.1",target-name=3D"/li= b/x86_64- linux-gnu/libz.so.1",host-name=3D"/lib/x86_64-linux-gnu/libz.so.1",symbols- loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/usr/local/lib64/libplayerjpeg.so.3.1",target-name= =3D" /usr/local/lib64/libplayerjpeg.so.3.1",host-name=3D" /usr/local/lib64/libplayerjpeg.so.3.1",symbols-loaded=3D"0",thread-group=3D= "i1" =3Dlibrary-loaded,id=3D"/usr/local/lib64/libplayercommon.so.3.1",target-nam= e=3D" /usr/local/lib64/libplayercommon.so.3.1",host-name=3D" /usr/local/lib64/libplayercommon.so.3.1",symbols-loaded=3D"0",thread-group= =3D"i1" =3Dlibrary-loaded,id=3D"/usr/lib/libgeos_c.so.1",target-name=3D"/usr/lib/li= bgeos_c. so.1",host-name=3D"/usr/lib/libgeos_c.so.1",symbols-loaded=3D"0",thread-gro= up=3D"i1" =3Dlibrary-loaded,id=3D"/usr/lib/x86_64-linux-gnu/libjpeg.so.8",target-name= =3D" /usr/lib/x86_64-linux-gnu/libjpeg.so.8",host-name=3D"/usr/lib/x86_64-linux- gnu/libjpeg.so.8",symbols-loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/usr/lib/libgeos-3.2.2.so",target-name=3D"/usr/lib/= libgeos- 3.2.2.so",host-name=3D"/usr/lib/libgeos-3.2.2.so",symbols-loaded=3D"0",thre= ad- group=3D"i1" =3Dlibrary-loaded,id=3D"/usr/lib/x86_64-linux-gnu/libstdc++.so.6",target-na= me=3D" /usr/lib/x86_64-linux-gnu/libstdc++.so.6",host-name=3D"/usr/lib/x86_64-linu= x- gnu/libstdc++.so.6",symbols-loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name=3D" /lib/x86_64-linux-gnu/libgcc_s.so.1",host-name=3D"/lib/x86_64-linux-gnu/lib= gcc_s. so.1",symbols-loaded=3D"0",thread-group=3D"i1" =3Dbreakpoint-modified,bkpt=3D{number=3D"2",type=3D"breakpoint",disp=3D"del= ",enabled=3D"y", addr=3D"0x0000000000400f60",at=3D"<_start>",times=3D"1",original-location= =3D"_start"} *stopped,reason=3D"breakpoint-hit",disp=3D"del",bkptno=3D"2",frame=3D{addr= =3D" 0x0000000000400f60",func=3D"_start",args=3D[]},thread-id=3D"1",stopped-thre= ads=3D"all", core=3D"0" =3Dbreakpoint-deleted,id=3D"2" (gdb)=20 15-exec-continue 15^running *running,thread-id=3D"all" (gdb)=20 No answer for: 14-exec-run =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libnss_files.so.2",target-nam= e=3D" /lib/x86_64-linux-gnu/libnss_files.so.2",host-name=3D"/lib/x86_64-linux- gnu/libnss_files.so.2",symbols-loaded=3D"0",thread-group=3D"i1" =3Dbreakpoint-modified,bkpt=3D{number=3D"1",type=3D"breakpoint",disp=3D"kee= p",enabled=3D" y",addr=3D"0x0000000000401109",func=3D"main",file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",line=3D"35",times= =3D"1", original-location=3D"main.c:35"} *stopped,reason=3D"breakpoint-hit",disp=3D"keep",bkptno=3D"1",frame=3D{addr= =3D" 0x0000000000401109",func=3D"main",args=3D[{name=3D"argc",value=3D"1"},{name= =3D"argv", value=3D"0x7fffffffe4b8"}],file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",line=3D"35"},thread= -id=3D" 1",stopped-threads=3D"all",core=3D"0" (gdb)=20 16-stack-list-frames 16^done,stack=3D[frame=3D{level=3D"0",addr=3D"0x0000000000401109",func=3D"m= ain",file=3D" main.c",fullname=3D"/home/erupter/NetBeansProjects/PlayerStage Test/main.c"= ,line=3D" 35"}] (gdb)=20 No answer for: 15-exec-continue 17-stack-list-arguments 1 17^done,stack-args=3D[frame=3D{level=3D"0",args=3D[{name=3D"argc",value=3D"= 1"},{name=3D" argv",value=3D"0x7fffffffe4b8"}]}] (gdb)=20 =01 And now a non working log. =3Dthread-group-added,id=3D"i1" ~"GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04\n" ~"Copyright (C) 2012 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it. \nThere is NO WARRANTY, to the extent permitted by law. Type \"show copyin= g\" \nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting=20 instructions, please see:\n" ~".\n" &"/home/erupter/.gdbinit: No such file or directory.\n" (gdb)=20 2-list-features 3-gdb-set print repeat 0 4-gdb-set backtrace limit 1024 5-gdb-set print elements 0 6-environment-directory ".:/usr/local/include/player-3.1: /usr/local/include/Stage-4.1" 7-file-exec-and-symbols "/home/erupter/NetBeansProjects/PlayerStage=20 Test/dist/Debug/GNU-Linux-x86/playerstage_test" 2^done,features=3D["frozen-varobjs","pending-breakpoints","thread-info","da= ta- read-memory-bytes","breakpoint-notifications","ada-task-info","python"] (gdb)=20 3^done (gdb)=20 4^done (gdb)=20 5^done (gdb)=20 &"Warning: /home/erupter/NetBeansProjects/PlayerStage Test/.: /usr/local/include/player-3.1:/usr/local/include/Stage-4.1: No such file or= =20 directory.\n" 6^done,source-path=3D"/home/erupter/NetBeansProjects/PlayerStage Test/.: /usr/local/include/player-3.1:/usr/local/include/Stage-4.1:$cdir:$cwd" (gdb)=20 7^done (gdb)=20 8-file-list-exec-source-file 8^done,line=3D"10",file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",macro-info=3D"0" (gdb)=20 9cd /home/erupter/NetBeansProjects/PlayerStage Test 10-exec-arguments=20 11set environment $LD_LIBRARY_PATH=3D/usr/local/lib64;/usr/local/lib;/usr/l= ib; /usr/lib64 12-break-insert -f "main.c:23" 13-var-create - @ sonar 14-var-update --all-values *=20 15-var-create - @ client 16-var-update --all-values *=20 &"cd /home/erupter/NetBeansProjects/PlayerStage Test\n" 17-break-insert -t _start ~"Working directory /home/erupter/NetBeansProjects/PlayerStage Test.\n" 9^done (gdb)=20 10^done (gdb)=20 &"set environment $LD_LIBRARY_PATH=3D/usr/local/lib64;/usr/local/lib;/usr/l= ib; /usr/lib64\n" 11^done (gdb)=20 12^done,bkpt=3D{number=3D"1",type=3D"breakpoint",disp=3D"keep",enabled=3D"y= ",addr=3D" 0x000000000040109d",func=3D"main",file=3D"main.c",fullname=3D" /home/erupter/NetBeansProjects/PlayerStage Test/main.c",line=3D"23",times= =3D"0", original-location=3D"main.c:23"} (gdb)=20 13^done,name=3D"var1",numchild=3D"21",value=3D"0x0",type=3D"playerc_ranger_= t *", has_more=3D"0" (gdb)=20 ~"/build/buildd/gdb-7.4-2012.04/gdb/thread.c:613: internal-error:=20 is_thread_state: Assertion `tp' failed.\nA problem internal to GDB has been= =20 detected,\nfurther debugging may prove unreliable.\nQuit this debugging=20 session? " ~"(y or n) [answered Y; input not from terminal]\n" 18-var-show-attributes "var1" ~"/build/buildd/gdb-7.4-2012.04/gdb/thread.c:613: internal-error:=20 is_thread_state: Assertion `tp' failed.\nA problem internal to GDB has been= =20 detected,\nfurther debugging may prove unreliable.\nCreate a core file of G= DB?=20 " ~"(y or n) [answered Y; input not from terminal]\n" =20=20 This is all being done automatically by Netbeans IDE. When this happens, I have a "crash notification" from the System notificati= on=20 helper too. Thanks and regards Claudio Carbone >----Messaggio originale---- >Da: erupter@libero.it >Data: 17/05/2012 16.38 >A: >Ogg: Gdb crashing or not attaching in Netbeans > >Hello. >I've used GDB as a standalone debugger before, maybe with one amateur=20 >interface until recently I discovered Netbeans. >During development of a program suddenly debugging stopped working. >If I load a simple hello world, GDB works fine. >In the program I'm re-writing now (old program whose external libraries go= t=20 >changed) GDB doesn't want to work anymore. >Now Netbeans doesn't provide any info at all to help me debug this, so I'm= =20 >asking here: how can I gather information on this kind of malfunction? > >It *seems* that there is a problem with the source of a library. >Meaning that if I exclude the include (and the relevant code which is most= =20 of=20 >it) GDB works. >The moment I include that external source, it stops working. >Files are there though and compilation goes without problems. > >I'm really in the dark here. > >Best regards >Claudio