[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGSEGV hitting Alt-Insert in in e_x_cp_X_to_buffer() at we_xterm.c:956



Hi,

SYSTEM: Redhat 6.2, 2.2.14-5.1, pentium I, 32M of RAM
VERSION: xwpe-1.5.23a
SYNOPSIS: Hitting Alt-Insert just after startup causes SEGV.

The bug is reproducible.

Here is the backtrace after the SEGV
----8<--------8<--------8<--------8<--------8<--------8<----
Starting program: /opt/xwpe-1.5.23a/bin/xwpe 

Program received signal SIGSEGV, Segmentation fault.
0x8092d62 in e_x_cp_X_to_buffer (f=0x80beac0) at we_xterm.c:956
956       n = strlen(str);
(gdb) directory ~/xwpe-1.5.23a
Source directories searched: /home/nuser/xwpe-1.5.23a:$cdir:$cwd
(gdb) bt
#0  0x8092d62 in e_x_cp_X_to_buffer (f=0x80beac0) at we_xterm.c:956
#1  0x805237e in e_schreib_leiste (s=0x80bede0 "*", x=40, y=5, n=21,
max=79, ft=31, fs=47) at we_e_aus.c:339
#2  0x8076c5b in e_schr_lst_wsv (str=0x80bede0 "*", xa=40, ya=5, n=24,
len=79, ft=31, fz=47, df=0x80b4c64, f=0x80beac0) at we_wind.c:1330
#3  0x805cc9f in WpeHandleFileManager (cn=0x80b4b98) at we_fl_unix.c:546
#4  0x804adaa in main (argc=1, argv=0xbffffb04) at we_main.c:415
(gdb) frame 0
#0  0x8092d62 in e_x_cp_X_to_buffer (f=0x80beac0) at we_xterm.c:956
956       n = strlen(str);
(gdb) l
951       if (WpeXInfo.property_atom == None)
952        return 0;
953       XGetWindowProperty(WpeXInfo.display, WpeXInfo.window,
WpeXInfo.property_atom,
954         0, 1000000, FALSE, WpeXInfo.text_atom, &type, &format,
&nitems, &bytes_left,
955         &str);
956       n = strlen(str);
957      }
958     #else
959      str = XFetchBytes(WpeXInfo.display, &n);
960     #endif
(gdb) p str
$1 = (unsigned char *) 0x0
(gdb) p *str
Cannot access memory at address 0x0
(gdb) 
----8<--------8<--------8<--------8<--------8<--------8<----

-- 
           Windows is not the only operating system in the world.
                          Try  LINUX, Try Free BSD
                                 Jeremy Bar
____________________________________________________________________________