Mail Archives: cygwin/2009/10/08/11:43:44
On Thu, Oct 8, 2009 at 5:13 AM, Stephen J. Turnbull <stephen AT xemacs DOT org> wr=
ote:
> Vin Shelton writes:
>
> =A0> XEmacs people - here is the line of code implicated in the crash:
> =A0>
> =A0> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0switch (XCHARSET_REP_BYTES (charset))
>
> Can you do a pobj on charset in the debugger and find out what it
> actually is?
sputter... you expect me to do actual work on this! :-) Thanks for
the nudge, Stephen. :-)
Here's what I found. charset is, as we suspected, bogus:
Fatal error: assertion failed, file
/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/unicode.c, line
2358, RECORD_TYPEP (obj, lrecord_type_charset)
Program received signal SIGSEGV, Segmentation fault.
assert_failed (
file=3D0xa1c65b
"/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/unicode.c",
line=3D2358, expr=3D0xa1c795 "RECORD_TYPEP (obj, lrecord_type_charset)")
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/emacs.c:4036
4036 * ((int *) 0) =3D 666;
(gdb) pobj charset
Cannot access memory at address 0x4
and here's the stack backtrace.
(gdb) bt
#0 assert_failed (
file=3D0xa1c65b
"/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/unicode.c",
line=3D2358, expr=3D0xa1c795 "RECORD_TYPEP (obj, lrecord_type_charset)")
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/emacs.c:4036
#1 0x005f05de in unicode_convert (str=3D0x176ea48,
src=3D0x148d0e3
"=EF\202\201=D0\201=D0\201=D0\201=EF\203\22002ABFxi-string)g)=C0=E2w\001\20=
0=D1H\001=C2\200\t",
dst=3D0x14e8b60, n=3D17)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/charset.h:247
#2 0x00495f18 in coding_writer (stream=3D0x176ea00,
data=3D0x148d0c0
"c;C:\\cygwin\\cygwin\\tmp\\s360339.aoa\\=EF\202\201=D0\201=D0\201=D0\201=
=EF\203\22002ABFxi-string)g)=C0=E2w\001\200=D1H\001=C2\200\t",
size=3D53)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/file-coding.c:19=
26
#3 0x005151bc in Lstream_really_write (lstr=3D0x176ea00,
data=3D0x148d0c0
"c;C:\\cygwin\\cygwin\\tmp\\s360339.aoa\\=EF\202\201=D0\201=D0\201=D0\201=
=EF\203\22002ABFxi-string)g)=C0=E2w\001\200=D1H\001=C2\200\t",
size=3D53)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/lstream.c:380
#4 0x00515295 in Lstream_flush_out (lstr=3D0x176ea00)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/lstream.c:419
#5 0x00515547 in Lstream_flush (lstr=3D0x176ea00)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/lstream.c:443
#6 0x00515588 in Lstream_close (lstr=3D0x176ea00)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/lstream.c:799
#7 0x005dc847 in dfc_convert_to_external_format (source_type=3DDFC_TYPE_DA=
TA,
source=3D0x21e410, coding_system=3D8781988, sink_type=3DDFC_TYPE_DATA,
sink=3D0x21e408)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/text.c:4223
#8 0x0056cd68 in readlink_or_correct_case (name=3D<value optimized out>,
buf=3D0x21e464
"/tmp/s360339.aoa/\201=EF\217=A3\217=B0\201=EF\217=A3\217=B0\201=EF\217=A3\=
217=B0\201=EF\217=A3\217=B002ABFx",
size=3D16383, links_only=3D0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/realpath.c:176
#9 0x0056d4d7 in qxe_realpath (path=3D0x22248c "",
resolved_path=3D0x22651c
"c:/cygwin/tmp/s360339.aoa/\201=D0\201=D0\201=D0\201=D002ABFx",
links_only=3D0) at
/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/realpath.c:348
#10 0x004a7752 in Ffile_truename (filename=3D23126500, default_=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/fileio.c:1404
#11 0x0045e379 in Feval (form=3D22025348)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3747
#12 0x0045e253 in Feval (form=3D22025456)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3734
#13 0x00460933 in For (args=3D26558792)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:846
#14 0x0045e1f9 in Feval (form=3D26558756)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#15 0x0045f0ba in Fprogn (args=3D26558816)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
---Type <return> to continue, or q <return> to quit---
#16 0x0045e1f9 in Feval (form=3D26558840)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#17 0x0045e7d9 in Feval (form=3D26561716)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3832
#18 0x0045f0ba in Fprogn (args=3D26561848)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#19 0x0045e1f9 in Feval (form=3D26561812)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#20 0x0045b363 in condition_case_1 (handlers=3D26558636, bfun=3D0x45dce2 <F=
eval>,
barg=3D26561812, hfun=3D0x461c28 <run_condition_case_handlers>, harg=3D=
23252292)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2014
#21 0x004610f9 in condition_case_3 (bodyform=3D26561812, var=3D23252292,
handlers=3D26558636)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2096
#22 0x004611e0 in Fcondition_case (args=3D26558648)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2155
#23 0x0045e1f9 in Feval (form=3D26558612)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#24 0x0045e7d9 in Feval (form=3D22025360)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3832
#25 0x0045f0ba in Fprogn (args=3D26574400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#26 0x0045e1f9 in Feval (form=3D26574364)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#27 0x0045e1f9 in Feval (form=3D26574448)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#28 0x0045e7d9 in Feval (form=3D22024760)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3832
#29 0x0045f0ba in Fprogn (args=3D22029972)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#30 0x00461780 in FletX (args=3D22028760)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1109
#31 0x0045e1f9 in Feval (form=3D22030700)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#32 0x0045f0ba in Fprogn (args=3D22708804)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#33 0x0045e1f9 in Feval (form=3D22708816)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#34 0x0045e1f9 in Feval (form=3D22708876)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#35 0x0045e7d9 in Feval (form=3D22215848)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3832
#36 0x0045f0ba in Fprogn (args=3D21821696)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#37 0x0045f27f in funcall_lambda (fun=3D21822008, nargs=3D0, args=3D0x22b7e=
4)
---Type <return> to continue, or q <return> to quit---
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4364
#38 0x0045f6c3 in Ffuncall (nargs=3D1, args=3D0x22b7e0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4056
#39 0x0045e542 in Feval (form=3D23311312)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3774
#40 0x0045b363 in condition_case_1 (handlers=3D23306940, bfun=3D0x45dce2 <F=
eval>,
barg=3D23311312, hfun=3D0x461c28 <run_condition_case_handlers>, harg=3D=
23252292)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2014
#41 0x004610f9 in condition_case_3 (bodyform=3D23311312, var=3D23252292,
handlers=3D23306940)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2096
#42 0x004611e0 in Fcondition_case (args=3D23311264)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2155
#43 0x0045e1f9 in Feval (form=3D23311228)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#44 0x0045f0ba in Fprogn (args=3D24174704)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#45 0x0056153f in Fwith_output_to_temp_buffer (args=3D24192600)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/print.c:833
#46 0x0045e1f9 in Feval (form=3D24192984)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#47 0x0045f0ba in Fprogn (args=3D23286628)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#48 0x00461563 in Flet (args=3D24192636)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1180
#49 0x0045e1f9 in Feval (form=3D24211200)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#50 0x0045f0ba in Fprogn (args=3D24211032)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#51 0x0045f27f in funcall_lambda (fun=3D23286712, nargs=3D2, args=3D0x22bf7=
0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4364
#52 0x0045e981 in Feval (form=3D24238052)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3859
#53 0x0045f0ba in Fprogn (args=3D24238040)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#54 0x00461563 in Flet (args=3D24323552)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1180
#55 0x0045e1f9 in Feval (form=3D24261668)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3718
#56 0x0045f0ba in Fprogn (args=3D24291872)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1002
#57 0x0045f27f in funcall_lambda (fun=3D24237968, nargs=3D1, args=3D0x22c3b=
4)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4364
#58 0x0045f6c3 in Ffuncall (nargs=3D2, args=3D0x22c3b0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4056
---Type <return> to continue, or q <return> to quit---
#59 0x0045dabd in Fapply (nargs=3D2, args=3D0x22c3b0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4256
#60 0x0045dcd1 in apply1 (fn=3D24237968, arg=3D22440000)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:5233
#61 0x0041d00c in Fcall_interactively (function=3D24540868, record_flag=3D6=
707608,
keys=3D6708400) at
/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/callint.c:461
#62 0x00461b86 in Fcommand_execute (cmd=3D24540868, record_flag=3D6707608,
keys=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3209
#63 0x0045f522 in Ffuncall (nargs=3D3, args=3D0x22c584)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4001
#64 0x0041a6b5 in execute_optimized_program (
program=3D0x1753210
"\r\035=C6\r=C7a=AB\004=C8=AA$\r=C9k=AB\004=CA=AA\034\r=A8=AB\a=CB=CC\r\"=
=AA\022\r:=AB\r\r@=A8=AB\b=CB=CC\r@\"=AA\002=CD!\024)\t=ABKt=ABH=CE\f!\f\03=
2\033=CF\f=D0\"\210\v=AD8\b=AC\023=D1
=D2 a=AB\a=D3 pa=AB\006=D4 \210=AA\004=D5
\210=D6=D7!=AD\033=D8=D9=CB\vA=AB\004=DA=AA\002=DB\n=DC\v!#\"\210=D6\016\03=
6!\210=DD=D9!*\207=CF\f=D0\"\207",
stack_depth=3D7, constants_data=3D0x7ff704)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/bytecode.c:898
#65 0x0045cdd2 in funcall_compiled_function (fun=3D8621900, nargs=3D1,
args=3D0x22c704)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3588
#66 0x0045f685 in Ffuncall (nargs=3D2, args=3D0x22c700)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:4046
#67 0x0041ddd2 in Fcall_interactively (function=3D6564064, record_flag=3D67=
08400,
keys=3D6708400) at
/usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/callint.c:996
#68 0x00461b86 in Fcommand_execute (cmd=3D6564064, record_flag=3D6708400,
keys=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:3209
#69 0x00470090 in execute_command_event (command_builder=3D0x1773dc0,
event=3D24939732)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/event-stream.c:4=
288
#70 0x0047388b in Fdispatch_event (event=3D24939732)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/event-stream.c:4=
640
#71 0x0042906f in Fcommand_loop_1 ()
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/cmdloop.c:600
#72 0x004290c2 in command_loop_1 (unused_dummy=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/cmdloop.c:505
#73 0x0045b363 in condition_case_1 (handlers=3D6702880, bfun=3D0x429086
<command_loop_1>,
barg=3D6708400, hfun=3D0x429256 <cmd_error>, harg=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:2014
#74 0x0042921d in command_loop_2 (unused_dummy=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/cmdloop.c:262
#75 0x0045a5db in internal_catch (tag=3D6430456, func=3D0x4291dd <command_l=
oop_2>,
arg=3D6708400, threw=3D0x0, thrown_tag=3D0x0, backtrace_before_throw=3D=
0x0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/eval.c:1602
#76 0x0042945c in initial_command_loop (load_me=3D6708400)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/cmdloop.c:313
#77 0x00456b22 in xemacs_21_5_b29_i686_pc_cygwin (argc=3D2, argv=3D0x148db4=
0,
unused_envp=3D0x0, restart=3D0)
---Type <return> to continue, or q <return> to quit---
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/emacs.c:2717
#78 0x00456be2 in main (argc=3D2, argv=3D0x148db40, unused_envp=3D0x0)
at /usr/local/src/xemacs-21.5-test-2009-10-07-mule/src/emacs.c:3226
I'm afraid that my knowledge of the unicode world is at best zero, so
I will probably need more guidance to unearth more useful information.
- Vin
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -