unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 25442@debbugs.gnu.org
Subject: bug#25442: stacktrace
Date: Sat, 14 Jan 2017 20:56:15 +0100	[thread overview]
Message-ID: <87inphe7q8.fsf@gnu.org> (raw)
In-Reply-To: <87o9z9mu65.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 14 Jan 2017 18:24:18 +0100")

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

Ludovic Courtès writes:

> The ‘emacs’ package currently doesn’t have a ‘debug’ output.  So you
> would first need to add one:
>
>   (outputs '("out" "debug"))
>
> and then install both outputs:
>
>   guix package -i emacs emacs:debug
>
> See
> <https://www.gnu.org/software/guix/manual/html_node/Installing-Debugging-Files.html>.

Thank you!  Very nice documentation.  As discussed on IRC it was needed
to not use grafts to avoid gdb `CRC mismatch'

    guix package --no-grafts -i emacs emacs:debug

I also set

    ~/.gdbinit
    set debug-file-directory ~/.guix-profile/lib/debug

and did

    guix build --source emacs
    tar xf /gnu/store/wqdh5lxyrkzjhxy2rvs7qsbrd07lw89i-emacs-25.1.tar.xz

and set

    (gdb) directory ~/src/guix/emacs-25.1/src

Now I have a full backtrace; attached.

I'm not sure how to continue here; I built Emacs from GIT and there the
problem is not present.  Looking at the diff from 25.1 until HEAD I do
not see any obvious patches, neither does the git log point me to one.

Greetings,
Jan


[-- Attachment #2: bt --]
[-- Type: application/octet-stream, Size: 11616 bytes --]

#0  re_search_2 (bufp=bufp@entry=0xb8a3e0 <searchbufs+2912>, str1=str1@entry=0x2e89268 <error: Cannot access memory at address 0x2e89268>, size1=size1@entry=4544, str2=str2@entry=0x2e8aaa4 <error: Cannot access memory at address 0x2e8aaa4>, size2=size2@entry=1, startpos=startpos@entry=1527, range=632, regs=0xb89830 <search_regs>, stop=2159) at ../../emacs-25.1/src/regex.c:4464
4464		      int len = BYTES_BY_CHAR_HEAD (*p);
(gdb) p p
$3 = (re_char *) 0x2e8985f <error: Cannot access memory at address 0x2e8985f>
(gdb) bt
#0  re_search_2 (bufp=bufp@entry=0xb8a3e0 <searchbufs+2912>, str1=str1@entry=0x2e89268 <error: Cannot access memory at address 0x2e89268>, size1=size1@entry=4544, str2=str2@entry=0x2e8aaa4 <error: Cannot access memory at address 0x2e8aaa4>, size2=size2@entry=1, startpos=startpos@entry=1527, range=632, regs=0xb89830 <search_regs>, stop=2159) at ../../emacs-25.1/src/regex.c:4464
#1  0x000000000052f405 in search_buffer (string=string@entry=13622532, pos=<optimized out>, pos_byte=<optimized out>, lim=lim@entry=2160, lim_byte=lim_byte@entry=2160, n=1, RE=1, trt=0, inverse_trt=0, posix=false) at ../../emacs-25.1/src/search.c:1265
#2  0x000000000052fe91 in search_command (string=13622532, bound=<optimized out>, noerror=44448, count=<optimized out>, direction=direction@entry=1, RE=RE@entry=1, posix=false) at ../../emacs-25.1/src/search.c:1058
#3  0x0000000000530087 in Fre_search_forward (regexp=<optimized out>, bound=<optimized out>, noerror=<optimized out>, count=<optimized out>) at ../../emacs-25.1/src/search.c:2264
#4  0x000000000055cd5e in Ffuncall (nargs=4, args=args@entry=0x7fffffff32a8) at ../../emacs-25.1/src/eval.c:2704
#5  0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7fffffff32a8) at ../../emacs-25.1/src/bytecode.c:880
#6  0x000000000055c916 in funcall_lambda (fun=36888804, nargs=nargs@entry=2, arg_vector=0x7fffffff32a8, arg_vector@entry=0x7fffffff3470) at ../../emacs-25.1/src/eval.c:2855
#7  0x000000000055cbb3 in Ffuncall (nargs=3, args=args@entry=0x7fffffff3468) at ../../emacs-25.1/src/eval.c:2754
#8  0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7fffffff3468) at ../../emacs-25.1/src/bytecode.c:880
#9  0x000000000055c916 in funcall_lambda (fun=36878020, nargs=nargs@entry=2, arg_vector=0x7fffffff3468, arg_vector@entry=0x7fffffff3628) at ../../emacs-25.1/src/eval.c:2855
#10 0x000000000055cbb3 in Ffuncall (nargs=3, args=args@entry=0x7fffffff3620) at ../../emacs-25.1/src/eval.c:2754
#11 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7fffffff3620) at ../../emacs-25.1/src/bytecode.c:880
#12 0x000000000055c916 in funcall_lambda (fun=36907268, nargs=nargs@entry=1, arg_vector=0x7fffffff3620, arg_vector@entry=0x7fffffff37c0) at ../../emacs-25.1/src/eval.c:2855
#13 0x000000000055cbb3 in Ffuncall (nargs=2, args=args@entry=0x7fffffff37b8) at ../../emacs-25.1/src/eval.c:2754
#14 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=args_template@entry=0, nargs=nargs@entry=0, args=<optimized out>, args@entry=0x0) at ../../emacs-25.1/src/bytecode.c:880
#15 0x000000000055c7e2 in funcall_lambda (fun=10051485, nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7fffffff39d0) at ../../emacs-25.1/src/eval.c:2921
#16 0x000000000055cbb3 in Ffuncall (nargs=4, args=args@entry=0x7fffffff39c8) at ../../emacs-25.1/src/eval.c:2754
#17 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=args_template@entry=0, nargs=nargs@entry=0, args=<optimized out>, args@entry=0x0) at ../../emacs-25.1/src/bytecode.c:880
#18 0x000000000055c7e2 in funcall_lambda (fun=10046181, nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7fffffff3bc0) at ../../emacs-25.1/src/eval.c:2921
#19 0x000000000055cbb3 in Ffuncall (nargs=4, args=args@entry=0x7fffffff3bb8) at ../../emacs-25.1/src/eval.c:2754
#20 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=args_template@entry=0, nargs=nargs@entry=0, args=<optimized out>, args@entry=0x0) at ../../emacs-25.1/src/bytecode.c:880
#21 0x000000000055c7e2 in funcall_lambda (fun=10043893, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fffffff3db8) at ../../emacs-25.1/src/eval.c:2921
#22 0x000000000055cbb3 in Ffuncall (nargs=3, args=args@entry=0x7fffffff3db0) at ../../emacs-25.1/src/eval.c:2754
#23 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7fffffff3db0) at ../../emacs-25.1/src/bytecode.c:880
#24 0x000000000055c916 in funcall_lambda (fun=10065924, nargs=nargs@entry=1, arg_vector=0x7fffffff3db0, arg_vector@entry=0x7fffffff4088) at ../../emacs-25.1/src/eval.c:2855
#25 0x000000000055cbb3 in Ffuncall (nargs=2, args=args@entry=0x7fffffff4080) at ../../emacs-25.1/src/eval.c:2754
#26 0x000000000055ce1c in run_hook_wrapped_funcall (nargs=<optimized out>, args=0x7fffffff4080) at ../../emacs-25.1/src/eval.c:2428
#27 0x000000000055b18d in run_hook_with_args (nargs=2, args=0x7fffffff4080, funcall=0x55ce00 <run_hook_wrapped_funcall>) at ../../emacs-25.1/src/eval.c:2509
#28 0x000000000055cc99 in Ffuncall (nargs=3, args=args@entry=0x7fffffff4078) at ../../emacs-25.1/src/eval.c:2673
#29 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7fffffff4078) at ../../emacs-25.1/src/bytecode.c:880
#30 0x000000000055c916 in funcall_lambda (fun=10065796, nargs=nargs@entry=2, arg_vector=0x7fffffff4078, arg_vector@entry=0x7fffffff4270) at ../../emacs-25.1/src/eval.c:2855
#31 0x000000000055cbb3 in Ffuncall (nargs=3, args=args@entry=0x7fffffff4268) at ../../emacs-25.1/src/eval.c:2754
#32 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7fffffff4268) at ../../emacs-25.1/src/bytecode.c:880
#33 0x000000000055c916 in funcall_lambda (fun=10066092, nargs=nargs@entry=2, arg_vector=0x7fffffff4268, arg_vector@entry=0x7fffffff4478) at ../../emacs-25.1/src/eval.c:2855
#34 0x000000000055cbb3 in Ffuncall (nargs=3, args=args@entry=0x7fffffff4470) at ../../emacs-25.1/src/eval.c:2754
#35 0x0000000000590473 in exec_byte_code (bytestr=<optimized out>, vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized out>, nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7fffffff4470) at ../../emacs-25.1/src/bytecode.c:880
#36 0x000000000055c916 in funcall_lambda (fun=10065468, nargs=nargs@entry=1, arg_vector=0x7fffffff4470, arg_vector@entry=0x7fffffff4658) at ../../emacs-25.1/src/eval.c:2855
#37 0x000000000055cbb3 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffff4650) at ../../emacs-25.1/src/eval.c:2754
#38 0x000000000055b890 in internal_condition_case_n (bfun=0x55c9c0 <Ffuncall>, nargs=nargs@entry=2, args=args@entry=0x7fffffff4650, handlers=handlers@entry=44448, hfun=hfun@entry=0x43e350 <safe_eval_handler>) at ../../emacs-25.1/src/eval.c:1389
#39 0x000000000042f516 in safe__call (inhibit_quit=inhibit_quit@entry=false, nargs=nargs@entry=2, func=<optimized out>, ap=ap@entry=0x7fffffff46d8) at ../../emacs-25.1/src/xdisp.c:2558
#40 0x000000000043b4df in safe_call (nargs=nargs@entry=2, func=<optimized out>) at ../../emacs-25.1/src/xdisp.c:2574
#41 0x000000000043b607 in safe_call1 (arg=4850, fn=<optimized out>) at ../../emacs-25.1/src/xdisp.c:2585
#42 handle_fontified_prop (it=0x7fffffff6fc0) at ../../emacs-25.1/src/xdisp.c:3805
#43 0x000000000044015a in handle_stop (it=it@entry=0x7fffffff6fc0) at ../../emacs-25.1/src/xdisp.c:3371
#44 0x0000000000444aa2 in next_element_from_buffer (it=0x7fffffff6fc0) at ../../emacs-25.1/src/xdisp.c:8321
#45 0x0000000000442eba in get_next_display_element (it=it@entry=0x7fffffff6fc0) at ../../emacs-25.1/src/xdisp.c:6921
#46 0x000000000044e1ba in display_line (it=it@entry=0x7fffffff6fc0) at ../../emacs-25.1/src/xdisp.c:20557
#47 0x0000000000450dca in try_window (window=window@entry=25058357, pos=..., flags=flags@entry=1) at ../../emacs-25.1/src/xdisp.c:17206
#48 0x0000000000464b10 in redisplay_window (window=<optimized out>, just_this_one_p=just_this_one_p@entry=false) at ../../emacs-25.1/src/xdisp.c:16655
#49 0x000000000046766b in redisplay_window_0 (window=window@entry=25058357) at ../../emacs-25.1/src/xdisp.c:14446
#50 0x000000000055b77c in internal_condition_case_1 (bfun=bfun@entry=0x467640 <redisplay_window_0>, arg=25058357, handlers=<optimized out>, hfun=hfun@entry=0x42d8b0 <redisplay_window_error>) at ../../emacs-25.1/src/eval.c:1333
#51 0x00000000004331de in redisplay_windows (window=25058357) at ../../emacs-25.1/src/xdisp.c:14426
#52 0x00000000004331a8 in redisplay_windows (window=24722549) at ../../emacs-25.1/src/xdisp.c:14420
#53 0x0000000000454819 in redisplay_internal () at ../../emacs-25.1/src/xdisp.c:13986
#54 0x00000000004565da in redisplay_preserve_echo_area (from_where=from_where@entry=13) at ../../emacs-25.1/sr'uc/xdisp.c:14279
#55 0x000000000059c445 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at ../../emacs-25.1/src/process.c:4664
#56 0x0000000000423932 in sit_for (timeout=<optimized out>, reading=reading@entry=true, display_option=display_option@entry=1) at ../../emacs-25.1/src/dispnew.c:5762
#57 0x00000000004f74f4 in read_char (commandflag=commandflag@entry=1, map=map@entry=47212963, prev_event=0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffc88b, end_time=end_time@entry=0x0) at ../../emacs-25.1/src/keyboard.c:2714
#58 0x00000000004f82a6 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffc960, prompt=prompt@entry=0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, bufsize=30) at ../../emacs-25.1/src/keyboard.c:9063
#59 0x00000000004f9e26 in command_loop_1 () at ../../emacs-25.1/src/keyboard.c:1365
#60 0x000000000055b706 in internal_condition_case (bfun=bfun@entry=0x4f9c30 <command_loop_1>, handlers=handlers@entry=19056, hfun=hfun@entry=0x4f0bd0 <cmd_error>) at ../../emacs-25.1/src/eval.c:1309
#61 0x00000000004ec3fc in command_loop_2 (ignore=ignore@entry=0) at ../../emacs-25.1/src/keyboard.c:1107
#62 0x000000000055b68b in internal_catch (tag=tag@entry=45840, func=func@entry=0x4ec3e0 <command_loop_2>, arg=arg@entry=0) at ../../emacs-25.1/src/eval.c:1074
#63 0x00000000004ec3b9 in command_loop () at ../../emacs-25.1/src/keyboard.c:1086
#64 0x00000000004f07e7 in recursive_edit_1 () at ../../emacs-25.1/src/keyboard.c:692
#65 0x00000000004f0b00 in Frecursive_edit () at ../../emacs-25.1/src/keyboard.c:763
#66 0x0000000000419c2b in main (argc=1, argv=0x7fffffffccb8) at ../../emacs-25.1/src/emacs.c:1626
(gdb) 

[-- Attachment #3: Type: text/plain, Size: 154 bytes --]


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  

  reply	other threads:[~2017-01-14 19:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 21:21 bug#25442: Emacs compilation buffer segfault Jan Nieuwenhuizen
2017-01-14 16:06 ` bug#25442: stacktrace Jan Nieuwenhuizen
2017-01-14 17:24   ` Ludovic Courtès
2017-01-14 19:56     ` Jan Nieuwenhuizen [this message]
2017-01-15 20:30       ` Ludovic Courtès
2017-01-15 22:36         ` Jan Nieuwenhuizen
2017-09-30  7:36           ` Jan Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inphe7q8.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=25442@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).