unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003)
@ 2009-03-09  4:38 dhruva
  2009-03-09 22:32 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: dhruva @ 2009-03-09  4:38 UTC (permalink / raw)
  To: emacs-devel

Hello,
 I am trying to build emacs from HEAD on WXP using MSVC VC 2003 compiler. I get a crash. The same works if built using GCC (MinGW) tool set.
The following command causes the crash (executed from 'nt' folder):
"E:\sandbox\build\emacs\leim/../src/obj-spd/i386/emacs.exe" -batch --no-init-file --no-site-file --multibyte  -l E:/sandbox/build/emacs/leim/../lisp/international/quail  -f batch-byte-compile ../leim/quail/quick-cns.el

-dhruva

--
This message was sent on behalf of dhruva@ymail.com at openSubscriber.com
http://opensubscriber.com/messages/emacs-devel@gnu.org/topic.html




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003)
  2009-03-09  4:38 Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003) dhruva
@ 2009-03-09 22:32 ` Eli Zaretskii
  2009-03-10  5:13   ` dhruva
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2009-03-09 22:32 UTC (permalink / raw)
  To: dhruva; +Cc: emacs-devel

> Date: Mon, 9 Mar 2009 00:38:56 -0400
> From: dhruva@ymail.com
> 
> Hello,
>  I am trying to build emacs from HEAD on WXP using MSVC VC 2003 compiler. I get a crash. The same works if built using GCC (MinGW) tool set.
> The following command causes the crash (executed from 'nt' folder):
> "E:\sandbox\build\emacs\leim/../src/obj-spd/i386/emacs.exe" -batch --no-init-file --no-site-file --multibyte  -l E:/sandbox/build/emacs/leim/../lisp/international/quail  -f batch-byte-compile ../leim/quail/quick-cns.el

Where does it crash?  Can you show a backtrace?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003)
  2009-03-09 22:32 ` Eli Zaretskii
@ 2009-03-10  5:13   ` dhruva
  2009-03-10 19:51     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: dhruva @ 2009-03-10  5:13 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel


In file coding.c:
attrs = CODING_ID_ATTRS (coding->id);

where:
coding->id is 159

-backtrace-

temacs!decode_coding_gap(struct coding_system * coding = 0x0083f478, int chars = 51590, int bytes = 51590)+0xee
temacs!Finsert_file_contents(int filename = 1632419248, int visit = 556786688, int beg = 0, int end = 51590, int replace = 556786688)+0x1621
temacs!Ffuncall(int nargs = 1, int * args = 0x2131e138)+0x31d
temacs!Fbyte_code(int bytestr = 24947208, int vector = -2122536448, int maxdepth = 8)+0x35c
temacs!funcall_lambda(int fun = -2126496672, int nargs = 1, int * arg_vector = 0x0083f804)+0x20e
temacs!apply_lambda(int fun = -2126496672, int args = 556786688, int eval_flag = 1)+0x91
temacs!Feval(int form = -1586292112)+0x417
temacs!internal_lisp_condition_case(int var = 557333464, int bodyform = -1586292112, int handlers = -1586286536)+0x157
temacs!Fbyte_code(int bytestr = 22358632, int vector = -2125125024, int maxdepth = 3)+0x7d6
temacs!funcall_lambda(int fun = -2125123840, int nargs = 1, int * arg_vector = 0x0083f9f4)+0x20e
temacs!Ffuncall(int nargs = 1, int * args = 0x21924e88)+0x388
temacs!Fbyte_code(int bytestr = 26429960, int vector = -2121053696, int maxdepth = 5)+0x35c
temacs!funcall_lambda(int fun = -2125124480, int nargs = 0, int * arg_vector = 0x0083fac0)+0x20e
temacs!Ffuncall(int nargs = 0, int * args = 0x21408550)+0x388
temacs!Fbyte_code(int bytestr = 18689364, int vector = -2128794292, int maxdepth = 10)+0x35c
temacs!funcall_lambda(int fun = -2128794340, int nargs = 1, int * arg_vector = 0x0083fba0)+0x20e
temacs!Ffuncall(int nargs = 1, int * args = 0x213526a0)+0x388
temacs!Fbyte_code(int bytestr = 18675872, int vector = -2128807784, int maxdepth = 7)+0x35c
temacs!funcall_lambda(int fun = -2128807824, int nargs = 0, int * arg_vector = 0x0083fc74)+0x20e
temacs!Ffuncall(int nargs = 0, int * args = 0x214230f0)+0x388
temacs!Fbyte_code(int bytestr = 18672552, int vector = -2128811104, int maxdepth = 6)+0x35c
temacs!funcall_lambda(int fun = -2128811144, int nargs = 0, int * arg_vector = 0x0083fcfc)+0x20e
temacs!apply_lambda(int fun = -2128811144, int args = 556786688, int eval_flag = 1)+0x91
temacs!Feval(int form = -1590016640)+0x417
temacs!top_level_2(void)+0xb
temacs!internal_condition_case(<function> * bfun = 0x0105a9e2, int handlers = 556903616, <function> * hfun = 0x01061c85)+0xae
temacs!top_level_1(void)+0x22
temacs!internal_catch(int tag = 556895640, <function> * func = 0x01061d61, int arg = 556786688)+0x84
temacs!command_loop(void)+0x28
temacs!recursive_edit_1(void)+0x63




----- Original Message ----
> From: Eli Zaretskii <eliz@gnu.org>
> To: dhruva@ymail.com
> Cc: emacs-devel@gnu.org
> Sent: Tuesday, 10 March, 2009 4:02:19 AM
> Subject: Re: Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003)
> 
> > Date: Mon, 9 Mar 2009 00:38:56 -0400
> > From: dhruva@ymail.com
> > 
> > Hello,
> >  I am trying to build emacs from HEAD on WXP using MSVC VC 2003 compiler. I 
> get a crash. The same works if built using GCC (MinGW) tool set.
> > The following command causes the crash (executed from 'nt' folder):
> > "E:\sandbox\build\emacs\leim/../src/obj-spd/i386/emacs.exe" -batch 
> --no-init-file --no-site-file --multibyte  -l 
> E:/sandbox/build/emacs/leim/../lisp/international/quail  -f batch-byte-compile 
> ../leim/quail/quick-cns.el
> 
> Where does it crash?  Can you show a backtrace?

-dhruva



      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003)
  2009-03-10  5:13   ` dhruva
@ 2009-03-10 19:51     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2009-03-10 19:51 UTC (permalink / raw)
  To: dhruva; +Cc: emacs-devel

> Date: Mon, 9 Mar 2009 22:13:44 -0700 (PDT)
> From: dhruva <dhruva@ymail.com>
> Cc: emacs-devel@gnu.org
> 
> 
> In file coding.c:
> attrs = CODING_ID_ATTRS (coding->id);
> 
> where:
> coding->id is 159
> 
> -backtrace-
> 
> temacs!decode_coding_gap(struct coding_system * coding = 0x0083f478, int chars = 51590, int bytes = 51590)+0xee

So what, `coding' is an invalid pointer, and thus dereferencing it
bombs?  Or does something else crash inside the CODING_ID_ATTRS macro
(defined on coding.h)?

Is this an optimized build or not?  If it's optimized, can you try
with unoptimized one?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-10 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09  4:38 Crash in byte compiling leim/quail/quick-cns.el (WXP using MSVC 2003) dhruva
2009-03-09 22:32 ` Eli Zaretskii
2009-03-10  5:13   ` dhruva
2009-03-10 19:51     ` Eli Zaretskii

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).