From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50582 invoked by alias); 8 Apr 2015 12:00:06 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 50547 invoked by uid 48); 8 Apr 2015 12:00:05 -0000 From: "qiyao at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/18208] Fails in gdb.base/coredump-filter.exp in remote testing Date: Wed, 08 Apr 2015 12:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qiyao at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00017.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18208 --- Comment #5 from Yao Qi --- I am running testing for aarch64-linux-gnu target on x86_64 machine, and they are connected via ssh. After this remote_exec, remote_exec target "sh -c \"echo $filter_flag > /proc/$ipid/coredump_filter\"" I dump the /proc/$ipid/coredump_filter via cat, and it becomes 00000000, which is a surprise to me. Dejagnu does remote_exec on build like this, $ ssh -l yaoqi01 linaro-junor1-1 sh -c 'echo 0x7e > /proc/6160/coredump_filter' and on target, coredump_filter is zero. $ cat /proc/6160/coredump_filter 00000000 However, I remove "sh -c", like: $ /usr/bin/ssh -l yaoqi01 linaro-junor1-1 'echo 0x7e > /proc/6160/coredump_filter' then the coredump_filter is correctly set, $ cat /proc/6160/coredump_filter 0000007e -- You are receiving this mail because: You are on the CC list for the bug.