From: Keith W. <ke...@tu...> - 2002-12-04 23:36:34
|
Brian Paul wrote: > Alexandr Andreev wrote: > >> I have configured Mesa-5.0 with "--enable-profile" option, but my >> application >> crashed when i run it with this profiled library. Without this option >> all works >> OK. Profiling is working fine in Mesa-4.0.3. >> >> I built my application statically and started it under the gdb. I >> found that it >> crashes in _math_init(). Here is the code of this function when >> profiling is >> enabled: >> >> ... >> 081087bc <_math_init>: >> 81087bc: ff 93 0c 02 00 00 call *0x20c(%ebx) >> 81087c2: 55 push %ebp >> 81087c3: 89 e5 mov %esp,%ebp >> 81087c5: 53 push %ebx >> 81087c6: 52 push %edx >> 81087c7: e8 00 00 00 00 call 81087cc <_math_init+0x10> >> 81087cc: 5b pop %ebx >> ... >> >> It crashes at the first "call" :( This "call" is absent when profiling is >> disabled. >> >> I do: >> # ./configure --disable-optimize --enable-profile >> My machine is PIII with RH7.2 and gcc 2.96. >> >> Do i need to use a newer gcc, or do i need to use any additional >> options in >> Mesa 5.0? Is profiling tested in Mesa-5.0? > > > I've never tried profiling in that manner and I don't have time now to > try it myself. > > Unless someone else can help you, you may be on your own. Forget about it and use oprofile. Keith |