Am Dienstag, 28. Dezember 2004 23:47 schrieb Jacek Caban:
> Stefan Leichter wrote:
> >Am Dienstag, 28. Dezember 2004 11:15 schrieb Jacek Caban:
> >>Hi.
> >>
> >>Stefan Leichter wrote:
> >>>Hello,
> >>>
> >>>i hope you all had nice Christmas.
> >>>
> >>>Now back to business :-)
> >>>
> >>>trying to build current cvs (~7:45 AM UTC) i get the error:
> >>>
> >>>make[1]: Entering directory `/usr/src/wine/wine-build/include'
> >>>../tools/widl/widl -I../../wine/include -I. -I../../wine/include
> >>>-I../include -h -H oaidl.h ../../wine/include/oaidl.idl
> >>>
> >>>
> >>>../../wine/include/wtypes.idl:1: Oops, segment violation
> >>>make[1]: *** [oaidl.h] Abgebrochen
> >>>make[1]: *** Datei �oaidl.h� wird gel�scht
> >>>make[1]: Leaving directory `/usr/src/wine/wine-build/include'
> >>>make: *** [include] Fehler 2
> >>>
> >>>My system is still SuSE 9.0. I am doing 'out of tree' builds.
> >>>
> >>>Bye Stefan
> >>
> >>Did you do make depend?
> >>
> >>Thanks,
> >>    Jacek
> >
> >this happens for me during make depend ;-)
> >
> >Thanks Stefan
>
> Could you try debug widl by gdb? Try:
> $ gdb --args ../tools/widl/widl -I../../wine/include -I.
> -I../../wine/include -I../include -h -H oaidl.h
> ../../wine/include/oaidl.idl

Hello,

this problem confuses me. I have started regession testing. It turn out to be 
a problem of 'out of tree' builds and the name of the directory containing 
the cvs tree. If i use the cvs tree as checked out from winehq widl crashes. 
If i rename the main directory wine of the cvs tree to wine-saved1 widl 
works. It looks like the length of the name makes this difference wine-123456 
works also. Shorter names crash widl but in different files. If i build wine 
in the cvs tree itself it works too.

Logfile of gdb session attached.

Thanks Stefan
GNU gdb 5.3.92
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute 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 "i586-suse-linux"...
(gdb) r
Starting program: /usr/src/wine/wine-build/tools/widl/widl -I../../wine/include -I. -I../../wine/include -I../include -h -H oaidl.h ../../wine/include/oaidl.idl

Program received signal SIGSEGV, Segmentation fault.
0x4009e05a in _int_malloc () from /lib/i686/libc.so.6
(gdb) bt
#0  0x4009e05a in _int_malloc () from /lib/i686/libc.so.6
#1  0x4009d06c in malloc () from /lib/i686/libc.so.6
#2  0x080525a0 in pp_xmalloc (size=11) at ../../../wine/libs/wpp/preproc.c:80
#3  0x0805264a in pp_xstrdup (str=0xbfffec68 "\"11:25:54\"")
    at ../../../wine/libs/wpp/preproc.c:108
#4  0x08053218 in add_special_defines () at ../../../wine/libs/wpp/wpp.c:62
#5  0x080533fa in wpp_parse (input=0x80a7ed0 "../../wine/include/wtypes.idl", 
    output=0x80a8220) at ../../../wine/libs/wpp/wpp.c:148
#6  0x0805350e in wpp_parse_temp (
    input=0x80a7ed0 "../../wine/include/wtypes.idl", output_base=0x0, 
    output_name=0x80a6c1c) at ../../../wine/libs/wpp/wpp.c:196
#7  0x08052450 in do_import (fname=0x80a7bf0 "wtypes.idl")
    at ../../../wine/tools/widl/parser.l:414
#8  0x0804f2c1 in yyparse () at ../../../wine/tools/widl/parser.y:256
#9  0x0804db40 in main (argc=9, argv=0xbffff244)
    at ../../../wine/tools/widl/widl.c:266
(gdb) frame 1
#1  0x4009d06c in malloc () from /lib/i686/libc.so.6
(gdb) frame 1 2
#2  0x080525a0 in pp_xmalloc (size=11) at ../../../wine/libs/wpp/preproc.c:80
80	    res = malloc(size);
(gdb) frame 2 3
#3  0x0805264a in pp_xstrdup (str=0xbfffec68 "\"11:25:54\"")
    at ../../../wine/libs/wpp/preproc.c:108
108		s = pp_xmalloc(strlen(str)+1);
(gdb) frame 3 4
#4  0x08053218 in add_special_defines () at ../../../wine/libs/wpp/wpp.c:62
62	    pp_add_define( pp_xstrdup("__TIME__"), pp_xstrdup(buf) );
(gdb) frame 4 5
#5  0x080533fa in wpp_parse (input=0x80a7ed0 "../../wine/include/wtypes.idl", 
    output=0x80a8220) at ../../../wine/libs/wpp/wpp.c:148
148	    add_special_defines();
(gdb) frame 5 6
#6  0x0805350e in wpp_parse_temp (
    input=0x80a7ed0 "../../wine/include/wtypes.idl", output_base=0x0, 
    output_name=0x80a6c1c) at ../../../wine/libs/wpp/wpp.c:196
196	    ret = wpp_parse( input, output );
(gdb) frame 6 7
#7  0x08052450 in do_import (fname=0x80a7bf0 "wtypes.idl")
    at ../../../wine/tools/widl/parser.l:414
414	        ret = wpp_parse_temp( path, NULL, &temp_name );
(gdb) frame 7 8
#8  0x0804f2c1 in yyparse () at ../../../wine/tools/widl/parser.y:256
256							  if (!do_import($2)) yychar = aEOF; }
(gdb) frame 8       quit
The program is running.  Exit anyway? (y or n) 

Reply via email to