Bug#542028: iceweasel: fails to parse -remote openurl()

2011-07-31 Thread Mike Hommey
On Mon, Dec 21, 2009 at 11:18:17AM +0100, Mike Hommey wrote:
 On Mon, Dec 21, 2009 at 11:07:22AM +0100, Michel Briand wrote:
  Yes, please forgive my distraction, I tested many times and forgot to
  recreate the log for the good test :).
 
 That really doesn't make sense, because the code handling this is
 basically the same between 3.0 and 3.5, and it works for me, with:
 
 /usr/lib/iceweasel/firefox-bin -a iceweasel -remote 
 openurl(http://www.debian.org,new-tab)
 
 which is basically what end up being run in your log.
 
 I'm speechless.

Did this get any better since then?

Mike



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-12-21 Thread Mike Hommey
On Sun, Dec 20, 2009 at 11:19:04PM +0100, Michel Briand wrote:
 
 Mike Hommey m...@glandium.org - Sun, 20 Dec 2009 22:24:59 +0100
 
 On Sun, Dec 20, 2009 at 01:38:09PM +0100, Michel Briand wrote:
  
  Mike Hommey m...@glandium.org - Sat, 19 Dec 2009 20:27:13 +0100
  
  Hi,
  
  Sorry for the delayed answer.
  
  On Tue, Aug 18, 2009 at 12:32:44PM +0200, Michel Briand wrote:
   I've used strace to investigate this, to trace my shell script that
   used to work (that because it used to work for year that I posted to
   reopen the bug) :
   
   $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin 
   -remote 'openurl(http://www.debian.org,new-tab)'
   Error: Failed to send command: 500 command not parseable
   $ grep exec totolog2
   5728  execve(/bin/sh, [sh, -c, /usr/lib/iceweasel/firefox-bin 
   -remote 'openurl(http://www.debian.org,new-tab)'], [/* 57 vars */]) = 0
   5728  set_thread_area({entry_number:-1 - 6, base_addr:0xb7f276b0, 
   limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
   limit_in_pages:1, seg_not_present:0, useable:1}) = 0
   5729  execve(/usr/lib/iceweasel/firefox-bin, 
   [/usr/lib/iceweasel/firefox-bin, -remote, 
   openurl(http://www.debian.org,new-tab)], [/* 57 vars */]) = 0
   5729  set_thread_area({entry_number:-1 - 6, base_addr:0xb7d778d0, 
   limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
   limit_in_pages:1, seg_not_present:0, useable:1}) = 0
   ...
   5729  write(2, Error: Failed to send command: 500 command not 
   parseable\n..., 57) = 57
   ...
   
   You see: no  in argument to execve, just the string openurl
   
   Strange, isn't it ?
  
  Running directly with firefox-bin should work properly, and it does work
  properly on my system (both lenny and squeeze tested).
  
  Are you sure the strace command above does trigger the bug ?
  
  Yes. This is still an issue. I've Iceweasel 3.0.6-3.
 
 What version of xulrunner-1.9 ?
 
 ii  xulrunner-1.9  1.9.0.15-0lenn XUL + XPCOM application runner
 
  -- Error: Failed to send command: 500 command not parseable
  
  Do you want the log file ?
 
 yes please, and the exact command line.
 
 Exactly the same as in the email above.

Reading the log, you are wrong ;)
You are running /usr/lib/iceweasel/iceweasel-xremote-client -remote
openurl...

Except iceweasel-xremote-client doesn't take a -remote argument.

Mike



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-12-21 Thread Mike Hommey
On Mon, Dec 21, 2009 at 11:07:22AM +0100, Michel Briand wrote:
 Yes, please forgive my distraction, I tested many times and forgot to
 recreate the log for the good test :).

That really doesn't make sense, because the code handling this is
basically the same between 3.0 and 3.5, and it works for me, with:

/usr/lib/iceweasel/firefox-bin -a iceweasel -remote 
openurl(http://www.debian.org,new-tab)

which is basically what end up being run in your log.

I'm speechless.

Mike



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-12-20 Thread Mike Hommey
On Sun, Dec 20, 2009 at 01:38:09PM +0100, Michel Briand wrote:
 
 Mike Hommey m...@glandium.org - Sat, 19 Dec 2009 20:27:13 +0100
 
 Hi,
 
 Sorry for the delayed answer.
 
 On Tue, Aug 18, 2009 at 12:32:44PM +0200, Michel Briand wrote:
  I've used strace to investigate this, to trace my shell script that
  used to work (that because it used to work for year that I posted to
  reopen the bug) :
  
  $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin 
  -remote 'openurl(http://www.debian.org,new-tab)'
  Error: Failed to send command: 500 command not parseable
  $ grep exec totolog2
  5728  execve(/bin/sh, [sh, -c, /usr/lib/iceweasel/firefox-bin 
  -remote 'openurl(http://www.debian.org,new-tab)'], [/* 57 vars */]) = 0
  5728  set_thread_area({entry_number:-1 - 6, base_addr:0xb7f276b0, 
  limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
  limit_in_pages:1, seg_not_present:0, useable:1}) = 0
  5729  execve(/usr/lib/iceweasel/firefox-bin, 
  [/usr/lib/iceweasel/firefox-bin, -remote, 
  openurl(http://www.debian.org,new-tab)], [/* 57 vars */]) = 0
  5729  set_thread_area({entry_number:-1 - 6, base_addr:0xb7d778d0, 
  limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
  limit_in_pages:1, seg_not_present:0, useable:1}) = 0
  ...
  5729  write(2, Error: Failed to send command: 500 command not 
  parseable\n..., 57) = 57
  ...
  
  You see: no  in argument to execve, just the string openurl
  
  Strange, isn't it ?
 
 Running directly with firefox-bin should work properly, and it does work
 properly on my system (both lenny and squeeze tested).
 
 Are you sure the strace command above does trigger the bug ?
 
 Yes. This is still an issue. I've Iceweasel 3.0.6-3.

What version of xulrunner-1.9 ?

 -- Error: Failed to send command: 500 command not parseable
 
 Do you want the log file ?

yes please, and the exact command line.

 
 Thank you,
 Michel
 
 Beside this, when it's not running:
 
 $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin
 -remote 'openurl(http://www.debian.org,new-tab)'
 Error: No running window found

This is expected.



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-12-20 Thread Michel Briand

Mike Hommey m...@glandium.org - Sun, 20 Dec 2009 22:24:59 +0100

On Sun, Dec 20, 2009 at 01:38:09PM +0100, Michel Briand wrote:
 
 Mike Hommey m...@glandium.org - Sat, 19 Dec 2009 20:27:13 +0100
 
 Hi,
 
 Sorry for the delayed answer.
 
 On Tue, Aug 18, 2009 at 12:32:44PM +0200, Michel Briand wrote:
  I've used strace to investigate this, to trace my shell script that
  used to work (that because it used to work for year that I posted to
  reopen the bug) :
  
  $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin 
  -remote 'openurl(http://www.debian.org,new-tab)'
  Error: Failed to send command: 500 command not parseable
  $ grep exec totolog2
  5728  execve(/bin/sh, [sh, -c, /usr/lib/iceweasel/firefox-bin 
  -remote 'openurl(http://www.debian.org,new-tab)'], [/* 57 vars */]) = 0
  5728  set_thread_area({entry_number:-1 - 6, base_addr:0xb7f276b0, 
  limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
  limit_in_pages:1, seg_not_present:0, useable:1}) = 0
  5729  execve(/usr/lib/iceweasel/firefox-bin, 
  [/usr/lib/iceweasel/firefox-bin, -remote, 
  openurl(http://www.debian.org,new-tab)], [/* 57 vars */]) = 0
  5729  set_thread_area({entry_number:-1 - 6, base_addr:0xb7d778d0, 
  limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
  limit_in_pages:1, seg_not_present:0, useable:1}) = 0
  ...
  5729  write(2, Error: Failed to send command: 500 command not 
  parseable\n..., 57) = 57
  ...
  
  You see: no  in argument to execve, just the string openurl
  
  Strange, isn't it ?
 
 Running directly with firefox-bin should work properly, and it does work
 properly on my system (both lenny and squeeze tested).
 
 Are you sure the strace command above does trigger the bug ?
 
 Yes. This is still an issue. I've Iceweasel 3.0.6-3.

What version of xulrunner-1.9 ?

ii  xulrunner-1.9  1.9.0.15-0lenn XUL + XPCOM application runner

 -- Error: Failed to send command: 500 command not parseable
 
 Do you want the log file ?

yes please, and the exact command line.

Exactly the same as in the email above.


 
 Thank you,
 Michel
 
 Beside this, when it's not running:
 
 $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin
 -remote 'openurl(http://www.debian.org,new-tab)'
 Error: No running window found

This is expected.

Strace log attached.

Thank you :).


iceweasel-remote-openurl-problem.log.gz
Description: GNU Zip compressed data


Bug#542028: iceweasel: fails to parse -remote openurl()

2009-12-19 Thread Mike Hommey
Hi,

Sorry for the delayed answer.

On Tue, Aug 18, 2009 at 12:32:44PM +0200, Michel Briand wrote:
 I've used strace to investigate this, to trace my shell script that
 used to work (that because it used to work for year that I posted to
 reopen the bug) :
 
 $ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin -remote 
 'openurl(http://www.debian.org,new-tab)'
 Error: Failed to send command: 500 command not parseable
 $ grep exec totolog2
 5728  execve(/bin/sh, [sh, -c, /usr/lib/iceweasel/firefox-bin -remote 
 'openurl(http://www.debian.org,new-tab)'], [/* 57 vars */]) = 0
 5728  set_thread_area({entry_number:-1 - 6, base_addr:0xb7f276b0, 
 limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
 seg_not_present:0, useable:1}) = 0
 5729  execve(/usr/lib/iceweasel/firefox-bin, 
 [/usr/lib/iceweasel/firefox-bin, -remote, 
 openurl(http://www.debian.org,new-tab)], [/* 57 vars */]) = 0
 5729  set_thread_area({entry_number:-1 - 6, base_addr:0xb7d778d0, 
 limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
 seg_not_present:0, useable:1}) = 0
 ...
 5729  write(2, Error: Failed to send command: 500 command not 
 parseable\n..., 57) = 57
 ...
 
 You see: no  in argument to execve, just the string openurl
 
 Strange, isn't it ?

Running directly with firefox-bin should work properly, and it does work
properly on my system (both lenny and squeeze tested).

Are you sure the strace command above does trigger the bug ?

Mike



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-08-18 Thread Stéphane Glondu
Hello,

Michel Briand a écrit :
 [...]
 Error: Failed to send command: 500 command not parseable
 
 [debug of a script]
 ...
 + /usr/bin/iceweasel -remote openurl(http://www.debian.org/,new-window)
 [...]

On my system (with iceweasel 3.5-1), this:

  iceweasel -remote 'openurl(http://www.debian.org/,new-window)'

works perfectly, whereas this:

  iceweasel -remote 'openurl(http://www.debian.org/,new-window)'

or any other attempt to quote a substring in the openurl call fails with
the error you mention.

How exactly do you call iceweasel? I mean, what do you type in the shell
prompt? (before it does any expansion)


Cheers,

-- 
Stéphane




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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-08-18 Thread Michel Briand

Stéphane Glondu st...@glondu.net - Tue, 18 Aug 2009 09:23:03 +0200

Hello,

Michel Briand a écrit :
 [...]
 Error: Failed to send command: 500 command not parseable
 
 [debug of a script]
 ...
 + /usr/bin/iceweasel -remote openurl(http://www.debian.org/,new-window)
 [...]

On my system (with iceweasel 3.5-1), this:

  iceweasel -remote 'openurl(http://www.debian.org/,new-window)'

works perfectly, whereas this:

  iceweasel -remote 'openurl(http://www.debian.org/,new-window)'

or any other attempt to quote a substring in the openurl call fails with
the error you mention.

How exactly do you call iceweasel? I mean, what do you type in the shell
prompt? (before it does any expansion)


Cheers,


Stéphane,

I've read the bug #289745:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=289745

There is already a discussion here about arguments. So I tried to
conform to conclusions expressed there :).

Since it's necessary to escape the () because of the shell, but the
browser won't accept arguments with , this is tricky.

I've used strace to investigate this, to trace my shell script that
used to work (that because it used to work for year that I posted to
reopen the bug) :

$ strace -s 128 -o totolog2 -f sh -c /usr/lib/iceweasel/firefox-bin -remote 
'openurl(http://www.debian.org,new-tab)'
Error: Failed to send command: 500 command not parseable
$ grep exec totolog2
5728  execve(/bin/sh, [sh, -c, /usr/lib/iceweasel/firefox-bin -remote 
'openurl(http://www.debian.org,new-tab)'], [/* 57 vars */]) = 0
5728  set_thread_area({entry_number:-1 - 6, base_addr:0xb7f276b0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
5729  execve(/usr/lib/iceweasel/firefox-bin, 
[/usr/lib/iceweasel/firefox-bin, -remote, 
openurl(http://www.debian.org,new-tab)], [/* 57 vars */]) = 0
5729  set_thread_area({entry_number:-1 - 6, base_addr:0xb7d778d0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0
...
5729  write(2, Error: Failed to send command: 500 command not parseable\n..., 
57) = 57
...

You see: no  in argument to execve, just the string openurl

Strange, isn't it ?

Cordialement,
Michel



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



Bug#542028: iceweasel: fails to parse -remote openurl()

2009-08-17 Thread Michel Briand
Package: iceweasel
Version: 3.0.6-1
Severity: important

Hello,

having read bug #289745 and tried a lot of techniques
to launch the browser with scripts (including [1], [2]),
I still reproduce the bug identified by this weird error message:

Error: Failed to send command: 500 command not parseable

[debug of a script]
...
+ /usr/bin/iceweasel -remote openurl(http://www.debian.org/,new-window)
...

Tryied the 'browse' program from [2]:
$ ~/browse -- http://www.debian.org/
$ Error: Failed to send command: 500 command not parseable

I disabled all extensions in Iceweasel : same result.

Starting with a new profile (another user, ~/.mozilla removed), the
problem disappears !

There is something wrong somewhere in the Firefox realm, but where ?

Cheers,
Michel

[1] http://www.mozilla.org/unix/remote.html
[2] http://www.dwheeler.com/browse/

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (1000, 'stable'), (900, 'stable'), (90, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: lang=fr...@euro, lc_ctype=fr...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages iceweasel depends on:
ii  debianutils 2.30 Miscellaneous utilities specific t
ii  fontconfig  2.6.0-3  generic font configuration library
ii  libc6   2.7-18   GNU C Library: Shared libraries
ii  libgcc1 1:4.3.2-1.1  GCC support library
ii  libglib2.0-02.16.6-1+lenny1  The GLib library of C routines
ii  libgtk2.0-0 2.12.12-1~lenny1 The GTK+ graphical user interface 
ii  libnspr4-0d 4.7.1-4  NetScape Portable Runtime Library
ii  libstdc++6  4.3.2-1.1The GNU Standard C++ Library v3
ii  procps  1:3.2.7-11   /proc file system utilities
ii  psmisc  22.6-1   Utilities that use the proc filesy
ii  xulrunner-1.9   1.9.0.12-0lenny1 XUL + XPCOM application runner

iceweasel recommends no packages.

Versions of packages iceweasel suggests:
ii  latex-xft-fonts 0.1-8Xft-compatible versions of some La
ii  libkrb531.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  mozplugger  1.10.2-2 Plugin allowing external viewers t
ii  ttf-mathematica 6Installer of Mathematica TrueType 
ii  xfonts-mathml   2Type1 Symbol font for MathML
ii  xprint  2:1.4.2-10.lenny2X11 print system (binary)
pn  xulrunner-1.9-g none   (no description available)

-- 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