[Top][All Lists]

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

Re: [XForms] Problem with fdesign (fdesigns menu bar)

From: ternaryd
Subject: Re: [XForms] Problem with fdesign (fdesigns menu bar)
Date: Sun, 27 Jun 2021 01:17:19 +0200

On Sat, 26 Jun 2021 15:47:12 -0700
Coby Hochstein <cjh39@cox.net> wrote:

> Hello,
> when I load fdesign and click on the "File"
> menu bar fdesign segmentation faults.
> I'm running xforms-1.2.4
> (gdb) run
> Starting program: /usr/local/bin/fdesign
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library 
> "/lib/arm-linux-gnueabihf/libthread_db.so.1".
> Program received signal SIGSEGV, Segmentation
> fault.
> strlen () at ../sysdeps/arm/armv6/strlen.S:26
> 26 ../sysdeps/arm/armv6/strlen.S: No such
> file or directory.
> (gdb)

> Any idea ?

fdesign is calculating the string length of a
string pointing to NULL.

Use a version of fdesign compiled with debugging
enabled, run it again until crash, and check the
coredump in gdb. Use the "up" command until you
reach a stack level belonging to fdesign (or
xforms). You should see which pointer is NULL.
Then you can try to figure out, why it is NULL
and how to fix it.

    $ ulimit -c unlimited
    $ ./fdesign ...
    $ gdb ./fdesign coredump
    (gdb> up

you can query the value of any variable at the
time of the crash with

    (gdb) p varname



reply via email to

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