unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25442: Emacs compilation buffer segfault
@ 2017-01-13 21:21 Jan Nieuwenhuizen
  2017-01-14 16:06 ` bug#25442: stacktrace Jan Nieuwenhuizen
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2017-01-13 21:21 UTC (permalink / raw)
  To: 25442

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

Hi!

Running

    bash crash.nw
   
in an xterm makes Emacs segfault about 4 out of 5 times for me.

Greetings,
Jan


[-- Attachment #2: crash.nw --]
[-- Type: application/octet-stream, Size: 191 bytes --]

env -i TERM=xterm HOME=/tmp PATH=/run/current-system/profile/bin /gnu/store/5diw4kjwi6q75gk8yyx95l6f839gr5nj-emacs-25.1/bin/emacs -q --eval '(progn (compile "cat mes.crash")(delete-window))'

[-- Attachment #3: mes.crash --]
[-- Type: application/octet-stream, Size: 4390 bytes --]

boo: 2.0.13
compiling strlen
compiling getchar
compiling putchar
compiling eputs
compiling fputs
compiling puts
compiling strcmp
compiling assert_fail
SKIP statement=(expr-stmt (assn-expr (de-ref (cast (type-name (decl-spec-list (type-spec (fixed-type "int"))) (abs-declr (pointer))) (p-expr (fixed "0")))) (op "=") (p-expr (fixed "0"))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (fixed-type "int"))) (init-declr-list (init-declr (ident "SCM"))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (fixed-type "int")) (type-spec (typename "SCM"))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (typename "SCM"))) (init-declr-list (init-declr (ftn-declr (scope (ptr-declr (pointer) (ident "function0_t"))) (param-list (param-decl (decl-spec-list (type-spec (void)))))))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (typename "SCM"))) (init-declr-list (init-declr (ftn-declr (scope (ptr-declr (pointer) (ident "function1_t"))) (param-list (param-decl (decl-spec-list (type-spec (typename "SCM")))))))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (typename "SCM"))) (init-declr-list (init-declr (ftn-declr (scope (ptr-declr (pointer) (ident "function2_t"))) (param-list (param-decl (decl-spec-list (type-spec (typename "SCM")))) (param-decl (decl-spec-list (type-spec (typename "SCM")))))))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (typename "SCM"))) (init-declr-list (init-declr (ftn-declr (scope (ptr-declr (pointer) (ident "function3_t"))) (param-list (param-decl (decl-spec-list (type-spec (typename "SCM")))) (param-decl (decl-spec-list (type-spec (typename "SCM")))) (param-decl (decl-spec-list (type-spec (typename "SCM")))))))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (typename "SCM"))) (init-declr-list (init-declr (ftn-declr (scope (ptr-declr (pointer) (ident "functionn_t"))) (param-list (param-decl (decl-spec-list (type-spec (typename "SCM")))))))))
SKIP statement=(decl (decl-spec-list (stor-spec (typedef)) (type-spec (struct-def (ident "function_struct") (field-list (comp-decl (decl-spec-list (type-spec (union-def (field-list (comp-decl (decl-spec-list (type-spec (typename "function0_t"))) (comp-declr-list (comp-declr (ident "function0")))) (comp-decl (decl-spec-list (type-spec (typename "function1_t"))) (comp-declr-list (comp-declr (ident "function1")))) (comp-decl (decl-spec-list (type-spec (typename "function2_t"))) (comp-declr-list (comp-declr (ident "function2")))) (comp-decl (decl-spec-list (type-spec (typename "function3_t"))) (comp-declr-list (comp-declr (ident "function3")))) (comp-decl (decl-spec-list (type-spec (typename "functionn_t"))) (comp-declr-list (comp-declr (ident "functionn")))))))) (comp-declr-list (comp-declr (ident "data")))) (comp-decl (decl-spec-list (type-spec (fixed-type "int"))) (comp-declr-list (comp-declr (ident "arity")))))))) (init-declr-list (init-declr (ident "function_t"))))
SKIP statement=(decl (decl-spec-list (type-spec (struct-ref (ident "scm")))))
SKIP statement=(decl (decl-spec-list (type-spec (fixed-type "char"))) (init-declr-list (init-declr (array-of (ident "arena") (p-expr (fixed "200000"))))))
SKIP statement=(decl (decl-spec-list (type-spec (struct-ref (ident "scm")))) (init-declr-list (init-declr (ptr-declr (pointer) (ident "g_cells")) (initzer (cast (type-name (decl-spec-list (type-spec (struct-ref (ident "scm")))) (abs-declr (pointer))) (p-expr (ident "arena")))))))
compiling car
types: (("type_t" . "enum") ("scm" ("type_t" . "type") ("SCM" . "car") ("SCM" . "cdr")))
field: "car"
struct: (("type_t" . "type") ("SCM" . "car") ("SCM" . "cdr"))
struct-scm size: 3
struct-scm offset[car]: 8
compiling cdr
types: (("type_t" . "enum") ("scm" ("type_t" . "type") ("SCM" . "car") ("SCM" . "cdr")))
field: "cdr"
struct: (("type_t" . "type") ("SCM" . "car") ("SCM" . "cdr"))
struct-scm size: 3
struct-scm offset[cdr]: 8
compiling caar
SKIP expr->arg=(fctn-call (p-expr (ident car)) (expr-list (p-expr (ident x))))
compiling cadr
SKIP expr->arg=(fctn-call (p-expr (ident cdr)) (expr-list (p-expr (ident x))))
compiling cdar
SKIP expr->arg=(fctn-call (p-expr (ident car)) (expr-list (p-expr (ident x))))
compiling cddr
SKIP expr->arg=(fctn-call (p-expr (ident cdr)) (expr-list (p-expr (ident x))))
compiling gc_peek_frame

[-- Attachment #4: 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  

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

* bug#25442: stacktrace
  2017-01-13 21:21 bug#25442: Emacs compilation buffer segfault Jan Nieuwenhuizen
@ 2017-01-14 16:06 ` Jan Nieuwenhuizen
  2017-01-14 17:24   ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2017-01-14 16:06 UTC (permalink / raw)
  To: 25442

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

Find attached.  There is no debugging info, is there a package that
I can install which includes the debugging symbols?


[-- Attachment #2: stacktrace --]
[-- Type: application/octet-stream, Size: 6505 bytes --]

Current directory is /gnu/store/5diw4kjwi6q75gk8yyx95l6f839gr5nj-emacs-25.1/bin/
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /gnu/store/5diw4kjwi6q75gk8yyx95l6f839gr5nj-emacs-25.1/bin/.emacs-25.1-real...(no debugging symbols found)...done.
(gdb) r
Starting program: /gnu/store/5diw4kjwi6q75gk8yyx95l6f839gr5nj-emacs-25.1/bin/.emacs-25.1-real 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/libthread_db.so.1".
[New Thread 0x7fffebecd700 (LWP 3262)]
[New Thread 0x7fffeabdf700 (LWP 3263)]

Thread 1 ".emacs-25.1-rea" received signal SIGSEGV, Segmentation fault.
0x000000000053a018 in re_search_2 ()
(gdb) bt
#0  0x000000000053a018 in re_search_2 ()
#1  0x000000000052f405 in search_buffer ()
#2  0x000000000052fe91 in search_command ()
#3  0x0000000000530087 in Fre_search_forward ()
#4  0x000000000055cd5e in Ffuncall ()
#5  0x0000000000590473 in exec_byte_code ()
#6  0x000000000055cbb3 in Ffuncall ()
#7  0x0000000000590473 in exec_byte_code ()
#8  0x000000000055cbb3 in Ffuncall ()
#9  0x0000000000590473 in exec_byte_code ()
#10 0x000000000055cbb3 in Ffuncall ()
#11 0x0000000000590473 in exec_byte_code ()
#12 0x000000000055c7e2 in funcall_lambda ()
#13 0x000000000055cbb3 in Ffuncall ()
#14 0x0000000000590473 in exec_byte_code ()
#15 0x000000000055c7e2 in funcall_lambda ()
#16 0x000000000055cbb3 in Ffuncall ()
#17 0x0000000000590473 in exec_byte_code ()
#18 0x000000000055c7e2 in funcall_lambda ()
#19 0x000000000055cbb3 in Ffuncall ()
#20 0x0000000000590473 in exec_byte_code ()
#21 0x000000000055cbb3 in Ffuncall ()
#22 0x000000000055ce1c in run_hook_wrapped_funcall ()
#23 0x000000000055b18d in run_hook_with_args.part ()
#24 0x000000000055cc99 in Ffuncall ()
#25 0x0000000000590473 in exec_byte_code ()
#26 0x000000000055cbb3 in Ffuncall ()
#27 0x0000000000590473 in exec_byte_code ()
#28 0x000000000055cbb3 in Ffuncall ()
#29 0x0000000000590473 in exec_byte_code ()
#30 0x000000000055cbb3 in Ffuncall ()
#31 0x000000000055b890 in internal_condition_case_n ()
#32 0x000000000042f516 in safe.call ()
#33 0x000000000043b4df in safe_call ()
#34 0x000000000043b607 in handle_fontified_prop ()
#35 0x000000000044015a in handle_stop ()
#36 0x0000000000444aa2 in next_element_from_buffer ()
#37 0x0000000000442eba in get_next_display_element ()
#38 0x000000000044e1ba in display_line ()
#39 0x0000000000450dca in try_window ()
#40 0x0000000000464b10 in redisplay_window ()
#41 0x000000000046766b in redisplay_window_0 ()
#42 0x000000000055b77c in internal_condition_case_1 ()
#43 0x00000000004331de in redisplay_windows ()
#44 0x00000000004331a8 in redisplay_windows ()
#45 0x0000000000454819 in redisplay_internal ()
#46 0x00000000004565da in redisplay_preserve_echo_area ()
#47 0x000000000059c445 in wait_reading_process_output ()
#48 0x0000000000423932 in sit_for ()
#49 0x00000000004f74f4 in read_char ()
#50 0x00000000004f82a6 in read_key_sequence.constprop ()
#51 0x00000000004f9e26 in command_loop_1 ()
#52 0x000000000055b706 in internal_condition_case ()
#53 0x00000000004ec3fc in command_loop_2 ()
#54 0x000000000055b68b in internal_catch ()
#55 0x00000000004ec3b9 in command_loop ()
#56 0x00000000004f07e7 in recursive_edit_1 ()
#57 0x00000000004f0b00 in Frecursive_edit ()
#58 0x0000000000419c2b in main ()
(gdb) #4  0x000000000055cd5e in Ffuncall ()
#5  0x0000000000590473 in exec_byte_code ()
#6  0x000000000055cbb3 in Ffuncall ()
#7  0x0000000000590473 in exec_byte_code ()
#8  0x000000000055cbb3 in Ffuncall ()
#9  0x0000000000590473 in exec_byte_code ()
#10 0x000000000055cbb3 in Ffuncall ()
#11 0x0000000000590473 in exec_byte_code ()
#12 0x000000000055c7e2 in funcall_lambda ()
#13 0x000000000055cbb3 in Ffuncall ()
#14 0x0000000000590473 in exec_byte_code ()
#15 0x000000000055c7e2 in funcall_lambda ()
#16 0x000000000055cbb3 in Ffuncall ()
#17 0x0000000000590473 in exec_byte_code ()
#18 0x000000000055c7e2 in funcall_lambda ()
#19 0x000000000055cbb3 in Ffuncall ()
#20 0x0000000000590473 in exec_byte_code ()
#21 0x000000000055cbb3 in Ffuncall ()
#22 0x000000000055ce1c in run_hook_wrapped_funcall ()
#23 0x000000000055b18d in run_hook_with_args.part ()
#24 0x000000000055cc99 in Ffuncall ()
#25 0x0000000000590473 in exec_byte_code ()
#26 0x000000000055cbb3 in Ffuncall ()
#27 0x0000000000590473 in exec_byte_code ()
#28 0x000000000055cbb3 in Ffuncall ()
#29 0x0000000000590473 in exec_byte_code ()
#30 0x000000000055cbb3 in Ffuncall ()
#31 0x000000000055b890 in internal_condition_case_n ()
#32 0x000000000042f516 in safe.call ()
#33 0x000000000043b4df in safe_call ()
#34 0x000000000043b607 in handle_fontified_prop ()
#35 0x000000000044015a in handle_stop ()
#36 0x0000000000444aa2 in next_element_from_buffer ()
#37 0x0000000000442eba in get_next_display_element ()
#38 0x000000000044e1ba in display_line ()
#39 0x0000000000450dca in try_window ()
#40 0x0000000000464b10 in redisplay_window ()
#41 0x000000000046766b in redisplay_window_0 ()
#42 0x000000000055b77c in internal_condition_case_1 ()
#43 0x00000000004331de in redisplay_windows ()
#44 0x00000000004331a8 in redisplay_windows ()
#45 0x0000000000454819 in redisplay_internal ()
#46 0x00000000004565da in redisplay_preserve_echo_area ()
#47 0x000000000059c445 in wait_reading_process_output ()
#48 0x0000000000423932 in sit_for ()
#49 0x00000000004f74f4 in read_char ()
#50 0x00000000004f82a6 in read_key_sequence.constprop ()
#51 0x00000000004f9e26 in command_loop_1 ()
#52 0x000000000055b706 in internal_condition_case ()
#53 0x00000000004ec3fc in command_loop_2 ()
#54 0x000000000055b68b in internal_catch ()
#55 0x00000000004ec3b9 in command_loop ()
#56 0x00000000004f07e7 in recursive_edit_1 ()
#57 0x00000000004f0b00 in Frecursive_edit ()
#58 0x0000000000419c2b in main ()
(gdb) 
Undefined command: "".  Try "help".
(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  

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

* bug#25442: stacktrace
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2017-01-14 17:24 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: 25442

Jan Nieuwenhuizen <janneke@gnu.org> skribis:

> Find attached.  There is no debugging info, is there a package that
> I can install which includes the debugging symbols?

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

HTH!

Ludo’.

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

* bug#25442: stacktrace
  2017-01-14 17:24   ` Ludovic Courtès
@ 2017-01-14 19:56     ` Jan Nieuwenhuizen
  2017-01-15 20:30       ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2017-01-14 19:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 25442

[-- 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  

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

* bug#25442: stacktrace
  2017-01-14 19:56     ` Jan Nieuwenhuizen
@ 2017-01-15 20:30       ` Ludovic Courtès
  2017-01-15 22:36         ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2017-01-15 20:30 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: 25442

Jan Nieuwenhuizen <janneke@gnu.org> skribis:

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

Cool, glad it worked.

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

So the question is whether this bug is introduced by our packaging or
whether it’s an upstream bug.

Perhaps you could build with (warning! this command does not
authenticate the tarball it downloads):

  guix package -i emacs emacs:debug \
    --with-source=ftp://alpha.gnu.org/gnu/emacs/emacs-25.1.91.tar.xz

or similarly with a nightly snapshot or Git checkout.

I’m afraid that’s all I can suggest now.

HTH!

Ludo’.

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

* bug#25442: stacktrace
  2017-01-15 20:30       ` Ludovic Courtès
@ 2017-01-15 22:36         ` Jan Nieuwenhuizen
  2017-09-30  7:36           ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2017-01-15 22:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 25442

Ludovic Courtès writes:

>> 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.
>
> So the question is whether this bug is introduced by our packaging or
> whether it’s an upstream bug.

Yes.

> Perhaps you could build with (warning! this command does not
> authenticate the tarball it downloads):
>
>   guix package -i emacs emacs:debug \
>     --with-source=ftp://alpha.gnu.org/gnu/emacs/emacs-25.1.91.tar.xz

   guix package -i emacs emacs:debug \
     --with-source=ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.1.91.tar.xz

inserted /pretest here

> I’m afraid that’s all I can suggest now.

That's a good suggestion.  I have tried this and the bug is also gone
here, with our packaging.  So apparently it has been fixed upstream.

Thanks!
Greetings,
Jan

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

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

* bug#25442: stacktrace
  2017-01-15 22:36         ` Jan Nieuwenhuizen
@ 2017-09-30  7:36           ` Jan Nieuwenhuizen
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2017-09-30  7:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 25442-done

Jan Nieuwenhuizen writes:

> That's a good suggestion.  I have tried this and the bug is also gone
> here, with our packaging.  So apparently it has been fixed upstream.

long fixed, long -done.
janneke

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

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

end of thread, other threads:[~2017-09-30  7:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-01-15 20:30       ` Ludovic Courtès
2017-01-15 22:36         ` Jan Nieuwenhuizen
2017-09-30  7:36           ` Jan Nieuwenhuizen

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