Summary: | sharutils-4.4 uses an unitialized variable and crashes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan Yosifov <iyosifov> |
Component: | [OLD] Games | Assignee: | Daniel Black (RETIRED) <dragonheart> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ivan Yosifov
2005-08-02 08:10:21 UTC
Well, for starters, I would try rebuilding without the crazy CFLAGS. Try just CFLAGS="-pipe" and see if it helps. You might also want to try recompiling sharutils/glibc with these new CFLAGS. I will try that ( I am rebuilding glibc as I type this ), yet I think the CFLAGS are rather sane, but an experiment won't hurt. not a bug in quake2-icculus looks like your coreutils and/or toolchain is broken should probably drop down your CFLAGS and re-emerge them Please do ebuild /usr/portage/app-arch/sharutils/sharutils-4.4.ebuild unpack and open /var/tmp/portage/sharutils-4.4/work/sharutils-4.4/src/unshar.c with your favourite editor. Notice at line 438: name_buffer = (name_buffer == NULL) ? malloc (buflen) : realloc (name_buffer, buflen); This is the bombing realloc. Please correct me if I am wrong, but name_buffer is used uninitialized - it is defined just as char* name_buffer; ( line 361 ), so it has a random non-NULL value and the trenarry-if tries to realloc it and fails. Also, the rebuild of glibc and sharutils just completed - and did not help. Reopening, and changed the title to better reflect the problem. This is not a games bug, you may need to reasign it. Also, downgrading sharutils from 4.4 to 4.2.1-r11 fixes the quake2 emerge problem. fixed in 4.4-r1 - thank you I've I'm going to email the current upstream maintainer. |