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/libX11.so.16.0: warning: strcpy() is almost always misused, 
please use strlcpy()
/usr/X11R6/lib/libX11.so.16.0: warning: strcat() is almost always misused, 
please use strlcat()
/usr/X11R6/lib/libX11.so.16.0: warning: sprintf() is often misused, please use 
snprintf()

-- 
Regards

Henrique Lengler 
#0  0x00000b0c2db06205 in getsel () at st.c:976
        str = 0xb0eb7fb6000 "Itália\n======\n\nReligião:\n--------\n", '�' 
<repeats 164 times>...
        ptr = 0xb0eb7fb6024 '�' <repeats 200 times>...
        y = 8
        lastx = 94
        linelen = 0
        gp = (Glyph_ *) 0xb0f0c190000
        last = (Glyph_ *) 0xb0f0c18fff0
#1  0x00000b0c2db078a5 in brelease (e=Variable "e" is not available.
) at st.c:985
No locals.
#2  0x00000b0c2db0b5d6 in run () at st.c:3946
        ev = {type = 5, xany = {type = 5, serial = 3055, send_event = 0, 
    display = 0xb0e9c0aa000, window = 27262977}, xkey = {type = 5, serial = 
3055, 
    send_event = 0, display = 0xb0e9c0aa000, window = 27262977, root = 158, 
subwindow = 0, 
    time = 11515896, x = 666, y = 375, x_root = 667, y_root = 394, state = 272, 
keycode = 1, 
    same_screen = 1}, xbutton = {type = 5, serial = 3055, send_event = 0, 
    display = 0xb0e9c0aa000, window = 27262977, root = 158, subwindow = 0, time 
= 11515896, 
    x = 666, y = 375, x_root = 667, y_root = 394, state = 272, button = 1, 
same_screen = 1}, 
  xmotion = {type = 5, serial = 3055, send_event = 0, display = 0xb0e9c0aa000, 
    window = 27262977, root = 158, subwindow = 0, time = 11515896, x = 666, y = 
375, 
    x_root = 667, y_root = 394, state = 272, is_hint = 1 '\001', same_screen = 
1}, 
  xcrossing = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    window = 27262977, root = 158, subwindow = 0, time = 11515896, x = 666, y = 
375, 
    x_root = 667, y_root = 394, mode = 272, detail = 1, same_screen = 1, focus 
= -538976289, 
    state = 3755991007}, xfocus = {type = 5, serial = 3055, send_event = 0, 
    display = 0xb0e9c0aa000, window = 27262977, mode = 158, detail = 0}, 
xexpose = {type = 5, 
    serial = 3055, send_event = 0, display = 0xb0e9c0aa000, window = 27262977, 
x = 158, 
    y = 0, width = 0, height = 0, count = 11515896}, xgraphicsexpose = {type = 
5, 
    serial = 3055, send_event = 0, display = 0xb0e9c0aa000, drawable = 
27262977, x = 158, 
    y = 0, width = 0, height = 0, count = 11515896, major_code = 0, minor_code 
= 666}, 
  xnoexpose = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    drawable = 27262977, major_code = 158, minor_code = 0}, xvisibility = {type 
= 5, 
    serial = 3055, send_event = 0, display = 0xb0e9c0aa000, window = 27262977, 
state = 158}, 
  xcreatewindow = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    parent = 27262977, window = 158, x = 0, y = 0, width = 11515896, height = 
0, 
    border_width = 666, override_redirect = 375}, xdestroywindow = {type = 5, 
serial = 3055, 
    send_event = 0, display = 0xb0e9c0aa000, event = 27262977, window = 158}, 
xunmap = {
    type = 5, serial = 3055, send_event = 0, display = 0xb0e9c0aa000, event = 
27262977, 
    window = 158, from_configure = 0}, xmap = {type = 5, serial = 3055, 
send_event = 0, 
    display = 0xb0e9c0aa000, event = 27262977, window = 158, override_redirect 
= 0}, 
  xmaprequest = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    parent = 27262977, window = 158}, xreparent = {type = 5, serial = 3055, 
send_event = 0, 
    display = 0xb0e9c0aa000, event = 27262977, window = 158, parent = 0, x = 
11515896, y = 0, 
    override_redirect = 666}, xconfigure = {type = 5, serial = 3055, send_event 
= 0, 
    display = 0xb0e9c0aa000, event = 27262977, window = 158, x = 0, y = 0, 
width = 11515896, 
    height = 0, border_width = 666, above = 1692217115291, override_redirect = 
272}, 
  xgravity = {type = 5, serial = 3055, send_event = 0, display = 0xb0e9c0aa000, 
    event = 27262977, window = 158, x = 0, y = 0}, xresizerequest = {type = 5, 
serial = 3055, 
    send_event = 0, display = 0xb0e9c0aa000, window = 27262977, width = 158, 
height = 0}, 
  xconfigurerequest = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    parent = 27262977, window = 158, x = 0, y = 0, width = 11515896, height = 
0, 
    border_width = 666, above = 1692217115291, detail = 272, 
    value_mask = 16131858539135107073}, xcirculate = {type = 5, serial = 3055, 
    send_event = 0, display = 0xb0e9c0aa000, event = 27262977, window = 158, 
place = 0}, 
  xcirculaterequest = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    parent = 27262977, window = 158, place = 0}, xproperty = {type = 5, serial 
= 3055, 
    send_event = 0, display = 0xb0e9c0aa000, window = 27262977, atom = 158, 
time = 0, 
    state = 11515896}, xselectionclear = {type = 5, serial = 3055, send_event = 
0, 
    display = 0xb0e9c0aa000, window = 27262977, selection = 158, time = 0}, 
  xselectionrequest = {type = 5, serial = 3055, send_event = 0, display = 
0xb0e9c0aa000, 
    owner = 27262977, requestor = 158, selection = 0, target = 11515896, 
    property = 1610612736666, time = 1692217115291}, xselection = {type = 5, 
serial = 3055, 
    send_event = 0, display = 0xb0e9c0aa000, requestor = 27262977, selection = 
158, 
    target = 0, property = 11515896, time = 1610612736666}, xcolormap = {type = 
5, 
    serial = 3055, send_event = 0, display = 0xb0e9c0aa000, window = 27262977, 
    colormap = 158, new = 0, state = 0}, xclient = {type = 5, serial = 3055, 
send_event = 0, 
    display = 0xb0e9c0aa000, window = 27262977, message_type = 158, format = 0, 
data = {
      b = "���\000\000\000\000\000\232\002\000\000w\001\000\000\233\002\000", s 
= {-18440, 
        175, 0, 0, 666, 0, 375, 0, 667, 0}, l = {11515896, 1610612736666, 
1692217115291, 
        4294967568, -2314885534574444543}}}, xmapping = {type = 5, serial = 
3055, 
    send_event = 0, display = 0xb0e9c0aa000, window = 27262977, request = 158, 
    first_keycode = 0, count = 0}, xerror = {type = 5, display = 0xbef, 
    resourceid = 16131858539135107072, serial = 12157375389696, error_code = 1 
'\001', 
    request_code = 0 '\0', minor_code = 160 '�'}, xkeymap = {type = 5, serial = 
3055, 
    send_event = 0, display = 0xb0e9c0aa000, window = 27262977, 
    key_vector = "\236", '\0' <repeats 15 times>, 
"���\000\000\000\000\000\232\002\000\000w\001\000"}, xgeneric = {type = 5, 
serial = 3055, send_event = 0, display = 0xb0e9c0aa000, 
    extension = 27262977, evtype = 0}, xcookie = {type = 5, serial = 3055, 
send_event = 0, 
    display = 0xb0e9c0aa000, extension = 27262977, evtype = 0, cookie = 158, 
data = 0x0}, 
  pad = {-2314885534574444539, 3055, -2314885534574444544, 12157375389696, 
27262977, 158, 0, 
    11515896, 1610612736666, 1692217115291, 4294967568, -2314885534574444543, 
    -2314885530818453537 <repeats 12 times>}}
        w = 859
        h = -260344
        rfd = {fds_bits = {8, 0 <repeats 31 times>}}
        xfd = 3
        blinkset = 0
        dodraw = Variable "dodraw" is not available.

Reply via email to