* Emacs CVS on OSX: malloc error when installing cedet
@ 2004-07-06 10:31 Timothee BESSET
2004-07-06 15:03 ` YAMAMOTO Mitsuharu
2004-07-06 22:00 ` Richard Stallman
0 siblings, 2 replies; 4+ messages in thread
From: Timothee BESSET @ 2004-07-06 10:31 UTC (permalink / raw)
Cc: cedet-devel
Hello everyone
For several days now, the CVS version of Emacs built on OSX ( 10.3 )
fails to install cedet ( http://cedet.sf.net ) with the following
error:
/Applications/Emacs.app/Contents/MacOS/Emacs -batch --no-site-file -l
grammar-make-script -f semantic-grammar-batch-build-packages
semantic-grammar.wy
Loading semanticdb-file (source)...
Package `semantic-grammar-wy' is up to date.
*** malloc[12002]: error for object 0x28b2169: Pointer being
reallocated was not allocated
Fatal error (11)make[1]: *** [metagrammar] Segmentation fault
make: *** [semantic] Error 2
I can compile and install the CVS version of Emacs and cedet on a Linux
box with no problem. This crash is happening with both the latest
release of cedet and the CVS version. So I believe it's really an emacs
problem, specific to the OSX port.
Also to note that I was able to run Emacs on OSX with cedet about a
month ago. No error at the time.
Here is the configuration of my Emacs build:
Configured for `powerpc-apple-darwin7.4.0'.
Where should the build process find the source code?
/Users/timo/Build/emacs
What operating system and machine description files should Emacs use?
`s/darwin.h' and `m/powermac.h'
What compiler should emacs be built with? gcc
-I/sw/include -L/sw/lib -g -O2
Should Emacs use the GNU version of malloc? no
(The GNU allocators don't work with this system configuration.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? mac
What toolkit should Emacs use? none
Where do we find X Windows header files? NONE
Where do we find X Windows libraries? NONE
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? no
Does Emacs use -lungif? no
Does Emacs use -lpng? no
Does Emacs use X toolkit scroll bars? no
I hope the problem can be identified and fixed soon ..
TTimo
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs CVS on OSX: malloc error when installing cedet
2004-07-06 10:31 Emacs CVS on OSX: malloc error when installing cedet Timothee BESSET
@ 2004-07-06 15:03 ` YAMAMOTO Mitsuharu
2004-07-14 0:17 ` Richard Stallman
2004-07-06 22:00 ` Richard Stallman
1 sibling, 1 reply; 4+ messages in thread
From: YAMAMOTO Mitsuharu @ 2004-07-06 15:03 UTC (permalink / raw)
Cc: bug-gnu-emacs, cedet-devel, emacs-devel
>>>>> On Tue, 6 Jul 2004 12:31:14 +0200, Timothee BESSET <ttimo@idsoftware.com> said:
> I can compile and install the CVS version of Emacs and cedet on a
> Linux box with no problem. This crash is happening with both the
> latest release of cedet and the CVS version. So I believe it's
> really an emacs problem, specific to the OSX port.
It seems that the contents of `print_buffer', which is declared just
after `being_printed' in print.c, is corrupted by the following part
when print_depth == PRINT_CIRCLE.
/* Avoid infinite recursion for circular nested structure
in the case where Vprint_circle is nil. */
if (NILP (Vprint_circle))
{
for (i = 0; i < print_depth; i++)
if (EQ (obj, being_printed[i]))
return;
being_printed[print_depth] = obj;
}
I tried to move the following part to just before the above one, and I
could compile CEDET 1.0beta2b.
/* Give up if we go so deep that print_object will get an error. */
/* See similar code in print_object. */
if (print_depth >= PRINT_CIRCLE)
return;
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs CVS on OSX: malloc error when installing cedet
2004-07-06 10:31 Emacs CVS on OSX: malloc error when installing cedet Timothee BESSET
2004-07-06 15:03 ` YAMAMOTO Mitsuharu
@ 2004-07-06 22:00 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2004-07-06 22:00 UTC (permalink / raw)
Cc: emacs-devel, bug-gnu-emacs, cedet-devel
I can't debug a problem that only occurs on MacOS,
but I do suggest that you try fetching Emacs sources as of 2 weeks
ago and see if they fail. You could binary search in time,
and eventually narrow it down to a specific change that causes
the problem. Then someone else might be able to intuit why.
By the way, when you're talking about a machine that runs the GNU
operating system with Linux as the kernel, could you please take an
extra second to call it a "GNU/Linux box" rather than a "Linux box"?
Thank you.
See http://www.gnu.org/gnu/gnu-linux-faq.html for more
explanation.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-14 0:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06 10:31 Emacs CVS on OSX: malloc error when installing cedet Timothee BESSET
2004-07-06 15:03 ` YAMAMOTO Mitsuharu
2004-07-14 0:17 ` Richard Stallman
2004-07-06 22:00 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).