From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46193 invoked by alias); 12 May 2018 21:18:27 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 46166 invoked by uid 48); 12 May 2018 21:18:23 -0000 From: "luke at diamand dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/23173] eu-addr2line does not flush its output, causing problems when used from a script Date: Sat, 12 May 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: luke at diamand dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q2/txt/msg00039.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23173 Luke Diamand changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Luke Diamand --- That works like a charm with my Python test code: #!/usr/bin/python3 import subprocess import os addr =3D b'0xa6308\n' elf =3D 'myfile.elf' a2l=3D'eu-addr2line' p =3D subprocess.Popen([a2l, '-f', '--demangle', '-e', elf], stdin=3Dsubprocess.PIPE, stdout=3Dsubprocess.PIPE) p.stdin.write(addr) p.stdin.flush() print(p.stdout.readline()) print(p.stdout.readline()) --=20 You are receiving this mail because: You are on the CC list for the bug.