From unknown Tue Sep 09 17:57:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9388 <9388@debbugs.gnu.org> To: bug#9388 <9388@debbugs.gnu.org> Subject: Status: 24.0.50; Bug in libxml-parse-xml-region Reply-To: bug#9388 <9388@debbugs.gnu.org> Date: Wed, 10 Sep 2025 00:57:27 +0000 retitle 9388 24.0.50; Bug in libxml-parse-xml-region reassign 9388 emacs submitter 9388 Jason Earl severity 9388 normal tag 9388 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 27 20:03:39 2011 Received: (at submit) by debbugs.gnu.org; 28 Aug 2011 00:03:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxSqg-0005gd-Co for submit@debbugs.gnu.org; Sat, 27 Aug 2011 20:03:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxSqZ-0005gT-Rj for submit@debbugs.gnu.org; Sat, 27 Aug 2011 20:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxSnl-0001Le-Jr for submit@debbugs.gnu.org; Sat, 27 Aug 2011 20:00:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:50698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSnl-0001La-IM for submit@debbugs.gnu.org; Sat, 27 Aug 2011 20:00:37 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSnk-0002MN-9c for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxSni-0001LQ-K0 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:36 -0400 Received: from mail18.yourhostingaccount.com ([65.254.254.75]:48006 helo=mailout08.yourhostingaccount.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSni-0001Kx-Ft for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:34 -0400 Received: from mailscan01.yourhostingaccount.com ([10.1.15.1] helo=mailscan01.yourhostingaccount.com) by mailout08.yourhostingaccount.com with esmtp (Exim) id 1QxSne-0005lH-E5 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:30 -0400 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan01.yourhostingaccount.com with esmtp (Exim) id 1QxSne-0007Gj-5f for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:30 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9]) by impout02.yourhostingaccount.com with NO UCE id Rc0J1h0030BkWne0000000; Sat, 27 Aug 2011 20:00:18 -0400 X-EN-OrigOutIP: 10.1.18.9 X-EN-IMPSID: Rc0J1h0030BkWne0000000 Received: from 69.169.150.136.provo.static.broadweavenetworks.net ([69.169.150.136] helo=jearl-netbook) by authsmtp09.yourhostingaccount.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim) id 1QxSnS-0005cR-7S for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:00:18 -0400 From: Jason Earl To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Bug in libxml-parse-xml-region Date: Sat, 27 Aug 2011 18:00:11 -0600 Message-ID: <87d3fq1k38.fsf@notengoamigos.org> MIME-Version: 1.0 Content-Type: text/plain X-EN-UserInfo: f8a5a3c49e1c4664ba81facb1022c4a9:67ddfe7aeaee6d1ea5b788d961d42633 X-EN-AuthUser: jearl@notengoamigos.org X-EN-OrigIP: 69.169.150.136 X-EN-OrigHost: 69.169.150.136.provo.static.broadweavenetworks.net X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': open a file foo.xml with the following contents (although any valid xml file will do). --8<---------------cut here---------------start------------->8--- --8<---------------cut here---------------end--------------->8--- Then start ielm and test libxml-parse-xml-region with the following bit of elisp. --8<---------------cut here---------------start------------->8--- (with-current-buffer "foo.xml" (libxml-parse-xml-region (point-min) (point-max))) --8<---------------cut here---------------end--------------->8--- It will return nil, but it should return "(foo nil)". This function was broken with bzr commit 105297 to trunk, and I believe that it can be fixed with the following simple patch (at least it works for me). --8<---------------cut here---------------start------------->8--- === modified file 'src/xml.c' --- src/xml.c 2011-07-24 14:01:58 +0000 +++ src/xml.c 2011-08-27 22:58:13 +0000 @@ -124,7 +124,7 @@ if (doc != NULL) { - xmlNode *n = doc->children->next; + xmlNode *n = doc->children; Lisp_Object r = Qnil; while (n) { --8<---------------cut here---------------end--------------->8--- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 2011-08-27 on jearl-desktop Windowing system distributor `The X.Org Foundation', version 11.0.11001000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: IELM Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f f o o . x f o o . x m l C-x 2 C-x o M-x i e l m ( w i t h c u SPC " f o o . x m l " ( l i b x SPC ( p o i n t - m i n ) SPC ( p o i n t - m a x ) ) ) M-x e m a c s - r e r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Using vacuous schema Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug help-mode view ielm pp comint ring nxml-uchnm rng-xsd xsd-regexp rng-cmpct regexp-opt rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns easymenu nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 27 22:07:55 2011 Received: (at control) by debbugs.gnu.org; 28 Aug 2011 02:07:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxUmw-0005dd-HH for submit@debbugs.gnu.org; Sat, 27 Aug 2011 22:07:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxUmu-0005dU-CT for control@debbugs.gnu.org; Sat, 27 Aug 2011 22:07:53 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QxUk6-0003ay-KL for control@debbugs.gnu.org; Sat, 27 Aug 2011 22:04:58 -0400 Date: Sat, 27 Aug 2011 22:04:58 -0400 Message-Id: Subject: control message for bug 9388 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) merge 9265 9388 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 28 03:56:25 2011 Received: (at 9388) by debbugs.gnu.org; 28 Aug 2011 07:56:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxaED-00043k-0X for submit@debbugs.gnu.org; Sun, 28 Aug 2011 03:56:25 -0400 Received: from v3-1008.vxen.de ([79.140.41.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxaEA-00043c-KM for 9388@debbugs.gnu.org; Sun, 28 Aug 2011 03:56:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=Vkrs4HL40tNK8BQvWyWq++6DeNxGh5ryn0fBhOJDKi4=; b=rWIVfAEm3dlD1PpSxJS8wreXIuWjGCC7RG+2olKyK/NFyRui5lOxGRkuilfOvEHw0nkDb40sFAiDYGvQf341bOl9eR+BYUMaZ0SNeFTn2UlXMCr7Z5nvktGY+3aZDY8x; Received: from dslc-082-083-058-066.pools.arcor-ip.net ([82.83.58.66] helo=spaten) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QxaBJ-0000xF-Rr; Sun, 28 Aug 2011 09:53:26 +0200 From: David Engster To: Jason Earl Subject: Re: bug#9388: 24.0.50; Bug in libxml-parse-xml-region In-Reply-To: <87d3fq1k38.fsf@notengoamigos.org> (Jason Earl's message of "Sat, 27 Aug 2011 18:00:11 -0600") References: <87d3fq1k38.fsf@notengoamigos.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Date: Sun, 28 Aug 2011 09:53:24 +0200 Message-ID: <87y5yedlaj.fsf@engster.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 9388 Cc: 9388@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) merge 9265 9388 thanks Jason Earl writes: > Then start ielm and test libxml-parse-xml-region with the following bit > of elisp. > > (with-current-buffer "foo.xml" > (libxml-parse-xml-region (point-min) (point-max))) > > It will return nil, but it should return "(foo nil)". This is a duplicate of #9265. -David From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 28 04:03:39 2011 Received: (at 9388) by debbugs.gnu.org; 28 Aug 2011 08:03:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxaLA-0004vV-Rk for submit@debbugs.gnu.org; Sun, 28 Aug 2011 04:03:39 -0400 Received: from v3-1008.vxen.de ([79.140.41.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxaL7-0004vM-7g for 9388@debbugs.gnu.org; Sun, 28 Aug 2011 04:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=hW2YmWhmukAOhHnYtAkHfwKpOMgBo7+3stVMPNSLz0Y=; b=hfeVu7moibsyWIUUEPW7u6Kh9A0ulPa5y6jbBDFfjRRGt0RcBGuG+vJPSHRwjrEdj/pFxpedgY7icBM09uwPzMYXV7qpQXfuuMkuKsJyZURixmad339lW4206Vr/2Ml5; Received: from dslc-082-083-058-066.pools.arcor-ip.net ([82.83.58.66] helo=spaten) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QxaIH-00012S-1x; Sun, 28 Aug 2011 10:00:37 +0200 From: David Engster To: Jason Earl Subject: Re: bug#9388: 24.0.50; Bug in libxml-parse-xml-region In-Reply-To: <87y5yedlaj.fsf@engster.org> (David Engster's message of "Sun, 28 Aug 2011 09:53:24 +0200") References: <87d3fq1k38.fsf@notengoamigos.org> <87y5yedlaj.fsf@engster.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Date: Sun, 28 Aug 2011 10:00:35 +0200 Message-ID: <87ty92dkyk.fsf@engster.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 9388 Cc: 9388@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) merge 9144 9265 thanks David Engster writes: > Jason Earl writes: >> Then start ielm and test libxml-parse-xml-region with the following bit >> of elisp. >> >> (with-current-buffer "foo.xml" >> (libxml-parse-xml-region (point-min) (point-max))) >> >> It will return nil, but it should return "(foo nil)". > > This is a duplicate of #9265. And that one is again a duplicate of #9144. :-) -David From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 05:00:46 2011 Received: (at control) by debbugs.gnu.org; 5 Sep 2011 09:00:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0V2s-0007i6-54 for submit@debbugs.gnu.org; Mon, 05 Sep 2011 05:00:46 -0400 Received: from v3-1008.vxen.de ([79.140.41.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0V2o-0007ht-I1; Mon, 05 Sep 2011 05:00:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=P7JHHwl7855KixiEVIzccfqEbzvySsFjLGvmvGXM63Q=; b=PGc2UOicaaXUpB3F22XJra0V3vpBHj1SVUZeqV30BdV9Z71AyY1GdVCI9rostwmOSZXFHCyGklwNN4bNOodpn6YWSS3xY0LJXvX515nm46q19F0isRVcuV/VLJL0GaMS; Received: from ibookg4-c2.pc.gwdg.de ([134.76.4.219]) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R0UzD-00019L-Mb; Mon, 05 Sep 2011 10:56:59 +0200 From: David Engster To: 9144@debbugs.gnu.org Subject: merging libxml bugs User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (darwin) Date: Mon, 05 Sep 2011 10:56:53 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) forcemerge 9144 9265 9388 thanks See also bugs 9265 and 9388 for more information on this problem. -David From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 10 14:22:41 2011 Received: (at control) by debbugs.gnu.org; 10 Sep 2011 18:22:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2SCP-0006r2-56 for submit@debbugs.gnu.org; Sat, 10 Sep 2011 14:22:41 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2SCM-0006qu-76 for control@debbugs.gnu.org; Sat, 10 Sep 2011 14:22:39 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2S8C-0002nF-Mc for control@debbugs.gnu.org; Sat, 10 Sep 2011 20:18:20 +0200 Date: Sat, 10 Sep 2011 20:15:21 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #9144 X-MailScanner-ID: 1R2S8C-0002nF-Mc X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316283500.94048@Lo/dRGtKO02STMmEAc0hjQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 9144 fixed close 9144 24.1 From unknown Tue Sep 09 17:57:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Oct 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator