gtkdialog: Attempt to unlock mutex that was not locked

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
jkfloris
Posts: 2
Joined: Tue 02 Sep 2014, 16:42

gtkdialog: Attempt to unlock mutex that was not locked

#1 Post by jkfloris »

I'm not sure this is the right place to ask this question, because I don't use Puppy Linux, but I'm a big fan of gtkdialog, and I know there are other gtkdialog-lovers over here. Unfortunately, gtkdialog, compiled from the svn source, doesn't run anymore. I get: Attempt to unlock mutex that was not locked.

I had to make some modifications before it compiled successfully [1], but I have no idea what the error message means.

I hope someone can point me to the right direction.

thanks,

floris

more details at:
[1] http://code.google.com/p/gtkdialog/issues/detail?id=77

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Does it work if you compile against gtk2?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jkfloris
Posts: 2
Joined: Tue 02 Sep 2014, 16:42

#3 Post by jkfloris »

When I try
(from a fresh and unmodified svn source)
$ ./autogen.sh --prefix=/usr
$ make
$ checkinstall
$ sudo dpkg -i gtkdialog_0.8.4-1_amd64.deb
$ gtkdialog -f hbox.txt
Attempt to unlock mutex that was not locked

So, there is no difference.

I think a change in libc has caused this issue
$ ldd --version
ldd (Debian GLIBC 2.19-10) 2.19

https://bugzilla.gnome.org/show_bug.cgi?id=731986

I hope Thunor can update this beautiful program.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post by disciple »

Interesting. It works fine for me with GNU libc 2.19
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

TIHO0505
Posts: 3
Joined: Thu 08 May 2014, 09:05

#5 Post by TIHO0505 »

Hi

I will refer to this topic, hoping that someone can help me. I saw that you had problems with compiling gtkdialog...I have also problems with installinng gtkdialog on Solaris 10 ...I have gcc installed....

Do you know how can I install it, do I need to change something..I'm out of idea, any help would be really great.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#6 Post by disciple »

TIHO0505 wrote:HI have also problems with installinng gtkdialog on Solaris 10 ...I have gcc installed....
Please at least describe the problems.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#7 Post by disciple »

jkfloris - I don't know much about this sort of thing, but it would be interesting to know if you still have the same problem with the latest Debian glibc, and with the plain GNU libc (without the Debian patches). And I guess even if a version built in another distro works for you...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

ppl2014
Posts: 1
Joined: Tue 30 Sep 2014, 16:05

Workaround

#8 Post by ppl2014 »

Posted on gtkdialog buglist by me:
Error is caused by glib2.0-2.42.0 (prior Versions not tested) file glib2.0-2.42.0/glib/gthread-posix.c line 1327 'fprintf (stderr, "Attempt to unlock mutex that was not locked\n");abort ();'.

Temporary solution:

Get the sources for your distribution. Uncomment abort function this way: /*abort ()*/. Compile source. DO NOT install the packages. Glib2 is essential for your system. Broken glib will lead to malfunction. Open the compiled packages with e.g. mc and extract libglib-2.0.so(*). Do NOT copy the extracted LIB to a place in your Library-Path. Copy it to a new folder in your HOME folder. Rename gtkdialog binary to gtkdialog.bin. Write a little shellscript with the following line to start gtkdialog:

LD_PRELOAD="/<your path to your compiled and extracted>/libglib-2.0.so" gtkdialog.bin $@

Call this script gtkdialog and copy it to place in in your $PATH.

Hope this helps.

Peter

Post Reply