1 |
> I took a look at the problem cited in your bug report. I suggest |
2 |
> compiling sys-boot/grub with CFLAGS="-O0 -ggdb3", attaching gdb to |
3 |
> grub-install and then watching what happens in the debugger. If you |
4 |
> compare runs with a GCC 4.5.3 built stage2 and a GCC 4.6.2 built |
5 |
> stage2, you should be able to find the bug. |
6 |
|
7 |
I should add that I was able to use this technique to fix a bug that I |
8 |
encountered during my initial attempt to port Illumos GRUB a month |
9 |
ago. The code the introduced the Illumos GRUB bug is not present in |
10 |
sys-boot/grub, but I imagine that the same technique should work here. |
11 |
|
12 |
Also, for anyone interested in what happened to the |
13 |
sys-boot/grub-illumos port I mention, there are issues with the |
14 |
generated stage2 binary, grub-install is broken (Solaris uses a |
15 |
separate install-grub tool) and I would prefer to rework the Sun |
16 |
Microsystems code into a patch for sys-boot/grub, but the diff between |
17 |
Illumos GRUB and GRUB 0.97 is a few megabytes in size, so that won't |
18 |
happen this month. |