Package: w3m-img Version: 0.5.1-5.1+b1 Severity: normal I do most of my work from within a persistent Screen session, and I regularly kill off urxvt and Xorg. This means that after the first couple of days, WINDOWID will be set (within the screen session) to a window that no longer exists.
Normally this does not bother me; w3m-img simply stops working (images
aren't displayed inline). Today, it appeared to cause a segfault.
I invoked w3m thusly:
w3m http://lists.gnu.org/mailman/listinfo/screen-users
It segfaulted -- not immediately, but a second or so after displaying
the text. This is consistent with the time it would take w3m to fetch
the inline image(s). WINDOWID was set to 8388612. Re-running the
above command caused w3m to segfault every time, after the
aforementioned short delay. w3m managed to print
4/4 images loaded
Making the terminal smaller (fewer COLUMNS and ROWS), I got
3/3 images loaded
instead. Making the terminal larger, w3m printed "HTTP/1.1 200 OK",
and the entire screen was cleared, printing "Aborted" in the top left
and the shell prompt on the next line.
Suspecting w3m-img was at fault, I tried
env -u WINDOWID w3m http://lists.gnu.org/mailman/listinfo/screen-users
This did not result in a segfault. Furthermore, it displayed the
images inline onscreen!
Attached are the output of `env' and `xprop' (after clicking on the
urxvt window). I'm not sure WHY it's segfaulting; hopefully I've
provided enough information. I am running a custom compilation of
urxvt from CVS:
$ urxvt -h
rxvt-unicode (urxvt) v8.3 - released: 2007-08-01
options:
xft,styles,combining,blink,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,frills,selectionscrolling,wheel,cursorBlink,pointerBlank,scrollbars=NONE
Usage: urxvt [-help] [--help]
[-display string] [-tn string] [-geometry geometry] [-C] [-iconic] [-/+rv]
[-/+ls] [-/+j] [-/+ss] [-/+ptab] [-/+si] [-/+sk] [-/+sw] [-/+ut] [-/+vb]
[-/+tcw] [-/+insecure] [-/+uc] [-/+bc] [-/+pb] [-bg color] [-fg color]
[-hc color] [-cr color] [-pr color] [-pr2 color] [-bd color] [-fn fontname]
[-fb fontname] [-fi fontname] [-fbi fontname] [-/+is] [-name string]
[-title string] [-n string] [-sl number] [-embed windowid] [-depth number]
[-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number] [-b number]
[-/+bl] [-/+sbg] [-lsp number] [-mod modifier] [-/+ssc] [-/+ssr]
[-xrm string] [-e command arg ...]
$ ls -hl `type -p urxvt`
-rwxr-xr-x 1 twb users 2.5M 2007-10-06 01:42
/home/twb/.bin-x86_64-unknown-linux-gnu/urxvt
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages w3m-img depends on:
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgc1c2 1:6.8-1.1 conservative garbage collector for
ii libgdk-pixbuf2 0.22.0-11 The GdkPixBuf image library, gtk+
ii libglib1.2ldbl 1.2.10-19 The GLib library of C routines
ii libx11-6 2:1.0.3-7 X11 client-side library
ii w3m 0.5.1-5.1+b1 WWW browsable pager with excellent
w3m-img recommends no packages.
-- no debconf information
env.txt
Description: Binary data
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 18481
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "en_AU.utf8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x600004
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 6 by 12
program specified resize increment: 6 by 12
program specified base size: 0 by 0
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "baal"
WM_COMMAND(STRING) = { "urxvt" }
_NET_WM_ICON_NAME(UTF8_STRING) = 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e
WM_ICON_NAME(STRING) = "screen"
_NET_WM_NAME(UTF8_STRING) =
WM_NAME(STRING) =
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x600004 (has no name)
Absolute upper-left X: 0
Absolute upper-left Y: 0
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1596
Height: 1200
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+0 -4+0 -4-0 +0-0
-geometry 266x100+0+0

