From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3379 invoked by alias); 25 Aug 2006 16:06:55 -0000 Received: (qmail 3369 invoked by uid 22791); 25 Aug 2006 16:06:53 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc1-s28.bay0.hotmail.com (HELO bay0-omc1-s28.bay0.hotmail.com) (65.54.246.100) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Aug 2006 16:06:48 +0000 Received: from hotmail.com ([65.54.175.29]) by bay0-omc1-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Aug 2006 09:06:47 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 25 Aug 2006 09:06:46 -0700 Message-ID: Received: from 65.54.175.200 by by104fd.bay104.hotmail.msn.com with HTTP; Fri, 25 Aug 2006 16:06:42 GMT X-Sender: idht4n@hotmail.com In-Reply-To: <20060825154320.GA9895@nevyn.them.org> From: "David L" To: drow@false.org Cc: gdb@sourceware.org Bcc: Subject: Re: restart -> "Can't attach LWP" + hang Date: Fri, 25 Aug 2006 16:06:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00195.txt.bz2 >On Fri, Aug 25, 2006 at 08:41:59AM -0700, David L wrote: > > I just installed gdb 6.5 and tried to use checkpoint/restart. After > > entering restart and next, I got the message: > > > > [New Thread -1210636064 (LWP 20892)] > > Can't attach LWP 20892: Operation not permitted > > > > I typed next again and gdb stopped responding. > > > > What am I doing wrong? > >Are you using a threaded program? I'm pretty sure that doesn't work >(and I can't think of any way to make it work, either). > Not intentionally, but I'm pretty sure a library I've linked to is spawning a thread under the covers. I'm not sure which one. Below is a list of my dependencies. In any case, could gdb detect that it's multithreaded and prevent me from inserting checkpoint or restarting? Thanks... David PS - Here are my library dependencies. I think one of them starts another thread in a C++ constructor or something. Perhaps there is a way to avoid that if there is a single-threaded option in the configuration for that library so I can use the fancy new checkpoint feature. linux-gate.so.1 => (0xffffe000) libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x008fd000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x02396000) libGL.so.1 => /usr/lib/libGL.so.1 (0x02801000) libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00dc8000) libX11.so.6 => /usr/lib/libX11.so.6 (0x007d6000) libtcl8.4.so => /usr/lib/libtcl8.4.so (0xb7e8b000) libtk8.4.so => /usr/lib/libtk8.4.so (0x009bf000) libdl.so.2 => /lib/libdl.so.2 (0x00784000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7da0000) libm.so.6 => /lib/libm.so.6 (0x007a7000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d93000) libc.so.6 => /lib/libc.so.6 (0x0064f000) libXext.so.6 => /usr/lib/libXext.so.6 (0x008d5000) libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x07fe8000) libpthread.so.0 => /lib/libpthread.so.0 (0x008e7000) libdrm.so.2 => /usr/lib/libdrm.so.2 (0x07fef000) libXt.so.6 => /usr/lib/libXt.so.6 (0x0233b000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7d89000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb7d6f000) libXau.so.6 => /usr/lib/libXau.so.6 (0x0079f000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x007ce000) /lib/ld-linux.so.2 (0x00632000) _________________________________________________________________ Search from any web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview