bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building bash 5.x problems+coredumps


From: L A Walsh
Subject: Re: building bash 5.x problems+coredumps
Date: Tue, 09 Jul 2019 00:27:27 -0700
User-agent: Thunderbird


On 2019/07/08 18:55, Eduardo Bustamante wrote:
> On Mon, Jul 8, 2019 at 3:44 PM L A Walsh <address@hidden> wrote:
>   
>> This hasn't worked for me yet, that I remember.  Some of itt may be in some
>> library I'm linking, but not sure what might be causing the problem.
>>     
>
> Can you provide more information about your environment?
>
> - Compiler & version version
> - "configure" flags
> - Operating system & version
> - libc & version
> - stack trace for the core dump
>   
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go
--enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none,
--without-cuda-driver --enable-checking=release --disable-werror
--with-gxx-include-dir=/usr/include/c++/8 --enable-ssp --disable-libssp
--disable-libvtv --disable-cet --disable-libcc1 --enable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex
--enable-gnu-indirect-function --program-suffix=-8
--without-system-libunwind --enable-multilib --with-arch-32=x86-64
--with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 8.2.1 20180817 [gcc-8-branch revision 263612] (SUSE Linux)
----
config (from bottom of 1st note)

Config looks like:
prefix=, eprefix=, lib=, libdir=.
setting flags for link-time-optimize: add -flto -Wl,--no-as-needed
setting flags for debug: add -Og -g3 -ggdb
prefix=/, eprefix=/ libdir=/lib64
-fpic -march=native -pipe -flto -Wl,--no-as-needed -Og -g3 -ggdb
-fpic -march=native -pipe -flto -Wl,--no-as-needed -Og -g3 -ggdb
-Wl,--default-imported-symver -Wl,--default-symver -Wl,--stats
CFLAGS="$CFLAGS" LD_FLAGS="$LDFLAGS" ./configure "--prefix=/
--bindir=/bin --sbindir=/sbin --datadir=/share --includedir=/include
--oldincludedir=/usr/include --libdir=/lib64 --libexecdir=/lib64/bash
--localstatedir=/var --sharedstatedir=/com --sysconfdir=/etc
--enable-alias --enable-arith-for-command --enable-array-variables
--enable-brace-expansion --enable-casemod-attributes
--enable-casemod-expansions --enable-command-timing
--enable-cond-command --enable-cond-regexp --enable-coprocesses
--enable-debugger --enable-directory-stack --enable-disabled-builtins
--enable-dparen-arithmetic --enable-extended-glob
--enable-extended-glob-default --enable-function-import
--enable-glob-asciiranges-default --enable-help-builtin --enable-history
--enable-job-control --enable-multibyte --enable-net-redirections
--enable-process-substitution --enable-progcomp
--enable-prompt-string-decoding --enable-readline --enable-select
--enable-single-help-strings --disable-nls --disable-rpath
---
OS Linux, 5.1.15
libc 2.29
stack trace from coredump
(gdb) where
#0  0x0000003000238d8b in raise () from /lib64/libc.so.6
#1  0x0000003000222612 in abort () from /lib64/libc.so.6
#2  0x00000000004a05d1 in programming_error (
    format=0x4cb840 "free: called with unallocated block argument")
    at error.c:175
#3  0x00000000004277f2 in xbotch (mem=mem@entry=0x539fd0, e=e@entry=2, 
    s=s@entry=0x4cb840 "free: called with unallocated block argument", 
    file=file@entry=0x4e1670 "subst.c", line=line@entry=4701) at malloc.c:354
#4  0x0000000000427862 in internal_free (mem=0x539fd0, 
    file=0x4e1670 "subst.c", line=4701, flags=flags@entry=1) at malloc.c:934
#5  0x0000000000427e98 in sh_free (mem=<optimized out>, file=<optimized out>, 
    line=<optimized out>) at malloc.c:1321
#6  0x00000000004699ea in sh_xfree (string=<optimized out>, 
    file=<optimized out>, line=<optimized out>) at xmalloc.c:223
#7  0x00000000004971d0 in remove_pattern (param=<optimized out>, 
    pattern=pattern@entry=0x5c1928 "/*", op=op@entry=4) at subst.c:4701
#8  0x0000000000497e37 in parameter_brace_remove_pattern (
    varname=0x5b5808 "HOME", value=<optimized out>, ind=<optimized out>, 
    patstr=<optimized out>, rtype=<optimized out>, quoted=0, flags=0)
    at subst.c:5260
#9  0x000000000048de2c in parameter_brace_expand (
    string=0x5c23c8 "_home_prefix=${HOME%/*}/", 
    indexp=indexp@entry=0x7ffcb16b6c58, quoted=quoted@entry=0, 
    pflags=pflags@entry=8, 
    quoted_dollar_atp=quoted_dollar_atp@entry=0x7ffcb16b6d68, 
    contains_dollar_at=contains_dollar_at@entry=0x7ffcb16b6d60) at subst.c:9016
#10 0x000000000048e6cc in param_expand (
    string=string@entry=0x5c23c8 "_home_prefix=${HOME%/*}/", 
    sindex=sindex@entry=0x7ffcb16b6d6c, quoted=quoted@entry=0, 
    expanded_something=expanded_something@entry=0x7ffcb16b6e4c, 
    contains_dollar_at=contains_dollar_at@entry=0x7ffcb16b6d60, 
    quoted_dollar_at_p=quoted_dollar_at_p@entry=0x7ffcb16b6d68, 
    had_quoted_null_p=0x7ffcb16b6d64, pflags=8) at subst.c:9423
#11 0x000000000048f7d5 in expand_word_internal (word=0x5c1ec8, 
    quoted=quoted@entry=0, isexp=isexp@entry=0, 
    contains_dollar_at=contains_dollar_at@entry=0x7ffcb16b6e48, 
    expanded_something=expanded_something@entry=0x7ffcb16b6e4c) at subst.c:9990
#12 0x0000000000490f3b in shell_expand_word_list (tlist=0x54d8e8, 
    tlist@entry=0x550568, eflags=eflags@entry=31) at subst.c:11335
---Type <return> to continue, or q <return> to quit--- 
#13 0x0000000000491051 in expand_word_list_internal (list=<optimized out>, 
    eflags=eflags@entry=31) at subst.c:11459
#14 0x0000000000491378 in expand_words (list=<optimized out>) at subst.c:10979
#15 0x00000000004b4a22 in execute_simple_command (simple_command=0x54ac48, 
    pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, async=async@entry=0, 
    fds_to_close=fds_to_close@entry=0x54f808) at execute_cmd.c:4307
#16 0x00000000004b5fcd in execute_command_internal (command=0x54c8c8, 
    asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x54f808)
    at execute_cmd.c:841
#17 0x0000000000466488 in parse_and_execute (string=<optimized out>, 
    from_file=0x5b31c8 "/etc/local/aliases.sh", flags=20) at evalstring.c:456
#18 0x000000000046aa54 in _evalfile (
    filename=0x5b31c8 "/etc/local/aliases.sh", flags=14) at evalfile.c:285
#19 0x000000000046aab6 in source_file (filename=<optimized out>, 
    sflags=<optimized out>) at evalfile.c:380
#20 0x000000000045df0c in source_builtin (list=0x5b2b68) at ./source.def:195
#21 0x00000000004b0a1e in execute_builtin (builtin=0x45dda1 <source_builtin>, 
    words=0x5b2a48, flags=0, subshell=0) at execute_cmd.c:4708
#22 0x00000000004af2c4 in execute_builtin_or_function (words=0x5b2a48, 
    builtin=0x45dda1 <source_builtin>, var=0x0, redirects=<optimized out>, 
    fds_to_close=0x5b2a28, flags=0) at execute_cmd.c:5216
#23 0x00000000004b50e1 in execute_simple_command (simple_command=0x5b36c8, 
    pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, async=async@entry=0, 
    fds_to_close=fds_to_close@entry=0x5b2a28) at execute_cmd.c:4478
#24 0x00000000004b5fcd in execute_command_internal (
    command=command@entry=0x5b0f48, asynchronous=asynchronous@entry=0, 
    pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, 
    fds_to_close=fds_to_close@entry=0x5b2a28) at execute_cmd.c:841
#25 0x00000000004b80aa in execute_command (command=0x5b0f48)
    at execute_cmd.c:394
#26 0x00000000004b8e9e in execute_connection (command=command@entry=0x5a9ac8, 
    asynchronous=asynchronous@entry=0, pipe_in=pipe_in@entry=-1, 
    pipe_out=pipe_out@entry=-1, fds_to_close=fds_to_close@entry=0x5acbc8)
    at execute_cmd.c:2700
#27 0x00000000004b6365 in execute_command_internal (
    command=command@entry=0x5a9ac8, asynchronous=asynchronous@entry=0, 
    pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, 
    fds_to_close=fds_to_close@entry=0x5acbc8) at execute_cmd.c:1015
#28 0x00000000004b80aa in execute_command (command=0x5a9ac8)
---Type <return> to continue, or q <return> to quit---
    at execute_cmd.c:394
#29 0x00000000004b81ca in execute_if_command (if_command=0x5ac688)
    at execute_cmd.c:3691
#30 0x00000000004b62d8 in execute_command_internal (command=0x5b5108, 
    asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x5b09e8)
    at execute_cmd.c:967
#31 0x0000000000466488 in parse_and_execute (string=<optimized out>, 
    from_file=0x5b4948 "/etc/local/bashrc.sh", flags=20) at evalstring.c:456
#32 0x000000000046aa54 in _evalfile (filename=0x5b4948 "/etc/local/bashrc.sh", 
    flags=14) at evalfile.c:285
#33 0x000000000046aab6 in source_file (filename=<optimized out>, 
    sflags=<optimized out>) at evalfile.c:380
#34 0x000000000045df0c in source_builtin (list=0x5b4b68) at ./source.def:195
#35 0x00000000004b0a1e in execute_builtin (builtin=0x45dda1 <source_builtin>, 
    words=0x5b49e8, flags=0, subshell=0) at execute_cmd.c:4708
#36 0x00000000004af2c4 in execute_builtin_or_function (words=0x5b49e8, 
    builtin=0x45dda1 <source_builtin>, var=0x0, redirects=<optimized out>, 
    fds_to_close=0x5b4708, flags=0) at execute_cmd.c:5216
#37 0x00000000004b50e1 in execute_simple_command (simple_command=0x5ae308, 
    pipe_in=pipe_in@entry=-1, pipe_out=pipe_out@entry=-1, async=async@entry=0, 
    fds_to_close=fds_to_close@entry=0x5b4708) at execute_cmd.c:4478
#38 0x00000000004b5fcd in execute_command_internal (command=0x5adb48, 
    asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x5b4708)
    at execute_cmd.c:841
#39 0x0000000000466488 in parse_and_execute (string=<optimized out>, 
    from_file=0x5b0648 "/home/law/.bashrc", flags=20) at evalstring.c:456
#40 0x000000000046aa54 in _evalfile (
    filename=filename@entry=0x5b0648 "/home/law/.bashrc", flags=9)
    at evalfile.c:285
#41 0x000000000046ab57 in maybe_execute_file (fname=<optimized out>, 
    force_noninteractive=1) at evalfile.c:330
#42 0x00000000004c97c3 in run_startup_files () at shell.c:1198
#43 0x00000000004ca49c in main (argc=1, argv=0x7ffcb16b8008, 
    env=0x7ffcb16b8018) at shell.c:694

I think I'm going to see if I can recompile with more debug...





--with-bash-malloc --with-gnu-ld"






reply via email to

[Prev in Thread] Current Thread [Next in Thread]