Open-source Languages & Tools for z/OS

 View Only
Expand all | Collapse all

"git bisect" dies with SIGSEGV

  • 1.  "git bisect" dies with SIGSEGV

    Posted 07-17-2018 05:37

    Hi,

    I’m trying to use “git bisect” on z/OS, but it crashes with a segmentation fault:

    $ git version                                       
    git version 2.3.5_os390_b013
    $ git bisect start HEAD 4471995 --                                   
    CEE5203S The signal SIGSEGV was received.
    error: git-bisect died of signal 11
    

    Is anybody using “git bisect” successfully? Is this a known problem?



  • 2.  RE: "git bisect" dies with SIGSEGV

    Posted 07-20-2018 02:56

    Hi Stephan,
    I cannot reproduce this error in my environment with same git version.
    Could you please provide us with env | sort command output so we can investigate it.
    Thanks,
    Dan.



  • 3.  RE: "git bisect" dies with SIGSEGV

    Posted 07-20-2018 03:23

    Hi Dan,

    thanks for taking a look at this.

    This is the output of env | sort:

    ATSHOSTNAME=zpdt
    GIT_EXEC_PATH=/usr/local/libexec/git-core
    GIT_SHELL=/usr/local/bin/bash
    GIT_SSH=/bin/ssh
    GIT_TEMPLATE_DIR=/usr/local/share/git-core/templates
    HOME=/u/ibmuser
    HOSTNAME=zpdt2
    INFOPATH=:/usr/local/share/info/
    LANG=C
    LIBPATH=/lib:/usr/lib:.
    LOGNAME=IBMUSER
    M4=/usr/local/bin/m4
    MAIL=/usr/mail/IBMUSER
    MANPATH=/usr/man/%L:/usr/local/man:/usr/local/share/man/
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    OLDPWD=/u/ibmuser
    PAGER=less
    PATH=/usr/local/bin:/usr/lpp/java/J6.0.1/bin:/bin:.::/usr/local/bin
    PERL5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5
    PERl5LIB=/usr/local/lib/perl5:/usr/local/lib/perl5:/usr/local/perl-5.16.2/lib
    PS1=\[\e]0;zpdt2[${VIEW}]: \w\a\]zpdt2 ($shell_level) $
    PWD=/u/ibmuser/tmp/stm/openssl
    SAVE_LIBPATH=/lib:/usr/lib:.
    SAVE_PATH=/usr/local/bin:/usr/lpp/java/J6.0.1/bin:/bin:.::/usr/local/bin
    SHELL=/usr/local/bin/bash
    SHLVL=1
    SSH_AUTH_SOCK=/tmp/ssh-vFVgLnsdHP/agent.83951692
    SSH_CLIENT=192.168.4.106 65272 22
    SSH_CONNECTION=192.168.4.106 65272 192.168.4.208 22
    SSH_TTY=/dev/ttyp0000
    STEPLIB=CBC.SCCNCMP
    TERM=xterm
    TMPDIR=/usr/local/tmp
    TZ=CET-1
    USER=IBMUSER
    _=/bin/env
    _BPXK_AUTOCVT=ON
    _CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
    _TAG_REDIR_ERR=txt
    _TAG_REDIR_IN=txt
    _TAG_REDIR_OUT=txt
    shell_level=1
    

    Here’s also the output of the git bisect command with tracing turned on:

    08:22:07.141200 ./git.c:560             trace: exec: 'git-bisect' 'start' 'HEAD' '4471995' '--'
    08:22:07.141559 ./run-command.c:369     trace: run_command: 'git-bisect' 'start' 'HEAD' '4471995' '--'
    08:22:07.212366 ./run-command.c:131     trace: execvp: 'git-bisect' 'start' 'HEAD' '4471995' '--'
    08:22:08.065485 ./git.c:351             trace: built-in: git 'rev-parse' '--git-dir'
    08:22:08.300613 ./git.c:351             trace: built-in: git 'rev-parse' '--show-cdup'
    08:22:08.667969 ./git.c:351             trace: built-in: git 'rev-parse' '--sq-quote' 'HEAD' '4471995' '--'
    08:22:08.841416 ./git.c:351             trace: built-in: git 'rev-parse' '--is-bare-repository'
    08:22:09.026059 ./git.c:351             trace: built-in: git 'rev-parse' '-q' '--verify' 'HEAD^{commit}'
    08:22:09.712469 ./git.c:351             trace: built-in: git 'rev-parse' '-q' '--verify' '4471995^{commit}'
    08:22:11.967280 ./git.c:351             trace: built-in: git 'symbolic-ref' '-q' 'HEAD'
    08:22:12.162699 ./git.c:351             trace: built-in: git 'for-each-ref' '--format=%(refname) %(objectname)' 'refs/bisect/*'
    08:22:13.272426 ./git.c:351             trace: built-in: git 'update-ref' '-d' '--no-deref' 'BISECT_HEAD'
    08:22:13.630822 ./git.c:351             trace: built-in: git 'for-each-ref' '--format=%(refname) %(objectname)' 'refs/bisect/*'
    08:22:14.726756 ./git.c:351             trace: built-in: git 'update-ref' '-d' '--no-deref' 'BISECT_HEAD'
    CEE5203S The signal SIGSEGV was received.
    error: git-bisect died of signal 11


  • 4.  RE: "git bisect" dies with SIGSEGV

    Posted 07-20-2018 06:12

    Stephan,
    to exclude the influence of the environment I suggest you to change your paths and git placement in accordance with README.ZOS file. Especially noticeable PERL5LIB path to lesser version (5.16.2) than we’re providing with git 2.3.5 (5.24.0).
    README.ZOS could be found at:
    git-2.3.5_b013.161229.tar.gz/share/doc/git/2.3.5/
    Perl lib could be found at:
    git-2.3.5_b013.161229.tar.gz/lib/perl5/5.24.0/

    Thanks,
    Dan.



  • 5.  RE: "git bisect" dies with SIGSEGV

    Posted 07-20-2018 09:27

    Dan,

    thank you for the hint about the environment. I cannot easily change this setup now.

    But does git depend on perl at all? I’m asking because even if I unset the PERL5LIB variable, the crash still occurs.



  • 6.  RE: "git bisect" dies with SIGSEGV

    Posted 07-23-2018 09:15

    Hi Stephan,
    We are not able to reproduce the problem. I have created an internal ticket for this problem, we will try to find a reason, why this error occurs.

    Thanks,
    Tatyana