Re: [dev] [st] segfault when selecting text

From: Henrique Lengler <>
Date: Tue, 17 Mar 2015 21:45:36 -0300

On Tue, Mar 17, 2015 at 07:28:27PM -0400, Alex Pilon wrote:
> The reason I ask is because in 246c348, and all the way back to
> 2fcfea1bf149f839cdbcba5c1efc7c4ce31f6d95 at least, that's a comment
> line. Are you 28259f5750f0dc7f52bbaf8b746ec3dc576a58ee? If so, then it
> would be that dereferencing last is the cause, but can't tell without
> more info.
> What's particular about you? Your file? Your libraries? Your compiler?
> Is it still an issue with the latest HEAD? I don't recall ever having a
> segfault on my end.

I was in b746816b78447b9e4a3af7333a4e992eb8d32254, I updated to the last,
but the error continue.

The compiler I'm using is:
$ cc --version
cc (GCC) 4.2.1 20070719
I don't know how I can provide something to you about the libs.

The new log is attached.

Something that may be usefull is the compiling log, so this is what I
receive when I run make:

$ make
st build options:
CFLAGS = -O2 -pipe -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/include -I/usr/X11R6/include/freetype2 -DVERSION="0.5" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
LDFLAGS = -g -L/usr/lib -lc -L/usr/X11R6/lib -lm -lX11 -lutil -lXext -lXft -L/usr/X11R6/lib
-lfontconfig -lfreetype -lz -L/usr/X11R6/lib -lfreetype -lz
CC = cc
CC st.c
In file included from /usr/X11R6/include/X11/Xlib.h:47,
                 from st.c:25:
/usr/X11R6/include/X11/Xfuncproto.h:156:24: warning: ISO C does not permit named variadic macros
st.c: In function 'strparse':
st.c:2265: warning: implicit declaration of function 'strsep'
st.c:2265: warning: assignment makes pointer from integer without a cast
st.c: In function 'techo':
st.c:2375: warning: comparison is always true due to limited range of data type
st.c: At top level:
st.c:1040: warning: 'clipcopy' defined but not used
CC -o st
/usr/X11R6/lib/ warning: strcpy() is almost always misused, please use strlcpy()
/usr/X11R6/lib/ warning: strcat() is almost always misused, please use strlcat()
/usr/X11R6/lib/ warning: sprintf() is often misused, please use snprintf()

Henrique Lengler 

Received on Wed Mar 18 2015 - 01:45:36 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 18 2015 - 01:48:08 CET