From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.emacs.bugs Subject: bug#9388: 24.0.50; Bug in libxml-parse-xml-region Date: Sat, 27 Aug 2011 18:00:11 -0600 Message-ID: <87d3fq1k38.fsf@notengoamigos.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314489680 19799 80.91.229.12 (28 Aug 2011 00:01:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2011 00:01:20 +0000 (UTC) To: 9388@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 28 02:01:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QxSoN-0000GG-3R for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Aug 2011 02:01:15 +0200 Original-Received: from localhost ([::1]:42002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSoM-0002My-HG for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2011 20:01:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSoJ-0002Mh-U9 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxSoI-0001NJ-PD for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:01:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxSoI-0001NF-MI for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 20:01:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QxSr4-0005hJ-Ur; Sat, 27 Aug 2011 20:04:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Earl Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2011 00:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131448981921867 (code B ref -1); Sun, 28 Aug 2011 00:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Aug 2011 00:03:39 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 27 Aug 2011 20:04:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50381 Archived-At: 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)