threads / bug / 33875

git-submodule nested subrepo bug (Segmentation fault)

Subject: git-submodule nested subrepo bug (Segmentation fault)

## tl;dr

3 messages between May 20, 2013 and May 22, 2013.

replies: 2people: 2as markdown or json

Kirill Berezin· May 20, 2013, 05:32 UTC · lore

When you trying to add submodule, that already has submodule, it craches. For example you could try: git clone --recursive http://github.com/Exsul/al_server

Its happens because git dont create `modules` directory. al_server/.git/modules

Workaround for it wont work to: git submodule update --init It init only first level of subrepos. When you do: cd chat git submodule update --init It crashes cause missed `modules` directory for submodule: al_server/.git/modules/chat/modules

Final workaround is create this directory and try last command again.
John Keeping· May 20, 2013, 10:29 UTC · re: Kirill Berezin · lore

Re: git-submodule nested subrepo bug (Segmentation fault)

On Mon, May 20, 2013 at 09:32:21AM +0400, Kirill Berezin wrote:
> When you trying to add submodule, that already has submodule, it craches.
> For example you could try: git clone --recursive
> http://github.com/Exsul/al_server

Which version of Git were you using? I was not able to reproduce this with 1.8.3-rc3.

Kirill Berezin· May 22, 2013, 20:03 UTC · re: John Keeping · lore

Re: git-submodule nested subrepo bug (Segmentation fault)

Ok, version is: 1.8.1.msysgit.1 Segmentation fault at the git clone --recursive http://github.com/Exsul/al_server 0 [main] mkdir 6596 open_stackdumpfile: Dumping stack trace to mkdir.exe.stackdump C:\Users\....\libexec\git-core\git-submodule: line 181: 6596 Segmentation fault (core dumped) mkdir -p "$ditdir_base" fatal: Could not switch to 's:/USER/..../al_server/.git/modules/': No such file or directory Clone of 'https://.../Exsul/chat.git' into submodule path 'chat' failed

2013/5/20 John Keeping <john@keeping.me.uk>:
Show 7 quoted lines
> On Mon, May 20, 2013 at 09:32:21AM +0400, Kirill Berezin wrote:
>> When you trying to add submodule, that already has submodule, it craches.
>> For example you could try: git clone --recursive
>> http://github.com/Exsul/al_server
>
> Which version of Git were you using?  I was not able to reproduce this
> with 1.8.3-rc3.

← back to recent threads