2018.01.19 15:34 "[Tiff] Modifying field values without rewriting the whole directory", by

2018.03.02 18:43 "Re: [Tiff] SIGSEGV (Segmentation fault)", by Roger Leigh

On 02/03/2018 02:25, Bhaskar Reddy wrote: > On Mar 1, 2018 16:16, "Roger Leigh" <rleigh@codelibre.net > <mailto:rleigh@codelibre.net>> wrote:

On 01/03/18 21:59, Bhaskar Reddy wrote:

> Hi,
>
> I am working on writing Tiff image using library TIFF 4.0.8 and tool
> SXIV(an image viewer in Linux)
>
> I got error "*Signal received: SIGSEGV (Segmentation fault)*
> For program sxiv, pid 18,720 " in */TIFFopen/* function in *tif_unix.c*
>

> I guess the line "_fd = open(name, m, 0666);_ " caused this issue.

To start with the obvious, did you run the program under gdb and get a

> stacktrace?  Is name null or invalid?  Is m null or invalid?

I ran the program in Netbeans 8.0

This doesn't answer my question; your editor/IDE is immaterial. I don't mean to be blunt, but if you want some help with the problem, you'll have to provide some useful information we do something with. Run the program with a debugger and get a stacktrace. Print the values of name and m in the stack frame calling TIFFopen, and in the frame for TIFFopen. Find which caused the segmentation fault, and look at the source to see why it got one or both of these variables into an invalid state.

If you can, point us to your source code so we can have a look.

Regards,
Roger