Jan Vroonhof writes:
giacomo boffi <giacomo.boffi(a)polimi.it> writes:
>
string-match("\\(^\\(RCS\\|CVS\\|SCCS\\)$\\)\\|\\(^\\(etc\\|info\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$\\)"
"etc")
> # bind (raw-entries reverse-dirs directory path exclude-regexp max-depth
directories)
> temacs had already dumped xemacs --- i have no c backtrace to
> show you, as make wipes clean the executable after the failure
Yes. This is very very annoying. I think you can use make fastdump
to produce a real executable.
What is you max stack size?. Crashes like this are often stack
related.
ok, done, she breaks as usual (look at the lisp backtrace)
########################################################################
% ulimit -s 16384 ; make fastdump
[...]
Lisp backtrace follows:
string-match("\\(^\\(RCS\\|CVS\\|SCCS\\)$\\)\\|\\(^\\(etc\\|info\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$\\)"
"etc")
# bind (raw-entries reverse-dirs directory path exclude-regexp max-depth directories)
paths-find-recursive-path(("/usr/local/lib/xemacs/xemacs-packages/") 1
"\\(^\\(RCS\\|CVS\\|SCCS\\)$\\)\\|\\(^\\(etc\\|info\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$\\)")
# bind (directories)
packages-find-packages-in-directories(("/usr/local/lib/xemacs/xemacs-packages/"))
# bind (name roots)
packages-find-packages-by-name(("/home/gb/src/xemacs/"
"/usr/local/") "xemacs-packages")
# bind (thunk a-time name)
#<compiled-function (name a-time thunk) "...(19)" [time a-time thunk
packages packages-find-packages-by-name roots name] 4>("xemacs-packages" late
#<compiled-function nil "...(2)" [t] 1>)
apply(#<compiled-function (name a-time thunk) "...(19)" [time a-time thunk
packages packages-find-packages-by-name roots name] 4> ("xemacs-packages"
late #<compiled-function nil "...(2)" [t] 1>))
# bind (consumer list)
packages-deconstruct(("xemacs-packages" late #<compiled-function nil
"...(2)" [t] 1>) #<compiled-function (name a-time thunk)
"...(19)" [time a-time thunk packages packages-find-packages-by-name roots name]
4>)
# bind (packages default time package-locations roots)
packages-find-packages-at-time(("/home/gb/src/xemacs/"
"/usr/local/") (("~/.xemacs/mule-packages" early
#<compiled-function nil "...(4)" ... 2>)
("~/.xemacs/xemacs-packages" early #<compiled-function nil "...(2)"
... 1>) ("site-packages" late #<compiled-function nil "...(2)"
... 1>) ("infodock-packages" late #<compiled-function nil
"...(4)" ... 2>) ("mule-packages" late #<compiled-function nil
"...(4)" ... 2>) ("xemacs-packages" late #<compiled-function nil
"...(2)" ... 1>)) late nil)
# bind (configure-last-packages configure-late-packages configure-early-packages)
#<compiled-function (configure-early-packages configure-late-packages
configure-last-packages) "...(22)" [packages-find-packages-at-time roots
package-locations early configure-early-packages late configure-late-packages last
configure-last-packages] 7>(nil nil nil)
apply(#<compiled-function (configure-early-packages configure-late-packages
configure-last-packages) "...(22)" [packages-find-packages-at-time roots
package-locations early configure-early-packages late configure-late-packages last
configure-last-packages] 7> (nil nil nil))
# bind (consumer list)
packages-deconstruct((nil nil nil) #<compiled-function (configure-early-packages
configure-late-packages configure-last-packages) "...(22)"
[packages-find-packages-at-time roots package-locations early configure-early-packages
late configure-late-packages last configure-last-packages] 7>)
# bind (envvar-value package-locations roots)
packages-find-packages(("/home/gb/src/xemacs/" "/usr/local/")
(("~/.xemacs/mule-packages" early #<compiled-function nil "...(4)"
... 2>) ("~/.xemacs/xemacs-packages" early #<compiled-function nil
"...(2)" ... 1>) ("site-packages" late #<compiled-function nil
"...(2)" ... 1>) ("infodock-packages" late #<compiled-function
nil "...(4)" ... 2>) ("mule-packages" late #<compiled-function
nil "...(4)" ... 2>) ("xemacs-packages" late #<compiled-function
nil "...(2)" ... 1>)))
# bind (debug-paths inhibit-site-lisp inhibit-early-packages user-init-directory roots)
startup-setup-paths(("/home/gb/src/xemacs/" "/usr/local/")
"~/.xemacs/" t t nil)
# bind (debug-paths)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
make: *** [fastdump] Segmentation fault (core dumped)
% ulimit -s
16384
%
########################################################################
but at least here we have the c backtrace
########################################################################
(gdb) where
#0 0x40306d41 in __kill () from /lib/libc.so.6
#1 0x80aa08b in fatal_error_signal (sig=11) at emacs.c:514
#2 0x40306c68 in __restore () at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#3 0x40342584 in __libc_realloc (oldmem=0x8242608, bytes=200) at malloc.c:3254
#4 0x81501c4 in regex_compile (
pattern=0x825e2e4
"\\(^\\(RCS\\|CVS\\|SCCS\\)$\\)\\|\\(^\\(etc\\|info\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$\\)",
size=74, syntax=262656, bufp=0x81dfbf0) at regex.c:2679
#5 0x8155d4c in sys_re_compile_pattern (
pattern=0x825e2e4
"\\(^\\(RCS\\|CVS\\|SCCS\\)$\\)\\|\\(^\\(etc\\|info\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$\\)",
length=74, bufp=0x81dfbf0) at regex.c:5962
#6 0x8156175 in compile_pattern (pattern={...}, regp=0x81e02f4, translate=0x823b5e4
"",
posix=0, errb=ERROR_ME) at search.c:142
#7 0x8156511 in string_match_1 (regexp={...}, string={...}, start={...}, buf=0x824d230,
posix=0) at search.c:386
#8 0x8159a75 in Fstring_match (regexp={...}, string={...}, start={...}, buffer={...})
at search.c:420
#9 0x80b11d1 in Ffuncall (nargs=3, args=0xbfffdb2c) at eval.c:3214
#10 0x808b5df in execute_optimized_program (
program=0x826b5d0
"À\031\n«cÃÄ\n@!!\035Æ\r!«P\016\aÈk?\006É\rÀÊ#À\036\013\211\036\f«\035Í\016\016\016\f@\"¬\fÄ\016\f@\r\"\016\013B\026\013\016\fA\211\026\f¬åÏÐ\016\013!\016\a§«\006\016\aSª\003\016\a\016\016#\036\021\t\rC¤\016\021¤\021+)\nA\211\022¬\237\t)\207&\b!",
stack_depth=5, constants_data=0x8256148) at bytecode.c:747
#11 0x808b248 in funcall_compiled_function (fun={...}, nargs=3, args=0xbfffdd54)
at bytecode.c:516
#12 0x80b1346 in Ffuncall (nargs=4, args=0xbfffdd50) at eval.c:3249
#13 0x808b5df in execute_optimized_program (program=0x826b5b0 "À\t\n\013#\207",
stack_depth=4, constants_data=0x8256260) at bytecode.c:747
#14 0x808b248 in funcall_compiled_function (fun={...}, nargs=1, args=0xbfffdf74)
at bytecode.c:516
#15 0x80b1346 in Ffuncall (nargs=2, args=0xbfffdf70) at eval.c:3249
#16 0x808b5df in execute_optimized_program (
program=0x826b728 "ÀÁ\n!«\020ÃÄ\n!!«\tÅÄ\n!!Cª\006Æ\016\a\n\"!\207!",
stack_depth=4,
constants_data=0x82562e8) at bytecode.c:747
#17 0x808b248 in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffe198)
at bytecode.c:516
#18 0x80b1346 in Ffuncall (nargs=3, args=0xbfffe194) at eval.c:3249
#19 0x808b5df in execute_optimized_program (
program=0x826b6d0 "\b\ta\016\n
\n\013Ä\r\016\006\"¤\211\023\207\b\031",
stack_depth=4, constants_data=0x8256320) at bytecode.c:747
#20 0x808b248 in funcall_compiled_function (fun={...}, nargs=3, args=0xbfffe3b0)
at bytecode.c:516
#21 0x80b1346 in Ffuncall (nargs=4, args=0xbfffe3ac) at eval.c:3249
#22 0x80b1ab1 in Fapply (nargs=2, args=0xbfffe4fc) at eval.c:3484
#23 0x80b12fd in Ffuncall (nargs=3, args=0xbfffe4f8) at eval.c:3235
#24 0x808b5df in execute_optimized_program (program=0x826b650
"À\t\n\"\207",
stack_depth=3, constants_data=0x82629a8) at bytecode.c:747
#25 0x808b248 in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffe718)
at bytecode.c:516
#26 0x80b1346 in Ffuncall (nargs=3, args=0xbfffe714) at eval.c:3249
#27 0x808b5df in execute_optimized_program (
program=0x826b6a0
"\b®\024Á\032\013«\rÄ\013@Å\"\210\013A\211\023¬õ\n)\207\b",
stack_depth=4, constants_data=0x8256350) at bytecode.c:747
#28 0x808b248 in funcall_compiled_function (fun={...}, nargs=4, args=0xbfffe93c)
at bytecode.c:516
#29 0x80b1346 in Ffuncall (nargs=5, args=0xbfffe938) at eval.c:3249
#30 0x808b5df in execute_optimized_program (
program=0x826b670 "À\t\nÃ\f$À\t\nÅ\016\006$À\t\nÇ\016\b$E\207
\b\f\204&\b1",
stack_depth=7, constants_data=0x8256380) at bytecode.c:747
#31 0x808b248 in funcall_compiled_function (fun={...}, nargs=3, args=0xbfffeb60)
at bytecode.c:516
#32 0x80b1346 in Ffuncall (nargs=4, args=0xbfffeb5c) at eval.c:3249
#33 0x80b1ab1 in Fapply (nargs=2, args=0xbfffecac) at eval.c:3484
#34 0x80b12fd in Ffuncall (nargs=3, args=0xbfffeca8) at eval.c:3235
#35 0x808b5df in execute_optimized_program (program=0x826b650
"À\t\n\"\207",
stack_depth=3, constants_data=0x82629a8) at bytecode.c:747
#36 0x808b248 in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffeec8)
at bytecode.c:516
#37 0x80b1346 in Ffuncall (nargs=3, args=0xbfffeec4) at eval.c:3249
#38 0x808b5df in execute_optimized_program (
program=0x826b500
"ÀÁ!\211\032«\bÃÄ\n!!ª\bÅÃ\016\006!Ç\")\207\bl/&\bA",
stack_depth=4, constants_data=0x82563b8) at bytecode.c:747
#39 0x808b248 in funcall_compiled_function (fun={...}, nargs=2, args=0xbffff0f0)
at bytecode.c:516
#40 0x80b1346 in Ffuncall (nargs=3, args=0xbffff0ec) at eval.c:3249
#41 0x808b5df in execute_optimized_program (
program=0x8405580
"ÀÁÂ\013Ä\r!\"\"\210Æ\016\a!\026\bÆ\016\t!\026\nÆ\016\013!\026\f\016\r«+ÎÏÐ\016\021\"Ò\"\210ÎÏÓ\016\a\016\b#Ò\"\210ÎÏÔ\016\t\016\n#Ò\"\210ÎÏÕ\016\013\016\f#Ò\"\210Ö\013!\026\027\016\r«\nÎÏØ\016\027\"Ò\"\210\016\031?\004Ú\013!\026\e\016\r«\016\016\031¬\nÎÏÜ\016\e\"Ò\"\210Ý\013\016\b\016\n\016\f\016\027\016\e&\006\026\036ß\013\016\a\016\t\016\013$\026
\016\r«\nÎÏá\016
\"Ò\"\210â\013!\026#\016\r«\nÎÏä\016#\"Ò\"\210å\013\016#\016\a\016\t\016\013%\026&\016\r«\nÎÏç\016&\""...,
stack_depth=7, constants_data=0x8355d58)
at bytecode.c:747
#42 0x808b248 in funcall_compiled_function (fun={...}, nargs=5, args=0xbffff314)
at bytecode.c:516
#43 0x80b1346 in Ffuncall (nargs=6, args=0xbffff310) at eval.c:3249
#44 0x808b5df in execute_optimized_program (
program=0x8405400 "\b«\005ÁÂ!\207Ã\020Ä
\211\035«\030\rG\016\006GW«\020Ç\016\006!Ç\r!k-«\006È\r!\026\006)É\016\006!\026\006Ê
\210Ë
\210\016\f®\aÍÎ!\002Ã\036\fÏ\016\020\016\021\"\026\022\016\f«\nÓÔÕ\016\022\"Ö\"\210\016\022¬\006×
\210ª\016Ø\016\022\016\031\016\032\016\e\016\f%\210Ü
\210)\016\035¬\022\016\036«\016ßàá\016\"!\016\036\"ãÃ#\210\016\035¬\024\016\032¬\006ä\016%!\210ä\016&!\210ä\016'!\210è\216é
)\207", stack_depth=7,
constants_data=0x834af10) at bytecode.c:747
#45 0x808b248 in funcall_compiled_function (fun={...}, nargs=0, args=0xbffff484)
at bytecode.c:516
#46 0x80b0d37 in Feval (form={...}) at eval.c:3073
#47 0x80b5d41 in condition_case_1 (handlers={...}, bfun=0x80b0290 <Feval>,
barg={...},
hfun=0x809405c <cmd_error>, harg={...}) at eval.c:1640
#48 0x8094101 in top_level_1 (dummy={...}) at cmdloop.c:206
#49 0x80b5be2 in internal_catch (tag={...}, func=0x80940cc <top_level_1>, arg={...},
threw=0x0) at eval.c:1306
#50 0x8093932 in initial_command_loop (load_me={...}) at cmdloop.c:285
#51 0x80aae5f in xemacs_21_2_b33_i586_pc_linux () at emacs.c:2147
#52 0x80aca7c in Fnoninteractive () at emacs.c:2576
#53 0x403009cb in __libc_start_main (main=0x80ac9dc <main>, argc=5, argv=0xbffff944,
init=0x807b9a8 <_init>, fini=0x81a5c18 <_fini>, rtld_fini=0x4000ae60
<_dl_fini>,
stack_end=0xbffff93c) at ../sysdeps/generic/libc-start.c:92
(gdb)
########################################################################