From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1623 invoked by alias); 25 May 2008 22:32:16 -0000 Received: (qmail 1462 invoked by uid 48); 25 May 2008 22:31:36 -0000 Date: Sun, 25 May 2008 22:32:00 -0000 From: "cagney at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20080525223136.6561.cagney@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/6561] New: second dwfl smashes first dwfl's sysroot X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00176.txt.bz2 List-Id: In the below, since the flags and callbacks are static, each call to dwflBegin smashes the previous structure. jlong lib::dwfl::Dwfl::dwflBegin(jnixx::env env, jstring jsysroot) { jstringUTFChars sysroot = jsttringUTFChars(env, jsysroot); static char* flags; if (asprintf (&flags, ".debug:%s", sysroot) < 0) return (jlong) NULL; static Dwfl_Callbacks callbacks = { &::dwfl_frysk_proc_find_elf, &::dwfl_standard_find_debuginfo, NULL, &flags, }; return (jlong) ::dwfl_begin(&callbacks); } -- Summary: second dwfl smashes first dwfl's sysroot Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: cagney at redhat dot com CC: scox at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=6561 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.