i updated aterm from 0.4.2-r9 to 0.4.2-r11. if i start it with a tiny geometry it'll segfault. the problems lies in the aterm-0.4.2-internal-border.patch file. the internal border width is set wrong if e.g. the geometry is 50x1+0-0 you can fix it by specifying the internal border explicitly: aterm -geometry 50x1+0-0 -ib N with N a number, but not 1 Reproducible: Always Steps to Reproduce: 1. aterm -geometry 50x1+0-0 -e echo hello it's important that the y-axis is equal to 1 and the 4th parameter negativ. Actual Results: aterm: XError: Request: 12 . 0, Error: 2 Segmentation fault
Do I have big, vulcan ears? Is my logic impeccable? Have I featured in *any* Star Trek episodes? Is my e-mail in x11-terms/aterm/metadata.xml? Or is that spock@gentoo.org? :D
I don't seem to be able to reproduce the problem. I also don't see how the internal-border patch could cause it.. Are you using the internalBorder resource? If yes, to what value have you set it? What other X aterm resources are you using (if any)? What X server are you using?
hmm i only noticed that if i comment the internalborder patch, it's working properly. i'm using xorg-x11-6.8.0-r3, afair it also segfaults with earlier versions my Xresources: Aterm*background: black Aterm*foreground: #aaaaaa Aterm*transparent: true #Aterm*fading: 1000 Aterm*shading: 35 Aterm*scrollBar: false Aterm*saveLines: 32767 Aterm*borderLess: true Aterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1 Aterm*autoWrap: true hmm am i the only one getting this error? :)
Still no luck with reproducing it. Could you post your `emerge info`?
http://n.ethz.ch/student/rstoll/download/emerge.info
I can reproduce this with aterm -geometry Nx1+X-Y -ib 3 (N, X and Y are any values).
I found a problem in src/main.c around line 841 (function resize_subwindows): -- XMoveResizeWindow(Xdisplay, TermWin.vt, x, y, width, height + 1); -- If the internalBorder is set to 3, height gets somehow calculated to be 65535 the first time. The call adds 1 .. so it's 65536. Every other value is fine for the call .. but not 65536. I don't exactly know why .. I think because, if interpreted as unsigned short int (16 bit), it's 0 (width and height are not allowed to be 0). (I suspect this because I found similar things http://cvs.gnome.org/viewcvs/gtk+/gdk/x11/gdkgeometry-x11.c?rev=1.24 -- look for compute_intermediate_position)
Thanks for the additional info. I've just added a simple fix to CVS. Remerge x11-terms/aterm to get your aterm fixed :)