Bug#607483: squeeze crashes trying to open any rar archive

2011-11-17 Thread Ibragimov Rinat
`thunar_vfs_path_relative' can't handle subpaths containing slashes, 
documentation
says about it directly: ... and it may not contain any slashes.

Attached patch solves that problem by avoiding `thunar_vfs_path_relative' and 
using
g_build_path instead.diff --git a/libsqueeze/archive.c b/libsqueeze/archive.c
--- a/libsqueeze/archive.c
+++ b/libsqueeze/archive.c
@@ -175,8 +175,13 @@ lsq_archive_new(gchar *path, const gchar *mime)
 	{
 		if(g_path_is_absolute(path))
 			archive-path_info = thunar_vfs_path_new(path, NULL);
-		else
-			archive-path_info = thunar_vfs_path_relative(lsq_relative_base_path, path);
+		else {
+			gchar *current_dir = g_get_current_dir();
+			gchar *full_path = g_build_path(/, current_dir, path, NULL);
+			archive-path_info = thunar_vfs_path_new(full_path, NULL);
+			g_free(current_dir);
+			g_free(full_path);
+		}
 		archive-path = thunar_vfs_path_dup_string(archive-path_info);
 	}
 	else


Bug#607483: [Pkg-xfce-devel] Bug#607483: squeeze crashes trying to open any rar archive

2011-11-17 Thread Yves-Alexis Perez
On jeu., 2011-11-17 at 20:17 +0400, Ibragimov Rinat wrote:
 `thunar_vfs_path_relative' can't handle subpaths containing slashes, 
 documentation
 says about it directly: ... and it may not contain any slashes.
 
 Attached patch solves that problem by avoiding `thunar_vfs_path_relative' and 
 using
 g_build_path instead.

Mhmh, nice, thanks, I'll test that and upload if it works fine, thank
you for your time and work!

Regards,
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#607483: [Pkg-xfce-devel] Bug#607483: Bug#607483: Bug#607483: Bug#607483: squeeze crashes trying to open any rar archive

2011-04-11 Thread Yves-Alexis Perez
On dim., 2010-12-19 at 20:52 +0100, Yves-Alexis Perez wrote:
 On dim., 2010-12-19 at 20:49 +0100, Yves-Alexis Perez wrote:
incl.
   the attached one, for which rar is able to list and
   extract file without any issue.  I probably should not
   attach it since you can create a rar archive too just
   fine, but here we go ;)
   
  It was a good idea to attach it, since I'm not able to reproduce it
  with
  a created archive, while it “works” with yours. 
 
 Ok, wrong, I can open it, as long as it's in $CWD. It seems that putting
 it in a subdirectory makes Squeeze crash, but not in Squeeze, in
 thunar-vfs.
 
 Could you get a backtrace please?

Ping?

-- 
Yves-Alexis




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#607483: [Pkg-xfce-devel] Bug#607483: squeeze crashes trying to open any rar archive

2010-12-19 Thread Michael Tokarev
19.12.2010 10:09, Yves-Alexis Perez wrote:
 On dim., 2010-12-19 at 01:07 +0300, Michael Tokarev wrote:
 When trying to open any rar archive squeeze segfaults immediately
 with a SIGSEGV error, and kernel reports just that:

 [138304.063587] squeeze[7792]: segfault at 0 ip (null) sp
 ff92994c error 14 in squeeze[8048000+23000] 
 
 Do you have an unrar utility?

Well, rar is in nonfree, and it's installed here too.
The prob happens with _any_ rar archive so far, incl.
the attached one, for which rar is able to list and
extract file without any issue.  I probably should not
attach it since you can create a rar archive too just
fine, but here we go ;)

/mjt


random32.rar
Description: application/rar


Bug#607483: [Pkg-xfce-devel] Bug#607483: Bug#607483: squeeze crashes trying to open any rar archive

2010-12-19 Thread Yves-Alexis Perez
On dim., 2010-12-19 at 11:33 +0300, Michael Tokarev wrote:
 19.12.2010 10:09, Yves-Alexis Perez wrote:
  On dim., 2010-12-19 at 01:07 +0300, Michael Tokarev wrote:
  When trying to open any rar archive squeeze segfaults immediately
  with a SIGSEGV error, and kernel reports just that:
 
  [138304.063587] squeeze[7792]: segfault at 0 ip (null) sp
  ff92994c error 14 in squeeze[8048000+23000] 
  
  Do you have an unrar utility?
 
 Well, rar is in nonfree, and it's installed here too.
 The prob happens with _any_ rar archive so far,

I just created a rar archive which perfectly works.

  incl.
 the attached one, for which rar is able to list and
 extract file without any issue.  I probably should not
 attach it since you can create a rar archive too just
 fine, but here we go ;)
 
It was a good idea to attach it, since I'm not able to reproduce it with
a created archive, while it “works” with yours.

Regards,
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#607483: [Pkg-xfce-devel] Bug#607483: Bug#607483: Bug#607483: squeeze crashes trying to open any rar archive

2010-12-19 Thread Yves-Alexis Perez
On dim., 2010-12-19 at 20:49 +0100, Yves-Alexis Perez wrote:
   incl.
  the attached one, for which rar is able to list and
  extract file without any issue.  I probably should not
  attach it since you can create a rar archive too just
  fine, but here we go ;)
  
 It was a good idea to attach it, since I'm not able to reproduce it
 with
 a created archive, while it “works” with yours. 

Ok, wrong, I can open it, as long as it's in $CWD. It seems that putting
it in a subdirectory makes Squeeze crash, but not in Squeeze, in
thunar-vfs.

Could you get a backtrace please?
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#607483: squeeze crashes trying to open any rar archive

2010-12-18 Thread Michael Tokarev
Package: squeeze
Version: 0.2.3-8
Severity: normal
Tags: squeeze

When trying to open any rar archive squeeze segfaults immediately
with a SIGSEGV error, and kernel reports just that:

[138304.063587] squeeze[7792]: segfault at 0 ip (null) sp ff92994c 
error 14 in squeeze[8048000+23000]

Apparently not related to #475072.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.36-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages squeeze depends on:
ii  exo-utils   0.3.107-1Utility files for libexo
ii  libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii  libc6   2.11.2-7 Embedded GNU C Library: Shared lib
ii  libcairo2   1.8.10-6 The Cairo 2D vector graphics libra
ii  libdbus-1-3 1.2.24-3 simple interprocess messaging syst
ii  libdbus-glib-1-20.88-2   simple interprocess messaging syst
ii  libexo-0.3-00.3.107-1Library with extensions for Xfce
ii  libfontconfig1  2.8.0-2.1generic font configuration library
ii  libfreetype62.4.2-2.1FreeType 2 font engine, shared lib
ii  libglib2.0-02.24.2-1 The GLib library of C routines
ii  libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface 
ii  libpango1.0-0   1.28.3-1 Layout and rendering of internatio
ii  libthunar-vfs-1-2   1.0.2-1+b2   VFS abstraction used in thunar
ii  libxfce4util4   4.6.2-1  Utility functions library for Xfce
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

squeeze recommends no packages.

squeeze suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#607483: [Pkg-xfce-devel] Bug#607483: squeeze crashes trying to open any rar archive

2010-12-18 Thread Yves-Alexis Perez
On dim., 2010-12-19 at 01:07 +0300, Michael Tokarev wrote:
 When trying to open any rar archive squeeze segfaults immediately
 with a SIGSEGV error, and kernel reports just that:
 
 [138304.063587] squeeze[7792]: segfault at 0 ip (null) sp
 ff92994c error 14 in squeeze[8048000+23000] 

Do you have an unrar utility?
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part