mc-alloc bug?
17 years, 3 months
Jerry James
I've built a 21.5 from CVS of just before the cvs.xemacs.org crash, on
a 32-bit Pentium 4. I ran it under valgrind and got some errors
before the frame is mapped. Here's the first one:
==11577== Invalid write of size 1
==11577== at 0x4006614: memset (mc_replace_strmem.c:490)
==11577== by 0x832B7BD: mc_alloc_1 (string3.h:96)
==11577== by 0x816BBC4: alloc_lrecord (alloc.c:582)
==11577== by 0x8362844: make_opaque_ptr (opaque.c:167)
==11577== by 0x81F876F: record_unwind_protect_restoring_int (eval.c:6047)
==11577== by 0x81F87E8: internal_bind_int (eval.c:6076)
==11577== by 0x82A4F15: begin_gc_forbidden (gc.c:1274)
==11577== by 0x82A5D47: gc (gc.c:1939)
==11577== by 0x82A5D96: gc_incremental (gc.c:1974)
==11577== by 0x81FCA90: Feval (eval.c:3590)
==11577== by 0x81FCBE5: Feval (eval.c:3663)
==11577== by 0x832043D: readevalloop (lread.c:1467)
==11577== Address 0x4646028 is 0 bytes after a block of size 2,494,464 alloc'd
==11577== at 0x4004824: calloc (vg_replace_malloc.c:279)
==11577== by 0x816D20C: xmalloc_and_zero (alloc.c:402)
==11577== by 0x832B536: mc_alloc_1 (mc-alloc.c:1150)
==11577== by 0x816BBC4: alloc_lrecord (alloc.c:582)
==11577== by 0x816C7EF: Fcons (alloc.c:1273)
==11577== by 0x8322059: read_list_conser (lread.c:2977)
==11577== by 0x831CB0D: sequence_reader (lread.c:2899)
==11577== by 0x831CBC9: read_list (lread.c:3024)
==11577== by 0x831E1A0: read1 (lread.c:2471)
==11577== by 0x831F7E5: read0 (lread.c:1661)
==11577== by 0x83208FC: readevalloop (lread.c:1464)
==11577== by 0x8324180: Fload_internal (lread.c:768)
This is followed by a complaint about accessing 1 byte after the same
block, so that memset manages to go 2 bytes after the end of the
allocated block. I don't understand the mc-alloc.c code well enough
to judge yet, but here's a guess at what might be happening.
The error happens during startup, so we are allocating like mad but
not freeing anything. Therefore, there is only one page on the free
list, and it is mostly allocated already; in fact, it has fewer than
sizeof(struct Lisp_Opaque) bytes left, which is more than
USED_LIST_MIN_OBJECT_SIZE but less than USED_LIST_UPPER_THRESHOLD.
The call to make_opaque_ptr -> alloc_lrecord -> mc_alloc_1 thus has
only the one page to consider. The call to get_used_list_index at the
top of mc_alloc_1 returns 4, if I have counted correctly, so
plh = USED_HEAP_PAGES (get_used_list_index (size));
set plh to &mc_allocator_globals.used_heap_pages[4]. Since the size
is small enough, a call to allocate_cell is then made. Here's the
part I'm not so sure about. None of the remaining code checks that a
sufficient number of bytes remain on that page. Or do we always
allocate an entire page? In any case, the memset a few lines down is
running off the end of the allocated block by 2 bytes, so something
like this scenario must be happening. I'll try to track it down in
more detail when I have a little more free time.
--
Jerry James
http://loganjerry.googlepages.com/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
[Bug: 21.4.20] Problem when open vhdl file
17 years, 3 months
Jim Huang
================================================================
Dear Bug Team!
I had problem when I open the VHDL file (.vhd). In windows, I set the xemacs
is the default
Editor to open .vhd file. Everytime when I open a .vhd file by
double-clicking the file's icon or open the
file with the windows command line, e.g "xemace aaa.vhd", the file can not
be correctly displayed.
No text, and the top of file looks like blinking.
The solution is simple, every time I just resize the xemacs window a little
bit, or minimum the
Xemacs window and restore it again, then the display goes well.
If I open the .vhd file from the xemacs window, no problem at all.
-Best Regards
Jim Huang
================================================================
System Info to help track down your bug:
---------------------------------------
OS version:
Microsoft Windows XP [Version 5.1.2600]
OS: Windows_NT
XEmacs 21.4.20 "Double Solitaire" configured for `i586-pc-win32'.
Building XEmacs in "e:\\acs\\software\\XEmacsWindowsKit\\xemacs-
21.4-2006-12-09\\nt".
Using compiler "cl -nologo -W3 -O2 -G5 -MD".
Installing XEmacs in "e:/acs/software/XEmacsWindowsKit/installed/XEmacs-
21.4.20".
Compiling in support for Microsoft Windows native GUI.
Compiling in support for XPM images.
Compiling in support for GIF images.
Compiling in support for PNG images.
Compiling in support for TIFF images.
Compiling in support for JPEG images.
Compiling in support for toolbars.
Compiling in support for dialogs.
Compiling in support for widgets.
Compiling in support for native sounds.
Compiling in fast dired implementation.
Using portable dumper.
Using system malloc.
Using DLL version of C runtime library
Load-Path Lisp Shadows:
----------------------
nil
Installed XEmacs Packages:
-------------------------
(xemacs-devel ver: 1.75 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.08 upstream: No-Upstream-Ver)
(vhdl ver: 1.22 upstream: 3.33.12)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(text-modes ver: 1.92 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(speedbar ver: 1.28 upstream: 0.14beta4)
(sounds-wav ver: 1.12 upstream: No-Upstream-Ver)
(sh-script ver: 1.21 upstream: 2.0f)
(semantic ver: 1.2 upstream: 1.4.4)
(python-modes ver: 1.08 upstream: No-Upstream-Ver)
(prog-modes ver: 2.09 upstream: No-Upstream-Ver)
(perl-modes ver: 1.09 upstream: No-Upstream-Ver)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.39 upstream: No-Upstream-Ver)
(net-utils ver: 1.49 upstream: N/A)
(mail-lib ver: 1.78 upstream: No-Upstream-Ver)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edit-utils ver: 2.36 upstream: No-Upstream-Ver)
(ediff ver: 1.66 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ecb ver: 1.22 upstream: 2.31)
(dired ver: 1.17 upstream: 7.13)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(auctex ver: 1.46 upstream: 11.55)
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 vhdl-mode cus-face
regexp-opt hippie-exp compile assoc efs-cu xemacs-devel-autoloads
xemacs-base-autoloads vhdl-autoloads vc-autoloads time-autoloads
text-modes-autoloads texinfo-autoloads speedbar-autoloads
sounds-wav-autoloads sh-script-autoloads semantic-autoloads
python-modes-autoloads prog-modes-autoloads perl-modes-autoloads
pc-autoloads os-utils-autoloads net-utils-autoloads mail-lib-autoloads
fsf-compat-autoloads eieio-autoloads efs-autoloads
edit-utils-autoloads ediff-autoloads edebug-autoloads ecb-autoloads
dired-autoloads debug-autoloads cc-mode-autoloads calc-autoloads
c-support-autoloads auctex-autoloads lisp-autoloads loadhist auto-show
fontl-hooks code-cmds gutter-items menubar-items x-menubar dragdrop
mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page
buff-menu lib-complete help-nomule cus-file derived frame text-props
obsolete cus-start custom widget cl-extra mini-cl cl cl-19 packages
backquote very-early-lisp file-coding mswindows-scrollbars mswindows
toolbar native-sound scrollbar network-streams subprocesses
menu-accelerator-support menubar md5 xemacs gutter tiff png gif jpeg
xpm xbm lisp-float-type windows-nt dragdrop-api dialog devices
window-system base64)
Recent keystrokes:
-----------------
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user misc-user misc-user misc-user misc-user
misc-user misc-user
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
VHDL Mode 3.33.12. See menu for documentation and release notes.
Loading vhdl-mode...done
Loading cus-face...done
Loading cus-face...
Loading regexp-opt...done
Loading regexp-opt...
Loading vhdl-mode...
Loading efs-cu...done
Loading efs-cu...
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Bug tracker: next steps
17 years, 3 months
Hans de Graaff
So looking through all the feedback it seems to be that only roundup and
bugzilla may qualify for the set of requirements that have been thrown
around, and from those roundup seems to be the most favored one.
So I think the next step is to get a test installation going and see if
roundup can be configured in a way that will satisfy most of the
requirements. I'll see if I can get something going as a temporary
installation that we can play with.
In the meantime it probably makes sense to start looking for a place to
host the tracker. Adrian, can you pick this up?
Kind regards,
Hans
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Which packages are externally maintained ?
17 years, 3 months
Didier Verna
Hi there,
I have a bunch of Custom-related fixes for several packages, but I'm not
sure which ones are externally maintained and/or if it's OK to commit
directly into our own package tree.
Norbert, what's the preferred way to go ? Here are the packages involved
in my changes:
xemacs-packages/dired
xemacs-packages/erc
xemacs-packages/eshell
xemacs-packages/hm--html-menus
xemacs-packages/liece
xemacs-packages/riece
xemacs-packages/vm
xemacs-packages/w3
xemacs-packages/xwem
Thanks !
--
MySpace: http://www.myspace.com/didierverna
Didier Verna, didier(a)lrde.epita.fr, http://www.lrde.epita.fr/~didier
EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85
94276 Le Kremlin-Bicêtre, France Fax.+33 (1) 53 14 59 22 didier(a)xemacs.org
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
[BUG ?] Annoying owner / permission on some lisp files
17 years, 3 months
Didier Verna
Hi !
I've just noticed this in both 21.4 and 21.5: I usually compile as user
'didier' on my machine, and run XEmacs in place. Recently, I also
installed XEmacs in /usr/local, hence I did a make install as root.
Now, after "make install" completes, I notice that all the
auto-autoloads files, along with finder-inf in the *source* tree have
their owner changed to 'root'. This is very annoying because it prevents
me from recompiling the source once more.
--
MySpace: http://www.myspace.com/didierverna
Didier Verna, didier(a)lrde.epita.fr, http://www.lrde.epita.fr/~didier
EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85
94276 Le Kremlin-Bicêtre, France Fax.+33 (1) 53 14 59 22 didier(a)xemacs.org
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
XEmacs Packages have been pre-released (2007-09-07-11)
17 years, 3 months
Norbert Koch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey there everyone.
I have just added the following packages to the 'Pre-Releases'
directory:
New Packages in Pre-Release:
===========================
vm-7.24-pkg.tar.gz upstream version: 7.17
Previously Announced Packages Still in Pre-Release:
==================================================
apel-1.33-pkg.tar.gz upstream version: 10.6
auctex-1.48-pkg.tar.gz upstream version: 11.55
calendar-1.33-pkg.tar.gz upstream version: none
easypg-1.01-pkg.tar.gz upstream version: 0.0.15
ediff-1.71-pkg.tar.gz upstream version: 2.75
edit-utils-2.38-pkg.tar.gz upstream version: none
edt-1.14-pkg.tar.gz upstream version: none
eshell-1.12-pkg.tar.gz upstream version: 2.4.1
general-docs-1.05-pkg.tar.gz upstream version: none
guided-tour-0.51-pkg.tar.gz upstream version: none
hm--html-menus-1.24-pkg.tar.gz upstream version: 5.9
hyperbole-1.17-pkg.tar.gz upstream version: 5.0
igrep-1.15-pkg.tar.gz upstream version: 2.111
leim-1.25-pkg.tar.gz upstream version: none
locale-1.27-pkg.tar.gz upstream version: none
mule-base-1.52-pkg.tar.gz upstream version: none
mule-ucs-1.15-pkg.tar.gz upstream version: 0.84
net-utils-1.53-pkg.tar.gz upstream version: N/A
oo-browser-1.05-pkg.tar.gz upstream version: 4.08
perl-modes-1.10-pkg.tar.gz upstream version: none
prog-modes-2.14-pkg.tar.gz upstream version: none
psgml-1.45-pkg.tar.gz upstream version: 1.3.2
python-modes-1.09-pkg.tar.gz upstream version: none
scheme-1.16-pkg.tar.gz upstream version: none
text-modes-1.95-pkg.tar.gz upstream version: none
tramp-1.39-pkg.tar.gz upstream version: 2.0.56
vc-1.42-pkg.tar.gz upstream version: none
viper-1.58-pkg.tar.gz upstream version: 3.09
w3-1.34-pkg.tar.gz upstream version: 4.0pre47
xemacs-base-2.11-pkg.tar.gz upstream version: none
Detailed Changes:
================
- ------- ChangeLog Entries from xemacs-packages/vm/ChangeLog -------
2007-09-07 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 7.24 released.
2007-09-07 Mike Sperber <mike(a)xemacs.org>
* tapestry.el (tapestry-set-window-map): Use
`frame-reduce-to-one-window' instead of `delete-other-windows' to
keep the point from moving inadvertently.
Installing These:
================
Manually:
- --------
1) Download the packages that you want to install from:
/ftp.xemacs.org:/pub/xemacs/beta/experimental/packages/
2) Unpack them to: [1]
/usr/local/lib/xemacs/xemacs-packages/
3) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.[245].x):
- ----------------------------------------------
1) Tools -> Packages -> Add Download Site -> Pre-Releases
2) Tools -> Packages -> List and Install
3) Select the packages you wish to install (there are brief
instructions at the bottom of the packages buffer).
4) Packages -> Install/Remove Selected
5) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.1.14):
- -------------------------------------------
1) Options -> Manage Packages -> Add Download Site -> Pre-Releases
2) Options -> Manage Packages -> List and Install
3 - 5) As per XEmacs 21.[245].x.
norbert - XEmacs Package Release Manager.
Footnotes:
[1] Note: Mule packages should be installed into:
/usr/local/lib/xemacs/mule-packages/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG4Rxlgu3ywdHdhM0RApJcAKDGvWh0Dq6kLTcQEHOyhrY291VIYACePysm
Bwl4z3t//z35tiuo4yGMNd4=
=Xl9t
-----END PGP SIGNATURE-----
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
XEmacs Packages have been pre-released (2007-09-06-23)
17 years, 3 months
Norbert Koch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey there everyone.
I have just added the following packages to the 'Pre-Releases'
directory:
New Packages in Pre-Release:
===========================
tramp-1.39-pkg.tar.gz upstream version: 2.0.56
Previously Announced Packages Still in Pre-Release:
==================================================
apel-1.33-pkg.tar.gz upstream version: 10.6
auctex-1.48-pkg.tar.gz upstream version: 11.55
calendar-1.33-pkg.tar.gz upstream version: none
easypg-1.01-pkg.tar.gz upstream version: 0.0.15
ediff-1.71-pkg.tar.gz upstream version: 2.75
edit-utils-2.38-pkg.tar.gz upstream version: none
edt-1.14-pkg.tar.gz upstream version: none
eshell-1.12-pkg.tar.gz upstream version: 2.4.1
general-docs-1.05-pkg.tar.gz upstream version: none
guided-tour-0.51-pkg.tar.gz upstream version: none
hm--html-menus-1.24-pkg.tar.gz upstream version: 5.9
hyperbole-1.17-pkg.tar.gz upstream version: 5.0
igrep-1.15-pkg.tar.gz upstream version: 2.111
leim-1.25-pkg.tar.gz upstream version: none
locale-1.27-pkg.tar.gz upstream version: none
mule-base-1.52-pkg.tar.gz upstream version: none
mule-ucs-1.15-pkg.tar.gz upstream version: 0.84
net-utils-1.53-pkg.tar.gz upstream version: N/A
oo-browser-1.05-pkg.tar.gz upstream version: 4.08
perl-modes-1.10-pkg.tar.gz upstream version: none
prog-modes-2.14-pkg.tar.gz upstream version: none
psgml-1.45-pkg.tar.gz upstream version: 1.3.2
python-modes-1.09-pkg.tar.gz upstream version: none
scheme-1.16-pkg.tar.gz upstream version: none
text-modes-1.95-pkg.tar.gz upstream version: none
vc-1.42-pkg.tar.gz upstream version: none
viper-1.58-pkg.tar.gz upstream version: 3.09
vm-7.23-pkg.tar.gz upstream version: 7.17
w3-1.34-pkg.tar.gz upstream version: 4.0pre47
xemacs-base-2.11-pkg.tar.gz upstream version: none
Detailed Changes:
================
- ------- ChangeLog Entries from xemacs-packages/tramp/ChangeLog -------
2007-09-06 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 1.39 released.
2007-09-06 Ville Skyttä <scop(a)xemacs.org>
* lisp/tramp-vc.el (vc-user-login-name): Use `vc-find-version'
instead of `process-file' to check whether we have a new enough
vc that doesn't need the defadvice.
Installing These:
================
Manually:
- --------
1) Download the packages that you want to install from:
/ftp.xemacs.org:/pub/xemacs/beta/experimental/packages/
2) Unpack them to: [1]
/usr/local/lib/xemacs/xemacs-packages/
3) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.[245].x):
- ----------------------------------------------
1) Tools -> Packages -> Add Download Site -> Pre-Releases
2) Tools -> Packages -> List and Install
3) Select the packages you wish to install (there are brief
instructions at the bottom of the packages buffer).
4) Packages -> Install/Remove Selected
5) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.1.14):
- -------------------------------------------
1) Options -> Manage Packages -> Add Download Site -> Pre-Releases
2) Options -> Manage Packages -> List and Install
3 - 5) As per XEmacs 21.[245].x.
norbert - XEmacs Package Release Manager.
Footnotes:
[1] Note: Mule packages should be installed into:
/usr/local/lib/xemacs/mule-packages/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG4Gw2gu3ywdHdhM0RAj4uAJ9dFJW2PD8bsoRoRcP1kP4zXKMzsQCfdsoM
bpL6yjdBRvGpym/vRt9HRrM=
=MrWC
-----END PGP SIGNATURE-----
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta