From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8701 invoked by alias); 2 Jan 2010 20:55:34 -0000 Received: (qmail 8691 invoked by uid 22791); 2 Jan 2010 20:55:33 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Received: from emailfrontal2.citycable.ch (HELO emailfrontal2.citycable.ch) (85.218.0.121) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 02 Jan 2010 20:55:26 +0000 Received: from [192.168.0.12] (unknown [85.218.92.99]) (Authenticated sender: guillaume.yziquel@citycable.ch) by emailfrontal2.citycable.ch (Postfix) with ESMTPA id C34B5834394; Sat, 2 Jan 2010 21:55:14 +0100 (CET) Message-ID: <4B3FB2BC.9040104@citycable.ch> Date: Sat, 02 Jan 2010 20:55:00 -0000 From: Guillaume Yziquel Reply-To: guillaume.yziquel@citycable.ch User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: gdb@sourceware.org Subject: watchpoint hangs. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-01/txt/msg00022.txt.bz2 Hi. I've been experiencing the following problem on amd64, Linux Debian, with version > yziquel@seldon:~$ gdb --version > GNU gdb (GDB) 7.0-debian Here it goes: > yziquel@seldon:~/git/ocaml-monetdb5$ make gdb-native > ocamlfind ocamlopt -g -o test/monetdb_sql.native -I . test/monetdb_sql.ml monetDB5.cmxa > ocamlfind ocamlc -g -o test/monetdb_sql.byte test/monetdb_sql.ml monetDB5.cma > gdb -nx -silent test/monetdb_sql.native > Reading symbols from /home/yziquel/git/ocaml-monetdb5/test/monetdb_sql.native...(no debugging symbols found)...done. > (gdb) set breakpoint pending on > (gdb) break mal_init > Breakpoint 1 at 0x403d70 > (gdb) run > Starting program: /home/yziquel/git/ocaml-monetdb5/test/monetdb_sql.native > [Thread debugging using libthread_db enabled] > [New Thread 0x2aaaaf359910 (LWP 6752)] > [Switching to Thread 0x2aaaaf359910 (LWP 6752)] > > Breakpoint 1, mal_init () at mal.c:52 > 52 MT_lock_init( &mal_contextLock, "mal_contextLock"); > (gdb) continue > Continuing. > !MALException:malInclude:could not open file: sql > Done! > [Thread 0x2aaaaf359910 (LWP 6752) exited] > > Program exited normally. > (gdb) OK. Fine. But when I add a watchpoint, it hangs: > yziquel@seldon:~/git/ocaml-monetdb5$ make gdb-native > ocamlfind ocamlopt -g -o test/monetdb_sql.native -I . test/monetdb_sql.ml monetDB5.cmxa > ocamlfind ocamlc -g -o test/monetdb_sql.byte test/monetdb_sql.ml monetDB5.cma > gdb -nx -silent test/monetdb_sql.native > Reading symbols from /home/yziquel/git/ocaml-monetdb5/test/monetdb_sql.native...(no debugging symbols found)...done. > (gdb) set breakpoint pending on > (gdb) break mal_init > Breakpoint 1 at 0x403d70 > (gdb) run > Starting program: /home/yziquel/git/ocaml-monetdb5/test/monetdb_sql.native > [Thread debugging using libthread_db enabled] > [New Thread 0x2aaaaf359910 (LWP 7063)] > [Switching to Thread 0x2aaaaf359910 (LWP 7063)] > > Breakpoint 1, mal_init () at mal.c:52 > 52 MT_lock_init( &mal_contextLock, "mal_contextLock"); > (gdb) print box > $1 = {0x0 } > (gdb) watch box > Watchpoint 2: box > (gdb) continue > Continuing. And it eats up 90% of one of my CPU from now on... All the best, -- Guillaume Yziquel http://yziquel.homelinux.org/