SYGSEGV with gnuplot (Thomas)

Hi,
I tried to use gnuplot bug I get a strange SYGSEGV.
The problem is in command.c line 161.
the C line is:
input line = gp_malloc(MAX_LINE_LEN, "input_line);

Everything looks fine in gp_malloc where p = GP_FARMALLOC(size)
(alloc.c: 275) correctly allocates the request size, the pointer not
NULL) is returned and then, I get the SYGSEGV. I supposed that the
pointer is allocated out of the process by FARMALLOC() but how is it
possible???

Any idea.

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Hi,
I tried to use gnuplot bug I get a strange SYGSEGV.
The problem is in command.c line 161.
the C line is:
input line = gp_malloc(MAX_LINE_LEN, "input_line);

Everything looks fine in gp_malloc where p = GP_FARMALLOC(size)
(alloc.c: 275) correctly allocates the request size, the pointer not
NULL) is returned and then, I get the SYGSEGV. I supposed that the
pointer is allocated out of the process by FARMALLOC() but how is it
possible???

Hmm, how very odd. What is it that you are trying to plot?
I don’t see this bug here, but it is likely that I am not
running the same plots as you. Could it be possible that
your line is larger than 1024 characters?

Thanks,
Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Core OS Technology Group
(613)-591-0931 http://www.qnx.com/

Excuse me for the delay Thomas!

In fact I just try to see what happen when I call gnuplot demo/1.dat but
as I don’t know gnuplot, maybe I’m not supposed to do that!
So, I looked for some infos on the web and I found
http://www.cs.uni.edu/Help/gnuplot.
According to the first paragraph, I tried to just start gnuplot to get
its prompt, but the result is the same!

Any idea?

Thanks.
Alain.

thomasf@qnx.com wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hi,
I tried to use gnuplot bug I get a strange SYGSEGV.
The problem is in command.c line 161.
the C line is:
input line = gp_malloc(MAX_LINE_LEN, "input_line);


Everything looks fine in gp_malloc where p = GP_FARMALLOC(size)
(alloc.c: 275) correctly allocates the request size, the pointer not
NULL) is returned and then, I get the SYGSEGV. I supposed that the
pointer is allocated out of the process by FARMALLOC() but how is it
possible???


Hmm, how very odd. What is it that you are trying to plot?
I don’t see this bug here, but it is likely that I am not
running the same plots as you. Could it be possible that
your line is larger than 1024 characters?

Thanks,
Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com > Core OS Technology Group
(613)-591-0931 > http://www.qnx.com/