all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20431: emacs-24.5 segfaults with gnutls-3.4.0
@ 2015-04-26 17:23 Fernando de Oliveira
  2015-05-04 22:13 ` Ted Zlatanov
  0 siblings, 1 reply; 5+ messages in thread
From: Fernando de Oliveira @ 2015-04-26 17:23 UTC (permalink / raw)
  To: 20431

Hi,

I am having this segfault problem and could not solve by myself.

Used:

./configure --prefix=/usr --localstatedir=/var

make bootstrap

Build log tail with the error (I1ve replaced "Falha de segmentação" by
"Segmentation fault":

{{{
Loading /tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/uniquify.el
(source)...
Loading /tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/electric.el
(source)...
Loading /tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/tooltip.el
(source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
91123 pure bytes used
/bin/sh: line 7:  9509 Segmentation fault  ./temacs --batch --load
loadup bootstrap
Makefile:815: recipe for target 'bootstrap-emacs' failed
make[2]: *** [bootstrap-emacs] Error 1
make[2]: Leaving directory
'/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/src'
Makefile:387: recipe for target 'src' failed
make[1]: *** [src] Error 2
make[1]: Leaving directory '/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5'
Makefile:1099: recipe for target 'bootstrap' failed
make: *** [bootstrap] Error 2
}}}

Part of the gdb output (removed lines I thought to be repetitive, but
can send everything, if requested):

{{{
$ gdb temacs
GNU gdb (GDB) 7.9
Copyright (C) 2015 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 temacs...done.
warning: File
"/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/src/.gdbinit"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/src/.gdbinit
line to your configuration file "/home/fernando/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/fernando/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the
shell:
	info "(gdb)Auto-loading safe path"
(gdb) set args --batch --load loadup bootstrap
(gdb) run
Starting program:
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/src/temacs --batch
--load loadup bootstrap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
process 17814 is executing new program:
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/src/temacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Loading loadup.el (source)...
Using load-path (/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/emacs-lisp
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/language
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/international
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/textmodes
/tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/vc)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version (source)...
Loading widget (source)...
Loading custom (source)...
Loading emacs-lisp/map-ynp (source)...
Loading international/mule (source)...
Loading international/mule-conf (source)...
Loading env (source)...
Loading format (source)...
Loading bindings (source)...
Loading cus-start (source)...
Loading window (source)...
Loading /tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/files.el
(source)...

... snip ..

Loading /tmp/porg-build-2015.04.26-12h00m39s/emacs-24.5/lisp/tooltip.el
(source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
91123 pure bytes used

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0ef2f24 in free () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff0ef2f24 in free () from /lib/libc.so.6
#1  0x00007ffff168e84b in _gnutls_ext_deinit () at gnutls_extensions.c:399
#2  0x00007ffff1695a40 in _gnutls_global_deinit (destructor=1)
    at gnutls_global.c:385
#3  0x00007ffff7dea727 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff0eadd92 in __run_exit_handlers () from /lib/libc.so.6
#5  0x00007ffff0eadde5 in exit () from /lib/libc.so.6
#6  0x00000000004e7dec in Fkill_emacs (arg=<optimized out>) at emacs.c:1970
#7  0x0000000000557771 in eval_sub (form=<optimized out>) at eval.c:2181
#8  0x0000000000557b85 in Fprogn (body=140737238883328) at eval.c:462
#9  0x00000000005577c6 in eval_sub (form=<optimized out>) at eval.c:2131
#10 0x00000000005577c6 in eval_sub (form=form@entry=12540550) at eval.c:2131
#11 0x000000000057a4e3 in readevalloop (readcharfun=12398610,
stream=0xc06100,
    sourcename=12603889, printflag=false, unibyte=<optimized out>,
    readfun=12279666, start=12279666, end=12279666) at lread.c:1934
#12 0x000000000057b2ba in Fload (file=140737238883328, noerror=0,
    nomessage=12279666, nosuffix=12603889, must_suffix=0) at lread.c:1363
#13 0x0000000000557715 in eval_sub (form=form@entry=12540438) at eval.c:2195
#14 0x00000000005599d4 in Feval (form=12540438, lexical=<optimized out>)
    at eval.c:1996
#15 0x00000000005566a7 in internal_condition_case (
    bfun=bfun@entry=0x4e83a0 <top_level_2>, handlers=<optimized out>,
    hfun=hfun@entry=0x4ecb80 <cmd_error>) at eval.c:1348
#16 0x00000000004e8376 in top_level_1 (ignore=ignore@entry=12279666)
    at keyboard.c:1195
---Type <return> to continue, or q <return> to quit---
#17 0x000000000055658b in internal_catch (tag=12326946,
    func=func@entry=0x4e8310 <top_level_1>, arg=12279666) at eval.c:1112
#18 0x00000000004ec77f in command_loop () at keyboard.c:1156
#19 recursive_edit_1 () at keyboard.c:778
#20 0x00000000004ecab0 in Frecursive_edit () at keyboard.c:849
#21 0x00000000004199a9 in main (argc=12603633, argv=0x7fffffffdec8)
    at emacs.c:1642
}}}

-- 
[]s,
Fernando





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

* bug#20431: emacs-24.5 segfaults with gnutls-3.4.0
  2015-04-26 17:23 bug#20431: emacs-24.5 segfaults with gnutls-3.4.0 Fernando de Oliveira
@ 2015-05-04 22:13 ` Ted Zlatanov
  2015-05-05 12:39   ` Fernando de Oliveira
  0 siblings, 1 reply; 5+ messages in thread
From: Ted Zlatanov @ 2015-05-04 22:13 UTC (permalink / raw)
  To: Fernando de Oliveira; +Cc: 20431

On Sun, 26 Apr 2015 14:23:46 -0300 Fernando de Oliveira <famobr@yahoo.com.br> wrote: 

FdO> I am having this segfault problem and could not solve by myself.
...
FdO> Build log tail with the error (I1ve replaced "Falha de segmentação" by
FdO> "Segmentation fault":
...

Hi Fernando,

I don't know if the problem is in the GnuTLS integration from this stack
trace, but I'm definitely not seeing it here. Is it still happening for
you? Can you replicate it with the released 24.4? How about the latest
(Git master branch)?

Thanks
Ted

FdO> Program received signal SIGSEGV, Segmentation fault.
FdO> 0x00007ffff0ef2f24 in free () from /lib/libc.so.6
FdO> (gdb) bt
FdO> #0  0x00007ffff0ef2f24 in free () from /lib/libc.so.6
FdO> #1  0x00007ffff168e84b in _gnutls_ext_deinit () at gnutls_extensions.c:399
FdO> #2  0x00007ffff1695a40 in _gnutls_global_deinit (destructor=1)
FdO>     at gnutls_global.c:385
FdO> #3  0x00007ffff7dea727 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
FdO> #4  0x00007ffff0eadd92 in __run_exit_handlers () from /lib/libc.so.6
FdO> #5  0x00007ffff0eadde5 in exit () from /lib/libc.so.6
FdO> #6  0x00000000004e7dec in Fkill_emacs (arg=<optimized out>) at emacs.c:1970
FdO> #7  0x0000000000557771 in eval_sub (form=<optimized out>) at eval.c:2181
FdO> #8  0x0000000000557b85 in Fprogn (body=140737238883328) at eval.c:462
FdO> #9  0x00000000005577c6 in eval_sub (form=<optimized out>) at eval.c:2131
FdO> #10 0x00000000005577c6 in eval_sub (form=form@entry=12540550) at eval.c:2131
FdO> #11 0x000000000057a4e3 in readevalloop (readcharfun=12398610,
FdO> stream=0xc06100,
FdO>     sourcename=12603889, printflag=false, unibyte=<optimized out>,
FdO>     readfun=12279666, start=12279666, end=12279666) at lread.c:1934
FdO> #12 0x000000000057b2ba in Fload (file=140737238883328, noerror=0,
FdO>     nomessage=12279666, nosuffix=12603889, must_suffix=0) at lread.c:1363
FdO> #13 0x0000000000557715 in eval_sub (form=form@entry=12540438) at eval.c:2195
FdO> #14 0x00000000005599d4 in Feval (form=12540438, lexical=<optimized out>)
FdO>     at eval.c:1996
FdO> #15 0x00000000005566a7 in internal_condition_case (
FdO>     bfun=bfun@entry=0x4e83a0 <top_level_2>, handlers=<optimized out>,
FdO>     hfun=hfun@entry=0x4ecb80 <cmd_error>) at eval.c:1348
FdO> #16 0x00000000004e8376 in top_level_1 (ignore=ignore@entry=12279666)
FdO>     at keyboard.c:1195
FdO> ---Type <return> to continue, or q <return> to quit---
FdO> #17 0x000000000055658b in internal_catch (tag=12326946,
FdO>     func=func@entry=0x4e8310 <top_level_1>, arg=12279666) at eval.c:1112
FdO> #18 0x00000000004ec77f in command_loop () at keyboard.c:1156
FdO> #19 recursive_edit_1 () at keyboard.c:778
FdO> #20 0x00000000004ecab0 in Frecursive_edit () at keyboard.c:849
FdO> #21 0x00000000004199a9 in main (argc=12603633, argv=0x7fffffffdec8)
FdO>     at emacs.c:1642





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

* bug#20431: emacs-24.5 segfaults with gnutls-3.4.0
  2015-05-04 22:13 ` Ted Zlatanov
@ 2015-05-05 12:39   ` Fernando de Oliveira
  2015-12-21 17:46     ` Fernando de Oliveira
  0 siblings, 1 reply; 5+ messages in thread
From: Fernando de Oliveira @ 2015-05-05 12:39 UTC (permalink / raw)
  To: Ted Zlatanov; +Cc: 20431

Sorry, forgt to send to the bug report

On 04-05-2015 19:13, Ted Zlatanov wrote:
> On Sun, 26 Apr 2015 14:23:46 -0300 Fernando de Oliveira <famobr@yahoo.com.br> wrote: 
> 
> FdO> I am having this segfault problem and could not solve by myself.
> ...
> FdO> Build log tail with the error (I1ve replaced "Falha de segmentação" by
> FdO> "Segmentation fault":
> ...
> 
> Hi Fernando,
> 
> I don't know if the problem is in the GnuTLS integration from this stack
> trace, but I'm definitely not seeing it here. Is it still happening for
> you? Can you replicate it with the released 24.4? How about the latest
> (Git master branch)?

Hi Ted,

Thanks for your post.

System updated to gnutls-3.4.1.

FWIW:
gcc (GCC) 5.1.0 (but my first post was with gcc-4.9.2)
clang version 3.6.0 (tags/RELEASE_360/final)

Tested versions: 24.4, 24.5 (again), Git emacs-24 branch (24.5.50), and
Git master branch (25.0.50, also tried to use clang, for this one).

Unfortunately, still same issue:

{{{
$ cd emacs-25.0.50/src
$ gdb temacs
...
(gdb) set args --batch --load loadup bootstrap
(gdb) run
...

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0ce8f24 in free () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff0ce8f24 in free () from /lib/libc.so.6
#1  0x00007ffff16a97ab in _gnutls_ext_deinit () at gnutls_extensions.c:399
#2  0x00007ffff16b0860 in _gnutls_global_deinit (destructor=1)
    at gnutls_global.c:385
#3  0x00007ffff7dea727 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff0ca3d92 in __run_exit_handlers () from /lib/libc.so.6
#5  0x00007ffff0ca3de5 in exit () from /lib/libc.so.6
#6  0x00000000004ea4ff in Fkill_emacs (arg=<optimized out>) at emacs.c:1952
#7  0x0000000000559541 in eval_sub (form=<optimized out>) at eval.c:2181
#8  0x00000000005597fd in Fprogn (body=18685187) at eval.c:445
#9  0x0000000000559471 in eval_sub (form=<optimized out>) at eval.c:2131
#10 0x0000000000559471 in eval_sub (form=form@entry=12492531) at eval.c:2131
#11 0x000000000057b8d8 in readevalloop
(readcharfun=readcharfun@entry=25536,
    stream=stream@entry=0xc2e040, sourcename=sourcename@entry=12769012,
    printflag=printflag@entry=false, unibyte=unibyte@entry=0,
    readfun=readfun@entry=0, start=0, end=0) at lread.c:1929
#12 0x000000000057bf6c in Fload (file=12768756, noerror=<optimized out>,
    nomessage=0, nosuffix=<optimized out>, must_suffix=<optimized out>)
    at lread.c:1326
#13 0x00000000005594e5 in eval_sub (form=form@entry=12698259) at eval.c:2195
#14 0x000000000055c831 in Feval (form=12698259, lexical=<optimized out>)
    at eval.c:1996
#15 0x0000000000558667 in internal_condition_case (
---Type <return> to continue, or q <return> to quit---
    bfun=bfun@entry=0x4eaa00 <top_level_2>, handlers=handlers@entry=19824,
    hfun=hfun@entry=0x4ef360 <cmd_error>) at eval.c:1348
#16 0x00000000004ed33c in top_level_1 (ignore=ignore@entry=0)
    at keyboard.c:1156
#17 0x0000000000558543 in internal_catch (tag=tag@entry=46992,
    func=func@entry=0x4ed2e0 <top_level_1>, arg=arg@entry=0) at eval.c:1108
#18 0x00000000004ea998 in command_loop () at keyboard.c:1117
#19 0x00000000004eef4b in recursive_edit_1 () at keyboard.c:728
#20 0x00000000004ef298 in Frecursive_edit () at keyboard.c:799
#21 0x0000000000419df7 in main (argc=5, argv=0x7fffffffdeb8) at emacs.c:1626
(gdb)
}}}

Adding possibly relevant info:

{{{
Configured for 'x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng16
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use imagemagick?                             yes
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   yes
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 yes
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lgio (gfile)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   yes
  Does Emacs directly use zlib?                           yes
  Does Emacs use toolkit scroll bars?                     yes
}}}

Thanks again,

-- 
[]s,
Fernando






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

* bug#20431: emacs-24.5 segfaults with gnutls-3.4.0
  2015-05-05 12:39   ` Fernando de Oliveira
@ 2015-12-21 17:46     ` Fernando de Oliveira
  2015-12-22 15:17       ` Ted Zlatanov
  0 siblings, 1 reply; 5+ messages in thread
From: Fernando de Oliveira @ 2015-12-21 17:46 UTC (permalink / raw)
  To: 20431

Em 05-05-2015 09:39, Fernando de Oliveira escreveu:
> Sorry, forgt to send to the bug report
> 
> On 04-05-2015 19:13, Ted Zlatanov wrote:
>> On Sun, 26 Apr 2015 14:23:46 -0300 Fernando de Oliveira <famobr@yahoo.com.br> wrote: 
>>
>> FdO> I am having this segfault problem and could not solve by myself.
>> ...
>> FdO> Build log tail with the error (I1ve replaced "Falha de segmentação" by
>> FdO> "Segmentation fault":
>> ...
>>
>> Hi Fernando,
>>
>> I don't know if the problem is in the GnuTLS integration from this stack
>> trace, but I'm definitely not seeing it here. Is it still happening for
>> you? Can you replicate it with the released 24.4? How about the latest
>> (Git master branch)?
> 
> Hi Ted,
> 
> Thanks for your post.
> 
> System updated to gnutls-3.4.1.
> 
> FWIW:
> gcc (GCC) 5.1.0 (but my first post was with gcc-4.9.2)
> clang version 3.6.0 (tags/RELEASE_360/final)
> 
> Tested versions: 24.4, 24.5 (again), Git emacs-24 branch (24.5.50), and
> Git master branch (25.0.50, also tried to use clang, for this one).
> 
> Unfortunately, still same issue:

Hi, Ted.

I've built a new system (Linux From Scratch SVN-20151002), without
stripping the tool-chain, for debugging purposes and tested this problem
today. To my surprise, the problem is gone.

Packages versions:
emacs-24.5
gcc-5.3.0
gnutls-3.4.7

Architecture:
x86_64

It may be some problem with the older system.

Please, do I need to do anything else to close this bug?

Thank you very much for the attention.

Apologies for not getting the problem solved in the other system.

-- 
[]s,
Fernando, aka Sísifo





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

* bug#20431: emacs-24.5 segfaults with gnutls-3.4.0
  2015-12-21 17:46     ` Fernando de Oliveira
@ 2015-12-22 15:17       ` Ted Zlatanov
  0 siblings, 0 replies; 5+ messages in thread
From: Ted Zlatanov @ 2015-12-22 15:17 UTC (permalink / raw)
  To: Fernando de Oliveira; +Cc: 20431-done

On Mon, 21 Dec 2015 14:46:24 -0300 Fernando de Oliveira <famobr@yahoo.com.br> wrote: 

FdO> I've built a new system (Linux From Scratch SVN-20151002), without
FdO> stripping the tool-chain, for debugging purposes and tested this problem
FdO> today. To my surprise, the problem is gone.
...
FdO> It may be some problem with the older system.

FdO> Please, do I need to do anything else to close this bug?

I think it's closed by now, but doing it here explicitly since I'm
replying anyhow.

Thank you for the bug report, and I'm glad it's working for you now.

Ted





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

end of thread, other threads:[~2015-12-22 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26 17:23 bug#20431: emacs-24.5 segfaults with gnutls-3.4.0 Fernando de Oliveira
2015-05-04 22:13 ` Ted Zlatanov
2015-05-05 12:39   ` Fernando de Oliveira
2015-12-21 17:46     ` Fernando de Oliveira
2015-12-22 15:17       ` Ted Zlatanov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.