Gene Cumm
2015-Sep-13 12:31 UTC
[syslinux] EFI: HP + syslinux = crash [ brown paper bag update ]
On Tue, Aug 11, 2015 at 9:11 AM, Patrick Masotta via Syslinux <syslinux at zytor.com> wrote:> >>> > > > Please implement these new changes over your last non-debug > > working build (multi-nic fix) and let's see how it goes. > > > > https://github.com/ppatpat/syslinux/compare/master...ppatpat:zlib?expand=1 > > > > Please report your results. > > Results are in. They are very good. > No crashing even with the original config! > <<< > > It is also working here; I think this particular PNG issue is fixed. > > It's worth to mention that the replaced code looks valid to me; that's why I think > this is probably some sort of compiler bug. It was really hard to find. > We should keep an eye on this issue; it might appear somewhere else.Eww. The original code was merely an empty define. That's pretty nasty. Alternatively, we could void them -# define Assert(cond,msg) +# define Assert(cond,msg) ((void)0) -- -Gene
Patrick Masotta
2015-Sep-13 13:22 UTC
[syslinux] EFI: HP + syslinux = crash [ brown paper bag update ]
>>>> It is also working here; I think this particular PNG issue is fixed. > > It's worth to mention that the replaced code looks valid to me; that's why I think > this is probably some sort of compiler bug. It was really hard to find. > We should keep an eye on this issue; it might appear somewhere else. Eww.? The original code was merely an empty define.? That's pretty nasty. Alternatively, we could void them -#? define Assert(cond,msg) +#? define Assert(cond,msg) ((void)0) -- -Gene <<< The empty define should work; actually it did work for many years... Your just proposed change was my first attempt for solving this but for some reason it did not work. After testing a lot the only way I've found to solve this bug was defining a "real" empty function. I know, 100% hacky but it works. Best, Patrick
Gene Cumm
2015-Sep-13 13:52 UTC
[syslinux] EFI: HP + syslinux = crash [ brown paper bag update ]
On Sun, Sep 13, 2015 at 9:22 AM, Patrick Masotta <masottaus at yahoo.com> wrote:> >>>> > > It is also working here; I think this particular PNG issue is fixed. > > > > It's worth to mention that the replaced code looks valid to me; that's why I think > > this is probably some sort of compiler bug. It was really hard to find. > > We should keep an eye on this issue; it might appear somewhere else. > > Eww. The original code was merely an empty > define. That's pretty nasty. > > Alternatively, we could void them > > -# define Assert(cond,msg) > +# define Assert(cond,msg) ((void)0) > > -- > -Gene > <<< > > > The empty define should work; actually it did work for many years... > > Your just proposed change was my first attempt for solving this but for some > reason it did not work. After testing a lot the only way I've found to solve this > bug was defining a "real" empty function. I know, 100% hacky but it works.If the voiding doesn't work, we'll need that function in another 44 lines of code, spread throughout the source. -- -Gene
Apparently Analagous Threads
- EFI: HP + syslinux = crash [ brown paper bag update ]
- EFI: HP + syslinux = crash [ brown paper bag update ]
- EFI: HP + syslinux = crash [ brown paper bag update ]
- EFI: HP + syslinux = crash [ brown paper bag update ]
- EFI: HP + syslinux = crash [ brown paper bag update ]