(Solved) Tilda segmentation fault error - Salix64 Xfce 14.

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

(Solved) Tilda segmentation fault error - Salix64 Xfce 14.

Post by globetrotterdk »

I now have Salix64 Xfce 14 running on three of my computers - two laptops and my homebuilt tower/desktop pc :D I have been able to run Tilda (minimalist drop down, quake-like terminal) on two of my computers without any problems what so ever. Unfortunately, Tilda refuses to start on my tower pc, and kicks up the following error message:

Code: Select all

$ tilda
Segmentation fault
Anyone have an idea regarding a solution or can suggest an alternative app? Personally, I prefer Guake, but there doesn't seem to be a Slackbuild for Slackware 14.
Last edited by globetrotterdk on 23. Aug 2013, 09:51, edited 1 time in total.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by mimosa »

That looks as though it might be quite nice to use - no mouse.

Does the machine with the error have a different kernel, or any other difference you can think of? Here I have 3.2.45, 64 bits, and I get just the same error as you. I think that's the 14.0.1 kernel.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by globetrotterdk »

Thanks for the reply mimosa. All of the computers are using kernel 3.2.45.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by laprjns »

It seg faults here also. Looks like the build needs a patch http://sourceforge.net/p/tilda/patches/8/
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by globetrotterdk »

laprjns wrote:It seg faults here also. Looks like the build needs a patch http://sourceforge.net/p/tilda/patches/8/
I see that there is already one patch included with the tilda slackbuild files. I guess that is what happens as soon as software stops being developed.

It seems to me it would make more sense to either get the newest version of the xfce4 terminal (which supports a dropdown mode) or try to get Terminator to act like a dropdown terminal.

I have tried to get Terminator to function like a dropdown terminal, but it doesn't seem to work.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by mimosa »

The patch should be quite easy to apply. Either build from source applying the two patches, or download everything to a directory (including the new patch), add the needed line to the SlackBuild, execute, and install the resulting package. If you search the SlackBuild for "patch", you will see where the first patch is applied.

This is a good page on patches:

http://jungels.net/articles/diff-patch-ten-minutes.html
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by globetrotterdk »

Hmm. I seem to be doing something wrong. Here is the output:

Code: Select all

# fakeroot slkbuild -X
tilda-0.9.6/
tilda-0.9.6/README
tilda-0.9.6/tilda.png
tilda-0.9.6/tilda.desktop.in
tilda-0.9.6/m4/
tilda-0.9.6/m4/progtest.m4
-- snip --
tilda-0.9.6/po/sv.po
patching file src/tomboykeybinder.h
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/tilda_window.c	2008-01-17 23:07:39.000000000 +0100
|+++ src/tilda_window.c	2010-03-19 22:30:31.000000000 +0100
--------------------------
File to patch:
Here is what seems to be relevant in the SLKBUILD file:

Code: Select all

# Starting with glib 2.32 it is now mandatory to
# include glib.h instead of individual headers.
patch -p1 -i $CWD/glib-single-include.patch

# New patch from gentoo linux
patch -p1 -i $CWD/tilda-0.9.6-gdk_resources-1.patch

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  || exit 1
The new patch is in the same direcory as all of the other files.
-- edit --
It looks to me as if there is an error in the new patch. Is that correct?
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by mimosa »

Some experimentation here shows the patch level for the second patch needs to be 0:

patch -p0 -i $CWD/tilda-foo-patch

However the failure you posted relates to the first patch. Are you sure everything is in the right place? That is, all the files, including the SlackBuild, the source tarball, the two patches, and whatever else is on the slackbuilds.org tilda page, in one directory, from which you then execute the SlackBuild?

An easy way to achieve this is

Code: Select all

slapt-src -f tilda
which will put everything in /usr/src/slapt-src/system/tilda.

I think you also need to run it as root, not with fakeroot.

Code: Select all

cd /usr/src/slapt-src/tilda
vim ./tilda.SlackBuild
cp /path/to/downloaded/tilda-foo-patch ./
chmod +x tilda.SlackBuild
./tilda.SlackBuild
installpkg /tmp/tilda-foo-txz
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by globetrotterdk »

Many thanks mimosa, that seems to have done the job. I saved a copy of the resulting package in case anyone wants to host it
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Tilda segmentation fault error - Salix64 Xfce 14.

Post by mimosa »

Glad you got it working! It's playing quite nicely with xmonad here, too.

Looking at your output again, I see I was wrong about the error with the first patch - you were actually ok except for the patch level.

Regarding the patch level, if you look at the two patches, the new one is changing src/foo.c. That is the path from the top level of the source directory, where the patch is applied, so there is no need to change the patch level - therefore a patch level of zero is used. The other file refers to tilda-0.9.6/src/tomboy.foo, but we will already be inside the tilda-0.9.6 directory when the patch is applied, so there is one level of the directory hierarchy to ignore: patch level 1.

This in turn relates to the position in the directory hierarchy where diff was run to create the patch. Often, various changes are made to the source directory, and diff is run on the new and old versions (one level above the top of each). So the most common patch level is 1.
Post Reply