[Mesa-dev] Makedepend running forever on Fedora 16

Thomas Hellstrom thellstrom at vmware.com
Fri Nov 11 04:23:09 PST 2011


Hi, all

The commit

commit 63e7a4c6e5bf51d8090046ebc5adcb4207448565
Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Nov 9 10:20:51 2011 +0000

     mesa,glsl,mapi: Put extern "C" { ... } where appropriate.

     Probably a several places missing, but enough to cover all headers
     (in)directly included by uniform_query.cpp, and fix the MSVC build.


makes "makedepend" run forever in the src/mesa subdirectory on Fedora 
16, x86,
I haven't seen this happening on other distros.

Any fedora- or Makedepend insights would be appreciated.

Preliminary investigations show that makedepend appears to get stuck 
parsing the line

#if FEATURE_dlist,

consuming 95% CPU. No IO or memory usage growth.  A typical ctrl-c 
backtrace when this happens is

  (gdb) bt
#0  0x00357416 in __kernel_vsyscall ()
#1  0x4d383fe3 in __write_nocancel () at 
../sysdeps/unix/syscall-template.S:82
#2  0x4d312215 in _IO_new_file_write (f=0x4d449920, data=0x4d449967, n=1)
     at fileops.c:1289
#3  0x4d3120f4 in new_do_write (fp=0x4d449920,
     data=0x4d449967 " ,\250DM\377\377\377\377\377\377\377\377", to_do=1)
     at fileops.c:543
#4  0x4d313cfe in _IO_new_do_write (fp=0x4d449920,
     data=0x4d449967 " ,\250DM\377\377\377\377\377\377\377\377", to_do=1)
     at fileops.c:516
#5  0x4d31404d in _IO_new_file_overflow (f=0x4d449920, ch=32) at 
fileops.c:902
#6  0x4d314c4b in __GI___overflow (f=0x4d449920, ch=32) at genops.c:248
#7  0x4d30f6df in _IO_putc (c=32, fp=0x4d449920) at putc.c:33
#8  0x0804bced in my_if_errors (ip=0xbff02c9c,
     cp=0x82310ab "FEATURE FEATURE_beginend)", expecting=0x804d4cc ")")
     at cppsetup.c:56
#9  0x0804c31b in parse_value (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:254
#10 0x0804c680 in parse_product (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:287
#11 0x0804c770 in parse_sum (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02a6c)
     at ifparser.c:318
#12 0x0804c810 in parse_shift (g=0xbff02c9c, cp=<optimized out>,
---Type <return> to continue, or q <return> to quit---
     valp=0xbff02a6c) at ifparser.c:341
#13 0x0804c8b0 in parse_inequality (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:368
#14 0x0804c9c0 in parse_equality (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:401
#15 0x0804ca70 in parse_band (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:428
#16 0x0804cae0 in parse_bxor (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:448
#17 0x0804cb50 in parse_bor (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02a6c)
     at ifparser.c:466
#18 0x0804cbc0 in parse_land (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:486
#19 0x0804cc60 in parse_lor (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02a6c)
     at ifparser.c:506
#20 0x0804cd01 in parse_cond (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02a6c) at ifparser.c:526
#21 0x0804be7a in my_eval_variable (ip=0xbff02c9c,
     var=0x8231090 "(FEATURE_GL && FEATURE_arr FEATURE FEATURE_beginend)",
     len=13) at cppsetup.c:107
#22 0x0804c0b3 in parse_value (g=0xbff02c9c, cp=0xb7832567 "", 
valp=0xbff02cbc)
     at ifparser.c:260
#23 0x0804c680 in parse_product (g=0xbff02c9c, cp=<optimized out>,
---Type <return> to continue, or q <return> to quit---
     valp=0xbff02cbc) at ifparser.c:287
#24 0x0804c770 in parse_sum (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02cbc)
     at ifparser.c:318
#25 0x0804c810 in parse_shift (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:341
#26 0x0804c8b0 in parse_inequality (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:368
#27 0x0804c9c0 in parse_equality (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:401
#28 0x0804ca70 in parse_band (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:428
#29 0x0804cae0 in parse_bxor (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:448
#30 0x0804cb50 in parse_bor (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02cbc)
     at ifparser.c:466
#31 0x0804cbc0 in parse_land (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:486
#32 0x0804cc60 in parse_lor (g=0xbff02c9c, cp=<optimized out>, 
valp=0xbff02cbc)
     at ifparser.c:506
#33 0x0804cd01 in parse_cond (g=0xbff02c9c, cp=<optimized out>,
     valp=0xbff02cbc) at ifparser.c:526
#34 0x0804bf24 in cppsetup (filename=0x845b558 "main/dlist.c",
     line=0xb783255a "FEATURE_dlist", filep=0x8224758, inc=0x8054640)
---Type <return> to continue, or q <return> to quit---
     at cppsetup.c:131
#35 0x0804b21f in zero_value (file_red=0x8054640, filep=0x8224758,
     exp=0xb783255a "FEATURE_dlist", filename=<optimized out>) at 
parse.c:316
#36 deftype (line=0xb7832556 "#if FEATURE_dlist", filep=0x8224758,
     file_red=0x8054640, parse_it=1, file=<optimized out>) at parse.c:174
#37 0x0804b4a4 in find_includes (filep=0x8224758, file=0x8054640,
     file_red=0x8054640, recursion=0, failOK=0 '\000') at parse.c:562
#38 0x08048ec6 in main (argc=<optimized out>, argv=<optimized out>)
     at main.c:523


More information about the mesa-dev mailing list