Coder Social home page Coder Social logo

Segmentation fault about git HOT 24 CLOSED

webmaster33 avatar webmaster33 commented on August 24, 2024
Segmentation fault

from git.

Comments (24)

dscho avatar dscho commented on August 24, 2024

Which architecture? Have you called autorebase.bat first? Have you built debug versions? Have you tried to get a stack trace via gdb?

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024
  • x64
  • no
  • no
  • no

How can I help you?

from git.

dscho avatar dscho commented on August 24, 2024

How can I help you?

Please build debug versions by deleting -O2 from the CFLAGS in /usr/src/git/Makefile and then calling make in /usr/src/git to rebuild.

Then run gdb -args /usr/src/git/git.exe version, call r and when it segfaults, obtain a stacktrace via bt.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

Result:

GIT_VERSION = 0
      * new build flags
               0 [main] mkdir 6572 stdio_init: couldn't make stderr distinct from stdout
    CC credential-store.o

How to fix this?

from git.

dscho avatar dscho commented on August 24, 2024

Whoa. The only thing I can think of is to use DuckDuckGo for the rescue. And it came up with a possible explanation: http://stackoverflow.com/questions/11868017/couldnt-make-stderr-distinct-from-stdout-when-running-cygwin-commands

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

I think make should be fine, as it is a cygwin make.
Maybe 64bit make is the problem?

c:\winprg\git-sdk-64\usr\src\git>make --version
GNU Make 4.1
Built for x86_64-unknown-cygwin
Copyright (C) 1988-2014 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.

from git.

dscho avatar dscho commented on August 24, 2024

Is it a fatal error, or more like a warning?

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

It's an error:

Makefile:1872: recipe for target 'credential-store.o' failed
make: *** [credential-store.o] Error 1

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

It may be also caused by path.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

Added
c:\cygwin64\bin
to path, instead of:
c:\GnuWin32\bin
so different version of make is found, and now can reach unix commands, too.

Now shows following error:

c:\git-sdk-64\usr\src\git>make
    * new build flags
    CC credential-store.o
                             CC archive-tar.o
                                                 CC archive-zip.o
                                                                 Makefile:2052:
recipe for target 'GIT-PREFIX' failed
make: *** [GIT-PREFIX] Error 1

from git.

dscho avatar dscho commented on August 24, 2024

Added
c:\cygwin64\bin
to path, instead of:
c:\GnuWin32\bin
so different version of make is found

The intention is to use MSys2's own make. No other make is supported, if they fail for you, you are on your own.

from git.

dscho avatar dscho commented on August 24, 2024

It's an error:

Makefile:1872: recipe for target 'credential-store.o' failed
make: *** [credential-store.o] Error 1

So here is a valuable lesson learned: do not truncate error messages. It will only result in useless back and forth until the complete error message is known anyway.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

The intention is to use MSys2's own make. No other make is supported, if they fail for you, you are on your own.
So I should add

c:\git-sdk-64\usr\bin\

to the path, right?

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

Ok, changed make path to c:\git-sdk-64\usr\bin:

c:\winprg\git-sdk-64\usr\src\git>make --version
GNU Make 4.1
Built for x86_64-pc-msys
Copyright (C) 1988-2014 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.

Make error:

c:\git-sdk-64\usr\src\git>make
FIND: Hibás paraméterformátum. (translated: bad parameter format or invalid argument)
    * new build flags
Makefile:1872: recipe for target 'credential-store.o' failed
make: *** [credential-store.o] Error 127

from git.

dscho avatar dscho commented on August 24, 2024

So I should add

c:\git-sdk-64\usr\bin\

to the path, right?

If you have to add that manually, I have to ask: do you use the Git SDK at all?

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

I don't use the SDK itself, just want to compile latest git version to use it, because the current Git for Windows release is only 1.9.5.

from git.

dscho avatar dscho commented on August 24, 2024

The Git for Windows 1.x project is still maintained elsewhere: https://github.com/msysgit.

This here issue tracker concerns Git for Windows 2.x, the successor, switching from the development environment called "msysgit" to the development environment we henceforth will call "Git SDK".

I am afraid that you really will have to specify exactly what you did, based on what software, to avoid a conversation that is as frustrating to both of us as the above one.

from git.

dscho avatar dscho commented on August 24, 2024

I installed git v2.3.5 using net-installer:
[...]
I don't use the SDK itself, just want to compile latest git version to use it, because the current Git for Windows release is only 1.9.5.

Whoa, now I am really, really confused. These two statements are contradicting each other.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

Whoa, now I am really, really confused. These two statements are contradicting each other.

Well, I suppose SDK is for developing & testing GIT itself.
I don't develop GIT, just want to compile GIT to use it in my developments.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

This here issue tracker concerns Git for Windows 2.x, the successor, switching from the development environment called "msysgit" to the development environment we henceforth will call "Git SDK".

Ok, this is more clear now.
It was renamed.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

I followed instructions on this page:
#13 (comment)

For the ones who does want to try out the current state of development, and even want to help test it, here is a little HOWTO:
 - Download net-installer for the Git for Windows SDK and install it.
 - Startup the MinGW Git for Windows SDK shell (Look for shortcuts in the Git for Windows SDK install folder)
 - Clone the build-extra repository and checkout the feature branch portable-release within the Git for Windows SDK.
 - Change in the portable directory of the new clone.
 - Run the ./release.sh <version-no> shell script. That should create you a portable installer for Git for Windows in your home directory.
 - Test it!

Well, after using net-installer, everything went fine, but I got seg-fault in command line, when starting a git command.

from git.

dscho avatar dscho commented on August 24, 2024

Well, I suppose SDK is for developing & testing GIT itself.
I don't develop GIT, just want to compile GIT to use it in my developments.

Well, the SDK is for developing, building and testing. From my point of view it makes no sense to refuse to use the SDK when one wants to build Git.

In any case, you reported a bug that I cannot reproduce, so if you want to see this bug fixed, I am afraid that you have to do something about it, i.e. build with debug information and then debug in the way I patiently described.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

I will now try net-installer again, after the path conflict was fixed.
It might happen, that path conflict was the cause of seg-fault.

from git.

webmaster33 avatar webmaster33 commented on August 24, 2024

OK. Successful install.
No more seg-fault.

c:\git-sdk-64\cmd>git --version
git version 2.3.5.windows.6

Likely the path conflict caused the seg-fault, while was built using libraries not in the SDK itself.

Thanks for your help.

I learned something again.

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.