* bug#1491: Same problem in 23.0.60
@ 2008-12-04 23:53 Lars Rasmusson
2008-12-05 3:48 ` richardeng
[not found] ` <handler.1491.B1491.12284348208436.ackinfo@emacsbugs.donarmstrong.com>
0 siblings, 2 replies; 3+ messages in thread
From: Lars Rasmusson @ 2008-12-04 23:53 UTC (permalink / raw)
To: 1491
Sorry, I still get the same error...
This is what I do:
$ uname -a
Darwin lmac.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3
11:31:44 PDT 2008; root:xnu-1228.7.58~1/RELEASE_PPC Power Macintosh
$ cd /tmp
$ cvs -d :pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
$ cd emacs
$ ./configure --without-gif
$ cd lib-src
$ make ebrowse
cp /tmp/emacs/lib-src/getopt_.h getopt.h-t
mv getopt.h-t getopt.h
gcc -c -DHAVE_CONFIG_H -I. -I../src -I/tmp/emacs/lib-src -I/tmp/emacs/
lib-src/../src -g -O2 -Wno-pointer-sign /tmp/emacs/lib-src/getopt.c
gcc -c -DHAVE_CONFIG_H -I. -I../src -I/tmp/emacs/lib-src -I/tmp/emacs/
lib-src/../src -g -O2 -Wno-pointer-sign /tmp/emacs/lib-src/getopt1.c
gcc -DHAVE_CONFIG_H -I. -I../src -I/tmp/emacs/lib-src -I/tmp/emacs/lib-
src/../src -g -O2 -Wno-pointer-sign -DVERSION="\"23.0.60\"" /tmp/
emacs/lib-src/ebrowse.c getopt.o getopt1.o -o ebrowse
$ ./ebrowse --version
ebrowse 23.0.60
Copyright (C) 2008 Free Software Foundation, Inc.
This program is distributed under the same terms as Emacs.
lmac:lib-src larsr$ cat > eb.h
struct a
{
};
$ ebrowse eb.h
Bus error
$
From GDB I found that it crashes like this:
(gdb) file ./ebrowse
(gdb) run eb.h
Starting program: /private/tmp/emacs/lib-src/ebrowse eb.h
Reading symbols for shared libraries ++. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00015fff
matching_regexp () at /tmp/emacs/lib-src/ebrowse.c:2039
2039 if (*p == '\n')
(gdb) bt
#0 matching_regexp () at /tmp/emacs/lib-src/ebrowse.c:2039
#1 0x00007fe8 in class_definition (containing=<value temporarily
unavailable, due to optimizations>, tag=321, flags=0, nested=0) at /
tmp/emacs/lib-src/ebrowse.c:3149
#2 0x00008498 in globals (start_flags=0) at /tmp/emacs/lib-src/
ebrowse.c:3521
#3 0x00008568 in yyparse () at /tmp/emacs/lib-src/ebrowse.c:3554
#4 0x000086b4 in process_file (file=<value temporarily unavailable,
due to optimizations>) at /tmp/emacs/lib-src/ebrowse.c:3741
#5 0x00009248 in main (argc=2, argv=0xbffff958) at /tmp/emacs/lib-src/
ebrowse.c:3946
(gdb)
Hope it is useful...
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#1491: Same problem in 23.0.60
2008-12-04 23:53 bug#1491: Same problem in 23.0.60 Lars Rasmusson
@ 2008-12-05 3:48 ` richardeng
[not found] ` <handler.1491.B1491.12284348208436.ackinfo@emacsbugs.donarmstrong.com>
1 sibling, 0 replies; 3+ messages in thread
From: richardeng @ 2008-12-05 3:48 UTC (permalink / raw)
To: Lars Rasmusson, 1491
$ uname -a
Linux debian 2.6.24-1-686 #1 SMP Thu May 8 02:16:39 UTC 2008 i686 GNU/Linux
$ cat > eb.h
struct a
{
};
$ ebrowse eb.h // no problem here, BROWSE file is generated. Maybe, ebrowse have some problem with '\r' in MacOS, you can change '\r' to '\n' and try again.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#1491: Info received (Same problem in 23.0.60)
[not found] ` <handler.1491.B1491.12284348208436.ackinfo@emacsbugs.donarmstrong.com>
@ 2008-12-06 7:00 ` Lars Rasmusson
0 siblings, 0 replies; 3+ messages in thread
From: Lars Rasmusson @ 2008-12-06 7:00 UTC (permalink / raw)
To: 1491
Isn't this a bug?
On line ebrowse.c:2037
for (--p; p >= inbuffer && *p != '\n'; --p)
;
I think it should be
for (--p; p > inbuffer && *p != '\n'; --p)
;
otherwise p may point to one character before inbuffer.
The backwards scanning is done correctly nine lines
further up, on ebrowse.c:2028
(OS X really has some neat features to prevent accessing
data from screwed up pointers! :-) )
/Lars
Btw, is it really ok to write as in ebrowse.c:1530 ?
/* Skip over white space. The `#' has been consumed already. */
while (WHITEP (GET (c)))
;
GET(c) will eat up one character of the input, no matter whether it is a
white space or not...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-06 7:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 23:53 bug#1491: Same problem in 23.0.60 Lars Rasmusson
2008-12-05 3:48 ` richardeng
[not found] ` <handler.1491.B1491.12284348208436.ackinfo@emacsbugs.donarmstrong.com>
2008-12-06 7:00 ` bug#1491: Info received (Same problem in 23.0.60) Lars Rasmusson
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).