Author Topic: Segmentation fault in 21.0.3, hotfix 5  (Read 342 times)

rowbearto

  • Senior Community Member
  • Posts: 715
  • Hero Points: 23
Segmentation fault in 21.0.3, hotfix 5
« on: July 13, 2017, 03:55:23 pm »
I uploaded a file to support.slickedit.com called osn_ii.cc.

After I open this file in SE editor window, after about 10 seconds SE crashes with a segmentation fault.

Unfortunately, I can't find a core dump in the directory where SE was launched from, and I did use ulimit -c unlimited, so I don't know why I don't have a core dump.

But maybe you can reproduce it on your end?

Note that I have .cc extension configured as C++ files for SE, so you may need to change default configuration for that.

As a workaround, if I remove the .cc extension, call the file just "osn_ii", then there is no crash.

This file is from the output of a preprocessor.
« Last Edit: July 13, 2017, 04:33:17 pm by rowbearto »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 768
  • Hero Points: 39
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #1 on: July 13, 2017, 04:48:16 pm »
I can reproduce it with 21.0.3 hotfix 5 on, couldn't with hotfix 1.  I'm looking into it. 

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 768
  • Hero Points: 39
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #2 on: July 19, 2017, 01:13:14 pm »
Quick update, fix is being worked on.  Sounds like we'll have to provide a new executable when it's done, not a hotfix.

mwb1100

  • Senior Community Member
  • Posts: 132
  • Hero Points: 11
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #3 on: July 19, 2017, 07:10:17 pm »
Can you comment about whether this is something triggered by the osn_ii.cc file that's unlikely to happen with other files?  Basically, should C++ users avoid hotfix 5 or is there a workaround by avoiding some construct or pattern in source files?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 768
  • Hero Points: 39
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #4 on: July 19, 2017, 07:55:04 pm »
The problem not specific to hotfix 5.  I made a mistake when I was trying to reproduce it, so initially I did think that.

The problem is pretty hard to hit.  And also hard to characterize the kinds of files that could trigger it.  osn_ii.cc got just got "lucky" I think.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 768
  • Hero Points: 39
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #5 on: July 19, 2017, 07:56:01 pm »
Oh, rowbearto, you're 64 bit linux, right?

rowbearto

  • Senior Community Member
  • Posts: 715
  • Hero Points: 23
Re: Segmentation fault in 21.0.3, hotfix 5
« Reply #6 on: July 19, 2017, 08:26:17 pm »
correct, 64bit linux. The issue also occurred on 64bit windows 7.