bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with SIGSEVG on free_form() call...


From: neutrino network
Subject: Re: Problem with SIGSEVG on free_form() call...
Date: Fri, 20 Sep 2013 09:21:56 +0500

Hi  Mark,
It seems you are trying to free/access the form that was not allocated memory (or memory you are pointing is invalid). You should confirm/compare the memory address of the form at time of its creation and the memory address of form passed at time of free.



On Fri, Sep 20, 2013 at 2:39 AM, Mark Bobak <address@hidden> wrote:
Hi all,

I'm very much a newbie to ncurses programming.

I'm running ncurses 5.7.3 on Oracle Linux 6.4.

I'm a bit baffled, as I'm getting a SIGSEV on a free_form() call.  I'm definitely calling it on a valid form.

Here's what I'm seeing when I run through gdb:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de7d94 in Disconnect_Fields (form=0x4019e5) at ../../form/frm_def.c:129
129      for (fields = form->field; *fields; fields++)
(gdb) backtrace
#0  0x00007ffff7de7d94 in Disconnect_Fields (form=0x4019e5) at ../../form/frm_def.c:129
#1  0x00007ffff7de7e15 in free_form (form=0x4019e5) at ../../form/frm_def.c:343
#2  0x00000000004017fd in main (argc=1, argv=0x7fffffffe508) at ncurses_form.c:209

Is this a known bug?  Am I just an idiot? :-)

As I said, I'm still very new to programming ncurses, and I'm afraid it's something blindingly obvious, but, I'm just not seeing it.

Thanks,

-Mark

_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses



reply via email to

[Prev in Thread] Current Thread [Next in Thread]