Hi,
I'm compiling my BSD. M-x compile "cd /usr/src && ./build.sh -U -O /usr/obj
-T /usr/obj/tools -V NOCLEANDIR=yes -V MKOBJDIRS=no -V NOINCLUDES=yes
distribution" RET . About fifteen lines into it, a really long mkdep output
line gets printed to the compilation buffer. XEmacs crashes.
I'm not 100% sure that this wasn't triggered by compiling with optimisation;
I'll recompile tomorrow and find out. My compiler is normally GCC3, my
CFLAGS normally "-march=pentium4 -mfpmath=sse,387 -momit-leaf-frame-pointer
-O3 -ffast-math" .
Lisp backtrace follows:
re-search-forward("^[^:\n]+-[a-zA-Z][^:\n]+$" 25533 t)
(if (stringp matcher) (re-search-forward matcher end t) (funcall matcher end))
(and (< (point) end) (if (stringp matcher) (re-search-forward matcher end t) (funcall matcher end)))
(while (and (< ... end) (if ... ... ...)) (setq progress (+ ... ... 5)) (when (and loudly ...) (progress-feedback-with-label ... "Fontifying %s... (regexps)" progress bufname)) (setq old-progress progress) (setq highlights (cdr keyword)) (while highlights (if ... ... ...) (setq highlights ...)))
(while keywords (setq keyword (car keywords) matcher (car keyword)) (goto-char start) (while (and ... ...) (setq progress ...) (when ... ...) (setq old-progress progress) (setq highlights ...) (while highlights ... ...)) (setq iter (1+ iter)) (setq keywords (cdr keywords)))
# bind (highlights matcher keyword nkeywords iter old-progress progress bufname keywords case-fold-search)
(let* ((case-fold-search font-lock-keywords-case-fold-search) (keywords ...) (bufname ...) (progress 5) (old-progress 5) (iter 0) (nkeywords ...) keyword matcher highlights) (while keywords (setq keyword ... matcher ...) (goto-char start) (while ... ... ... ... ... ...) (setq iter ...) (setq keywords ...)))
# bind (loudly)
(let ((loudly ...)) (unless (eq ... t) (setq font-lock-keywords ...)) (let* (... ... ... ... ... ... ... keyword matcher highlights) (while keywords ... ... ... ... ...)) (if loudly (progress-feedback-with-label ... "Fontifying %s... " 100 ...)))
# bind (loudvar end start)
font-lock-fontify-keywords-region(3423 25533 nil)
(progn (if font-lock-syntax-table (set-syntax-table font-lock-syntax-table)) (font-lock-unfontify-region beg end) (when font-lock-syntactic-keywords (font-lock-fontify-syntactic-keywords-region beg end)) (unless font-lock-keywords-only (font-lock-fontify-syntactically-region beg end loudly)) (font-lock-fontify-keywords-region beg end loudly))
# (unwind-protect ...)
(unwind-protect (progn (if font-lock-syntax-table ...) (font-lock-unfontify-region beg end) (when font-lock-syntactic-keywords ...) (unless font-lock-keywords-only ...) (font-lock-fontify-keywords-region beg end loudly)) (set-syntax-table old-syntax-table) (and (not modified) (buffer-modified-p) (set-buffer-modified-p nil)))
# bind (buffer-file-truename buffer-file-name old-syntax-table inhibit-read-only buffer-undo-list modified)
(let ((modified ...) (buffer-undo-list t) (inhibit-read-only t) (old-syntax-table ...) buffer-file-name buffer-file-truename) (unwind-protect (progn ... ... ... ... ...) (set-syntax-table old-syntax-table) (and ... ... ...)))
# bind (loudly end beg)
font-lock-default-fontify-region(3423 25533 nil)
funcall(font-lock-default-fontify-region 3423 25533 nil)
# bind (loudly end beg)
font-lock-fontify-region(3423 25533)
# bind (val end beg)
(lambda (beg end val) (font-lock-fontify-region beg end))(3423 25533 t)
map-range-table((lambda (beg end val) (font-lock-fontify-region beg end)) #s(range-table data ((3423 25533) t)))
# bind (zmacs-region-stays)
(let ((zmacs-region-stays zmacs-region-stays)) (map-extents (function ...) nil nil nil nil nil (quote font-lock-pending) t) (put-text-property (point-min) (point-max) (quote font-lock-pending) nil) (map-range-table (function ...) font-lock-range-table))
# (unwind-protect ...)
(save-restriction (widen) (let (...) (map-extents ... nil nil nil nil nil ... t) (put-text-property ... ... ... nil) (map-range-table ... font-lock-range-table)))
# (unwind-protect ...)
(save-excursion (save-restriction (widen) (let ... ... ... ...)))
# (unwind-protect ...)
(save-current-buffer (set-buffer buffer) (save-excursion (save-restriction ... ...)))
(with-current-buffer buffer (save-excursion (save-restriction ... ...)))
(progn (clear-range-table font-lock-range-table) (with-current-buffer buffer (save-excursion ...)))
(if (buffer-live-p buffer) (progn (clear-range-table font-lock-range-table) (with-current-buffer buffer ...)))
(when (buffer-live-p buffer) (clear-range-table font-lock-range-table) (with-current-buffer buffer (save-excursion ...)))
# bind (dummy buffer)
(lambda (buffer dummy) (remhash buffer font-lock-pending-buffer-table) (when (buffer-live-p buffer) (clear-range-table font-lock-range-table) (with-current-buffer buffer ...)))(#<buffer "*compilation*"> t)
maphash((lambda (buffer dummy) (remhash buffer font-lock-pending-buffer-table) (when (buffer-live-p buffer) (clear-range-table font-lock-range-table) (with-current-buffer buffer ...))) #<hash-table size 0/29 weakness key 0x24e3>)
(progn (maphash (function ...) font-lock-pending-buffer-table))
# (unwind-protect ...)
(unwind-protect (progn (maphash ... font-lock-pending-buffer-table)) (store-match-data match-data))
# bind (match-data)
(let ((match-data ...)) (unwind-protect (progn ...) (store-match-data match-data)))
(save-match-data (maphash (function ...) font-lock-pending-buffer-table))
font-lock-fontify-pending-extents()
(if (> (hash-table-count font-lock-pending-buffer-table) 0) (font-lock-fontify-pending-extents))
# (condition-case ... . ((error (warn "Error caught in `font-lock-pre-idle-hook': %s" font-lock-error))))
(condition-case font-lock-error (if (> ... 0) (font-lock-fontify-pending-extents)) (error (warn "Error caught in `font-lock-pre-idle-hook': %s" font-lock-error)))
font-lock-pre-idle-hook()
# (condition-case ... . error)
# (condition-case ... . error)
# (catch top-level ...)
And here's the C backtrace from the core file.
(gdb) where
#0 0x485a36eb in gb2312_2uni_page30 () from /usr/lib/libc.so.12
#1 0x080a86b1 in fatal_error_signal (sig=11) at emacs.c:638
#2 0x485dfed0 in ?? () from /usr/lib/libc.so.12
#3 0x0816894c in re_search_2 (bufp=0x820c348, str1=0x48771000 "cd /usr/src/\n./build.sh -U -O /usr/obj -T /usr/obj/tools -V NOCLEANDIR=yes -V MKOBJDIRS=no -V NOINCLUDES=yes distribution\n===> build.sh command: ./build.sh -U -O /usr/obj -T /usr/obj/tools -V NOCLEAND"..., size1=25532, str2=0x48778059 "", size2=0, startpos=3422, range=1215770175, regs=0x820d154, stop=25532) at regex.c:4165
#4 0x0817235d in search_buffer (buf=0x87e3000, string=140418484, bufpos=3423, buflim=25533, n=1, RE=1, trt=136554500, inverse_trt=0, posix=136364872) at buffer.h:642
#5 0x08176222 in search_command (string=140418484, limit=51067, noerror=136554524, count=0, buffer=0, direction=1, RE=0, posix=0) at search.c:1073
#6 0x08174e65 in Fre_search_forward (regexp=0, limit=0, noerror=0, count=0, buffer=0) at search.c:2198
#7 0x080ad725 in Feval (form=140649040) at eval.c:3337
#8 0x080ad8f0 in Feval (form=140648992) at eval.c:3308
#9 0x080afb77 in Fand (args=140648980) at eval.c:670
#10 0x080ad8f0 in Feval (form=140648920) at eval.c:3308
#11 0x080afd96 in Fwhile (args=0) at eval.c:958
#12 0x080ad8f0 in Feval (form=140648908) at eval.c:3308
#13 0x080ab592 in Fprogn (args=140648860) at eval.c:775
#14 0x080afdcb in Fwhile (args=0) at eval.c:961
#15 0x080ad8f0 in Feval (form=140648728) at eval.c:3308
#16 0x080ab592 in Fprogn (args=140652632) at eval.c:775
#17 0x080ab6c9 in FletX (args=0) at eval.c:875
#18 0x080ad8f0 in Feval (form=140646300) at eval.c:3308
#19 0x080ab592 in Fprogn (args=140646288) at eval.c:775
#20 0x080ab883 in Flet (args=0) at eval.c:944
#21 0x080ad8f0 in Feval (form=140645964) at eval.c:3308
#22 0x080ab592 in Fprogn (args=140645952) at eval.c:775
#23 0x080ae366 in funcall_lambda (fun=140652812, nargs=3, args=0xbfbfcb60) at eval.c:3863
#24 0x080ad2e1 in Feval (form=140594824) at eval.c:3439
#25 0x080ab592 in Fprogn (args=140594584) at eval.c:775
#26 0x080ad8f0 in Feval (form=140594512) at eval.c:3308
#27 0x080b015b in Funwind_protect (args=140594884) at eval.c:1497
#28 0x080ad8f0 in Feval (form=140594500) at eval.c:3308
#29 0x080ab592 in Fprogn (args=140595052) at eval.c:775
#30 0x080ab883 in Flet (args=0) at eval.c:944
#31 0x080ad8f0 in Feval (form=140594284) at eval.c:3308
#32 0x080ab592 in Fprogn (args=140595064) at eval.c:775
#33 0x080ae366 in funcall_lambda (fun=140595076, nargs=3, args=0xbfbfd284) at eval.c:3863
#34 0x080adc9d in Ffuncall (nargs=4, args=0xbfbfd280) at eval.c:3580
#35 0x080ad8d9 in Feval (form=140590416) at eval.c:3360
#36 0x080ab592 in Fprogn (args=140590476) at eval.c:775
#37 0x080ae366 in funcall_lambda (fun=140590488, nargs=2, args=0xbfbfd450) at eval.c:3863
#38 0x080ad2e1 in Feval (form=140608728) at eval.c:3439
#39 0x080ab592 in Fprogn (args=140608764) at eval.c:775
#40 0x080ae366 in funcall_lambda (fun=140608668, nargs=3, args=0xbfbfd6b4) at eval.c:3863
#41 0x080adc9d in Ffuncall (nargs=4, args=0xbfbfd6b0) at eval.c:3580
#42 0x081547f0 in Fmap_range_table (function=140608668, range_table=139542656) at rangetab.c:480
#43 0x080ad6a4 in Feval (form=140608656) at eval.c:3337
#44 0x080ab592 in Fprogn (args=140608524) at eval.c:775
#45 0x080ab883 in Flet (args=0) at eval.c:944
#46 0x080ad8f0 in Feval (form=140607756) at eval.c:3308
#47 0x080ab592 in Fprogn (args=140607744) at eval.c:775
#48 0x080a50df in Fsave_restriction (body=0) at editfns.c:2190
#49 0x080ad8f0 in Feval (form=140607720) at eval.c:3308
#50 0x080ab592 in Fprogn (args=140608848) at eval.c:775
#51 0x080a3f34 in Fsave_excursion (args=0) at editfns.c:401
#52 0x080ad8f0 in Feval (form=140607708) at eval.c:3308
#53 0x080ab592 in Fprogn (args=139049420) at eval.c:775
#54 0x080a3fa3 in Fsave_current_buffer (args=0) at editfns.c:426
#55 0x080ad8f0 in Feval (form=139049228) at eval.c:3308
#56 0x080ad3dd in Feval (form=140607684) at eval.c:3414
#57 0x080ab592 in Fprogn (args=139049768) at eval.c:775
#58 0x080ad8f0 in Feval (form=139049756) at eval.c:3308
#59 0x080ad8f0 in Feval (form=139049588) at eval.c:3308
#60 0x080ad3dd in Feval (form=140607600) at eval.c:3414
#61 0x080ab592 in Fprogn (args=140607588) at eval.c:775
#62 0x080ae366 in funcall_lambda (fun=140607504, nargs=2, args=0xbfbfe514) at eval.c:3863
#63 0x080adc9d in Ffuncall (nargs=3, args=0xbfbfe510) at eval.c:3580
#64 0x080a7280 in Fmaphash (function=140607504, hash_table=0) at elhash.c:1195
#65 0x080ad6a4 in Feval (form=140607492) at eval.c:3337
#66 0x080ab592 in Fprogn (args=136869644) at eval.c:775
#67 0x080ad8f0 in Feval (form=139050560) at eval.c:3308
#68 0x080b015b in Funwind_protect (args=139050512) at eval.c:1497
#69 0x080ad8f0 in Feval (form=139050500) at eval.c:3308
#70 0x080ab592 in Fprogn (args=139050236) at eval.c:775
#71 0x080ab883 in Flet (args=0) at eval.c:944
#72 0x080ad8f0 in Feval (form=139050020) at eval.c:3308
#73 0x080ad3dd in Feval (form=140599280) at eval.c:3414
#74 0x080ab592 in Fprogn (args=140608956) at eval.c:775
#75 0x080ae366 in funcall_lambda (fun=140608968, nargs=0, args=0xbfbfed10) at eval.c:3863
#76 0x080ad2e1 in Feval (form=140598272) at eval.c:3439
#77 0x080ad8f0 in Feval (form=140598188) at eval.c:3308
#78 0x080abcba in condition_case_1 (handlers=0, bfun=0x80acde0 <Feval>, barg=140598188, hfun=0x80b24f4 <run_condition_case_handlers>, harg=140479788) at eval.c:1652
#79 0x080abe31 in condition_case_3 (bodyform=0, var=140479788, handlers=140598368) at eval.c:1730
#80 0x080b0196 in Fcondition_case (args=0) at eval.c:1776
#81 0x080ad8f0 in Feval (form=140598164) at eval.c:3308
#82 0x080ab592 in Fprogn (args=140598380) at eval.c:775
#83 0x080ae366 in funcall_lambda (fun=140598392, nargs=0, args=0xbfbff364) at eval.c:3863
#84 0x080adc9d in Ffuncall (nargs=1, args=0xbfbff360) at eval.c:3580
#85 0x080ae4d2 in run_hook_with_args_in_buffer (buf=0x0, nargs=1, args=0xbfbff360, cond=RUN_HOOKS_TO_COMPLETION) at eval.c:4027
#86 0x080ae6de in run_hook (hook=140479332) at eval.c:4040
#87 0x080b325a in catch_them_squirmers_run_hook (hook_symbol=0) at eval.c:4585
#88 0x080abcba in condition_case_1 (handlers=0, bfun=0x80b3249 <catch_them_squirmers_run_hook>, barg=136658796, hfun=0x80b30cd <allow_quit_safe_run_hook_caught_a_squirmer>, harg=143009260) at eval.c:1652
#89 0x080b1b7b in safe_run_hook_trapping_errors (warning_string=0x80b30cd "U\211åWVS\203ì,\213]\f\213u\b\211\034$è«Vþÿ\211\034$\211Çè Wþÿ÷Æ\003", hook_symbol=136554596, allow_quit=1) at eval.c:4646
#90 0x080d6286 in Fnext_event (event=141557880, prompt=134951117) at event-stream.c:2005
#91 0x08091cf8 in Fcommand_loop_1 () at cmdloop.c:574
#92 0x080abcba in condition_case_1 (handlers=0, bfun=0x8092032 <command_loop_1>, barg=136554500, hfun=0x8092045 <cmd_error>, harg=136554500) at eval.c:1652
#93 0x08092234 in command_loop_2 (dummy=136554500) at cmdloop.c:256
#94 0x080abb9c in internal_catch (tag=0, func=0x80921f8 <command_loop_2>, arg=136554500, threw=0x0) at eval.c:1318
#95 0x08091a6c in initial_command_loop (load_me=0) at cmdloop.c:305
#96 0x080a92e4 in xemacs_21_4_11_i386__netbsdelf (argc=1, argv=0xbfbff8f0, envp=0xbfbff8f8, restart=0) at emacs.c:2456
#97 0x080a9cff in main (argc=0, argv=0x0, envp=0x0) at emacs.c:2888
#98 0x0807ba7d in ___start ()
(gdb)
Best regards,
- Aidan
--
"These are the prettiest looking witnesses we have had in a long time. I
imagine you are all married. If not, you could be if you wanted to be."