Update on this: valgrind tellsme this:
---------------------------
==6641== Invalid free() / delete / delete[]
==6641==    at 0x40043D89: free (vg_clientfuncs.c:180)
==6641==    by 0x402B6FD9: _XlcLocaleDirName (in
/usr/src/redhat/BUILD/XFree86-4.2.5/xc/lib/X11/libX11.so.6.2)
==6641==    by 0x402B0F29: _XlcDynamicLoad (in
/usr/src/redhat/BUILD/XFree86-4.2.5/xc/lib/X11/libX11.so.6.2)
==6641==    by 0x402946CA: _XOpenLC (in
/usr/src/redhat/BUILD/XFree86-4.2.5/xc/lib/X11/libX11.so.6.2)
==6641==    Address 0x42122721 is not stack'd, malloc'd or free'd
-----------------------------

Also, I don't get this crash without LD_LIBRARY_PATH specified (i.e.
when linked with the system's current X11 - 4.2.0 from RH RawHide).

Hope this helps.

Rgds,
Biswa.

On Tue, 2002-09-17 at 17:02, [EMAIL PROTECTED] wrote:
> 
> 
> Hi all
> 
> M/c: RedHat 7.3/kernel 2.4.18-10/P41.8/512MB/i845
> 
> I'm trying to build XFree86 CVS (updated today morning) and getting the
> following error:
> -------------------------------------------------------
> .....
> make[5]: Entering directory
> `/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols'
> rm -f symbols.dir
> LD_LIBRARY_PATH=../../../exports/lib  ../../../exports/bin/xkbcomp
> -lfhlpR -o symbols.dir '*'
> make[5]: *** [symbols.dir] Segmentation fault
> make[5]: *** Deleting file `symbols.dir'
> make[5]: Leaving directory
> `/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols'
> make[4]: *** [all] Error 2
> ----------------------------------------------------------
> 
> Using GDB, I'm getting a weird backtrace (mem corruption ?)
> 
> 
>--------------------------------------------------------------------------------------
> 
> 
>TECHSHELF:/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols>LD_LIBRARY_PATH
> 
> ../../../exports/lib  gdb ../../../exports/bin/xkbcomp
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> GNU gdb Red Hat Linux (5.1-1)
> Copyright 2001 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distrib /lib/ld-linux.so.2 =>
> /lib/ld-linux.so.2 (0x40000000)ute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) set args -lfhlpR -o symbols.dir '*'
> (gdb) run
> Starting program:
> 
>/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols/../../../exports/bin/xkbcomp
> 
> -lfhlpR -o symbols.dir '*'
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4207ac55 in free () from /lib/i686/libc.so.6
> (gdb) bt
> #0  0x4207ac55 in free () from /lib/i686/libc.so.6
> #1  0x4008efd9 in _XlcLocaleDirName () from
> ../../../exports/lib/libX11.so.6
> #2  0x40088f29 in _XlcDynamicLoad () from
> ../../../exports/lib/libX11.so.6
> #3  0x4006c6ca in _XOpenLC () from ../../../exports/lib/libX11.so.6
> #4  0x4006c819 in _XrmInitParseInfo () from
> ../../../exports/lib/libX11.so.6
> #5  0x400568f4 in NewDatabase () from ../../../exports/lib/libX11.so.6
> #6  0x400588d5 in XrmGetFileDatabase () from
> ../../../exports/lib/libX11.so.6    /lib/ld-linux.so.2 =>
> /lib/ld-linux.so.2 (0x40000000)
> #7  0x4004fb4a in _XInitKeysymDB () from
> ../../../exports/lib/libX11.so.6
> #8  0x4004fcb2 in XStringToKeysym () from
> ../../../exports/lib/libX11.so.6
> #9  0x080646d9 in LookupKeysym ()
> #10 0x080638b6 in yyparse ()
> #11 0x080649f3 in XKBParseFile ()
> #12 0x08062b92 in GenerateListing ()
> #13 0x0804b560 in main ()
> #14 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
> (gdb)
> ---------------------------------------------------------------------------
> 
> Dynamic linking seems to be OK..
> -----------------------------------------------------
> 
>TECHSHELF:/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols>LD_LIBRARY_PATH
> 
> ../../../exports/lib  ldd ../../../exports/bin/xkbcomp
>  libXext.so.6 => ../../../exports/lib/libXext.so.6 (0x40014000)
>  libX11.so.6 => ../../../exports/lib/libX11.so.6 (0x40022000)
>  libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
>  libdl.so.2 => /lib/libdl.so.2 (0x4010d000)
>  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> TECHSHELF:/usr/src/redhat/BUILD/XFree86-4.2.5/xc/programs/xkbcomp/symbols
> 
>--------------------------------------------------------------------------------------------
> 
> 
> Any pointers ?
> 
> Thanks in advance.
> 
> Rgds,
> Biswa.
> 
> 
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert
> 
> 


_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to