git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-submodule nested subrepo bug (Segmentation fault)
@ 2013-05-20  5:32 Kirill Berezin
  2013-05-20 10:29 ` John Keeping
  0 siblings, 1 reply; 4+ messages in thread
From: Kirill Berezin @ 2013-05-20  5:32 UTC (permalink / raw)
  To: git

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.

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

* Re: git-submodule nested subrepo bug (Segmentation fault)
  2013-05-20  5:32 git-submodule nested subrepo bug (Segmentation fault) Kirill Berezin
@ 2013-05-20 10:29 ` John Keeping
  2013-05-22 20:03   ` Kirill Berezin
  0 siblings, 1 reply; 4+ messages in thread
From: John Keeping @ 2013-05-20 10:29 UTC (permalink / raw)
  To: Kirill Berezin; +Cc: git

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.

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

* Re: git-submodule nested subrepo bug (Segmentation fault)
@ 2013-05-22  8:08 John Keeping
  0 siblings, 0 replies; 4+ messages in thread
From: John Keeping @ 2013-05-22  8:08 UTC (permalink / raw)
  To: git; +Cc: Kirill Berezin

I'm guessing Kirill meant to send this to the list and not just to me.

It looks to me like the segfault is in MSys's mkdir.exe and not a Git
process.

----- Forwarded message from Kirill Berezin <enelar@develop-project.ru> -----

From: Kirill Berezin <enelar@develop-project.ru>
To: John Keeping <john@keeping.me.uk>
Date: Wed, 22 May 2013 09:54:47 +0400
Message-ID: <CAAObgf-PE_6pf3af5Uba8RfKwXa43GXeG9RoMjf62uSZ7k4mTg@mail.gmail.com>
Subject: 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

PS so much mails per day...

2013/5/20 Kirill Berezin <enelar@develop-project.ru>:
> This is standart github shell(Windows 7). Right now i cant access my
> home platform, will tell you tommorow.
>
> 2013/5/20 John Keeping <john@keeping.me.uk>:
>> 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.



----- End forwarded message -----

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

* Re: git-submodule nested subrepo bug (Segmentation fault)
  2013-05-20 10:29 ` John Keeping
@ 2013-05-22 20:03   ` Kirill Berezin
  0 siblings, 0 replies; 4+ messages in thread
From: Kirill Berezin @ 2013-05-22 20:03 UTC (permalink / raw)
  To: git

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>:
> 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.

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

end of thread, other threads:[~2013-05-22 20:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20  5:32 git-submodule nested subrepo bug (Segmentation fault) Kirill Berezin
2013-05-20 10:29 ` John Keeping
2013-05-22 20:03   ` Kirill Berezin
  -- strict thread matches above, loose matches on Subject: below --
2013-05-22  8:08 John Keeping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).