Author Topic: Segmentation Fault when adding Git repo on Repository Browser  (Read 709 times)

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Segmentation Fault when adding Git repo on Repository Browser
« on: September 17, 2018, 06:51:30 pm »
SlickEdit crashes and generates a Segmentation fault every time I try to add a Git repository through the Repository Browser.
I can see this issue on Beta 3 as well. Other Git operations like "History for <file>" and "Compare Directory with git" work properly.

SlickEdit Pro 2018 (v23.0.0.5 64-bit)

Serial number: FE15384_BETA
License type: Beta License
License expiration: 2018-10-09 20:00:00
License file: /home/vagrant/slickedit-pro2018beta4/bin/slickedit.lic

Build Date: September 06, 2018
Emulation: CUA

OS: Linux
OS Version: Linux Mint 17.3 Rosa
Kernel Level: 3.19.0-32-generic
Build Version: #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015
Processor Architecture: x86_64

X Server Vendor: The X.Org Foundation
Memory: 91% Load, 10284MB/11198MB Virtual
Shell Information: /home/vagrant/slickedit-pro2018beta4/bin/secsh -i
Screen Size: 1920 x 986, 1920 x 1016

Project Type: Gnuc
Language: .cpp (C/C++)
Encoding: Automatic

Installation Directory: /home/vagrant/slickedit-pro2018beta4/
Configuration Directory: /home/vagrant/.slickedit/23.0.0/

« Last Edit: September 17, 2018, 06:58:56 pm by Juan Fonseca »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2264
  • Hero Points: 126
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #1 on: September 17, 2018, 06:53:05 pm »
Is it a local or public repository?  Did the graph come up before it crashed?

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #2 on: September 17, 2018, 07:01:22 pm »
The repo is local. The Repository Browser comes up before SlickEdit crashes.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2264
  • Hero Points: 126
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #3 on: September 17, 2018, 07:11:47 pm »
Can you upload the core file?

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #4 on: September 17, 2018, 07:12:58 pm »
Where do I find it?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2264
  • Hero Points: 126
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #5 on: September 17, 2018, 07:14:37 pm »
I believe it will be in the current directory of the editor when it crashed.

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #6 on: September 17, 2018, 07:29:23 pm »
I don't see any files generated in the pwd after the crash. This is all I get.

Segmentation fault

[1]+  Exit 139                ~/slickedit-pro2018beta4/bin/vs

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #7 on: September 17, 2018, 07:33:49 pm »
Also, I can not reproduce the crash on Windows 7.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1003
  • Hero Points: 85
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #8 on: September 18, 2018, 01:20:43 pm »
So a few possibilities with the core file. 

It could be that core file generation is disabled.  If you run "ulimit -c" and it comes back with "0", then that's the case. You can run "ulimit -c unlimited" from the shell prompt, then run SlickEdit from that shell, and reproduce the crash.

Once it's generated, there are a few places it could be.  The old default location is the working directory of the process when it crashed.  Most of the time, this will be the root directory of your open project - the directory the .vpw file resides in.

If your version of Mint uses apport, then the file will be in /var/crash.

If it's not there, cat /proc/sys/kernel/core_pattern.  This will give us either a location pattern for where the core dumps are configured to be dropped on your system, or the program that handles dumps.

If you locate the dump, we'll PM you with instructions on how to upload it to us.
 

Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #9 on: September 18, 2018, 04:00:28 pm »
"ulimit -c" returned "0", I ran "ulimit -c unlimited" and got the following message after the error.

~/slickedit-pro2018beta4/bin/vs
Segmentation fault (core dumped)

cat /proc/sys/kernel/core_pattern printed the word core.

I don't see any output files in any of the locations from the last message.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1003
  • Hero Points: 85
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #10 on: September 18, 2018, 04:21:03 pm »
Well, from that pattern, it should just be "core" in the working directory the SlickEdit process when it crashed.  It's possible that our git support code had changed the working directory temporarily when the crash happened, which could complicate matters.

If you can't find the file named "core" in any subdirectories of your source tree, we can do an end run and try to get a backtrace directly with gdb, assuming you have gdb installed.  Almost as good as a core file.

  • Start slickedit with gdb like this: gdb /PATH/TO/SLICKEDIT/INSTALL/bin/vs_exe
  • At the gdb prompt, type "run" and hit enter.  Slickedit should start up.  Reproduce the crash.
  • Once it crashes, the gdb prompt should come back.  Type in "bt", hit enter, and post the output you got




Juan Fonseca

  • Community Member
  • Posts: 33
  • Hero Points: 1
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #11 on: September 18, 2018, 05:29:02 pm »
I found the core file, it put it in the directory of the file that was opened when it crashed.
How do I get it to you?

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 270
  • Hero Points: 24
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #12 on: September 18, 2018, 05:34:41 pm »
PM with upload instructions sent.

SlickEdit Support

at5dapa1

  • Senior Community Member
  • Posts: 157
  • Hero Points: 13
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #13 on: September 18, 2018, 10:35:20 pm »
I think I see the same but on Windows 7 x64. Coredump and extra details uploaded to "CAS-71094-K4SF" (7-zip split in two parts).

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2264
  • Hero Points: 126
Re: Segmentation Fault when adding Git repo on Repository Browser
« Reply #14 on: September 19, 2018, 03:40:32 pm »
I asked this before but I want to rephrase it to be sure I know the answer.  This is not a public repository, right?  There's no way I can get access to it?

@at5dapa1 is the issue you're seeing with a private repository?