Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39069 - openh323-1.12.2-r2 causes segfault on compile
Summary: openh323-1.12.2-r2 causes segfault on compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Stefan Knoblich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 13:02 UTC by Colin Tinker
Modified: 2004-09-03 13:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Tinker 2004-01-22 13:02:51 UTC
emerge -Du gnomemeeting
Calculating dependencies ...done!
>>> emerge (1 of 2) net-libs/openh323-1.12.2-r2 to /
mv: cannot stat `/var/tmp/portage/openh323-1.12.2-r2/temp/environment': No such file or directory
>>> md5 src_uri ;-) openh323_1.12.2.tar.gz
eutils
>>> Unpacking source...
>>> Unpacking openh323_1.12.2.tar.gz to /var/tmp/portage/openh323-1.12.2-r2/work
 * Applying openh323-1.12.2-ffmpeg.diff...                                [ ok ]
 * Applying openh323-1.12.2-include-order.diff...                         [ ok ]
>>> Source unpacked.
eutils
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for i686-pc-linux-gnu-g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
OpenH323 version is 1.12.2
checking for /usr/share/pwlib/version.h... yes
PWLib prefix set to.... /usr/share/pwlib
checking for i686-pc-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking avcodec.h usability... no
checking avcodec.h presence... no
checking for avcodec.h... no
checking for /usr/include/ffmpeg/avcodec.h... yes
                      H263 codec on FFmpeg library  enabled
checking encoder-h263.h usability... no
checking encoder-h263.h presence... no
checking for encoder-h263.h... no
configure: creating ./config.status
config.status: creating openh323u.mak
config.status: creating Makefile
config.status: creating include/openh323buildopts.h
set -e; make -C src opt; make -C samples/simple opt;
make[1]: Entering directory `/var/tmp/portage/openh323-1.12.2-r2/work/openh323/src'
/usr/bin/asnparser --version | awk '{print $1,$2,$3}' > asnparser.version.new
if test -f asnparser.version && diff asnparser.version.new asnparser.version >/dev/null 2>&1 ; \
        then rm asnparser.version.new ; \
        else mv asnparser.version.new asnparser.version ; \
fi
/usr/bin/asnparser -s2 -m H225 -r MULTIMEDIA-SYSTEM-CONTROL=H245 -c /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h225.asn
ASNParse version 1.7.1 for Unix Linux by Equivalence
mv /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h225.h /var/tmp/portage/openh323-1.12.2-r2/work/openh323/include/h225.h
/usr/bin/asnparser -m H235 -c /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h235.asn
ASNParse version 1.7.1 for Unix Linux by Equivalence
mv /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h235.h /var/tmp/portage/openh323-1.12.2-r2/work/openh323/include/h235.h
/usr/bin/asnparser -s3 -m H245 -c --classheader "H245_AudioCapability=#ifndef PASN_NOPRINTON\nvoid PrintOn(ostream & strm) const;\n#endif" /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h245.asn
ASNParse version 1.7.1 for Unix Linux by Equivalence
mv /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h245.h /var/tmp/portage/openh323-1.12.2-r2/work/openh323/include/h245.h
g++ -I/var/tmp/portage/openh323-1.12.2-r2/work/openh323/include  -I/usr/include/ffmpeg -DP_LINUX=2.6.1 -ffunction-sections -fdata-sections -D_REENTRANT  -Wall  -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/usr/share/pwlib/include/ptlib/unix -I/usr/include/pwlib -DPASN_NOPRINTON -DPASN_LEANANDMEAN -DHAS_IXJ -DHAS_OSS -DPASN_NOPRINTON -I/usr/share/pwlib/include -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -O3 -march=athlon-tbird -funroll-loops -pipe -x c++ -c /var/tmp/portage/openh323-1.12.2-r2/work/openh323/src/h225_1.cxx -o /var/tmp/portage/openh323-1.12.2-r2/work/openh323/lib/obj_linux_x86_rn/h225_1.o
g++ -I/var/tmp/portage/openh323-1.12.2-r2/work/openh323/include  -I/usr/include/ffmpeg -DP_LINUX=2.6.1 -ffunction-sections -fdata-sections -D_REENTRANT  -Wall  -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/usr/share/pwlib/include/ptlib/unix -I/usr/include/pwlib -DPASN_NOPRINTON -DPASN_LEANANDMEAN -DHAS_IXJ -DHAS_OSS -DPASN_NOPRINTON -I/usr/share/pwlib/include -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -O3 -march=athlon-tbird -funroll-loops -pipe -x c++ -c h225_2.cxx -o /var/tmp/portage/openh323-1.12.2-r2/work/openh323/lib/obj_linux_x86_rn/h225_2.o
h225_2.cxx: In constructor `
   H225_GatekeeperReject::H225_GatekeeperReject(unsigned int,
   PASN_Object::TagClass)':
h225_2.cxx:4284: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.

emerge info
Portage 2.0.50_pre19 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-tbird -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-tbird -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs distcc fixpackages keeptemp noauto noclean notitles sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://212.219.247.18/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi acpi4linux apm arts avi berkdb bonobo cdr chroot crypt cups curl dga directfb dvd encode esd ethereal faad fam fbcon flac foomaticdb freetype gdbm gif gnome gphoto2 gpm gtk gtk2 imagemagick imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mpeg4 mysql ncurses nls oggvorbis opengl oss pam pcap pdflib perl pic png postgres prelink python qt quicktime readline scanner sdl slang sox speedo spell ssl svga t1lib tcpd tiff transcode truetype usb v4l vanilla vim-with-x x86 xfs xml2 xmms xv zlib zvbi linguas_en_GB"


Reproducible: Always
Steps to Reproduce:
1.emerge -Dup gnomeeting
2.error above given
3.

Actual Results:  
compile fails

Expected Results:  
Compile suceeds

I have tried about 6 times to compile this and it always fails at this point.  I
have unmerged all depends and remerged twice.  Re down loaded but with same results.
Comment 1 Stefan Knoblich (RETIRED) gentoo-dev 2004-01-24 07:58:50 UTC
i can reproduce this here using your cflags, this looks like a gcc bug

because openh323 has some _really_ large .cpp files these are more likely to be triggered

tested and failed with:

CFLAGS="-O3 -march=athlon-tbird -funroll-loop -pipe"
CFLAGS="-O2 -march=athlon-tbird -funroll-loop -pipe"
CFLAGS="-O1 -march=athlon-tbird -funroll-loop -pipe"
CFLAGS="-march=athlon-tbird -funroll-loop -pipe"

CFLAGS="-O3 -mcpu=athlon-tbird -funroll-loop -pipe"
	"h225_2.cxx:10267: internal compiler error: Segmentation fault"

CFLAGS="-O3 -march=athlon-tbird -pipe"
	"h225_2.cxx:9004: internal compiler error: Segmentation fault"

CFLAGS="-O3 -mcpu=athlon-tbird -pipe"
	h225_2.cxx:6802: internal compiler error: Segmentation fault

CFLAGS="-O2 -mcpu=athlon-tbird -pipe"




Comment 2 Colin Tinker 2004-01-27 11:08:45 UTC
I have tried:-

CFLAGS="-O2" emerge openh323
CFLAGS="-O1" emerge openh323
CFLAGS="" emerge openh323

I still get the same result seg fault, any other app I have compiled is fine.
Comment 3 Colin Tinker 2004-01-27 11:36:45 UTC
After a reboot to clear memory it has compiled with:-

CFLAGS="-O1" emerge openh323

Can this be set in future ebuild's to save others frustration?
Comment 4 Steve Arnold archtester gentoo-dev 2004-02-08 19:19:18 UTC
I had the same problem with the 2.6.1 kernel headers (even after fixing the pwlib 
time.h problem).  I had to go down to "-mcpu=athlon-xp -O" before it would build 
successfully.  After that, gnomemeeting finally built (yay!).
Comment 5 Stefan Knoblich (RETIRED) gentoo-dev 2004-02-11 06:48:06 UTC
openh323 should be our new gcc stress testing and benchmarking tool

i'm going to add a warning message to the ebuild if the user has gcc-3.3.2 running (and maybe play with filter-flags / replace-flags too)
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-09-03 11:34:01 UTC
still an issue?
Comment 7 Colin Tinker 2004-09-03 11:37:47 UTC
Sorry forgot about this one, nope the last version worked fine.
Comment 8 Stefan Knoblich (RETIRED) gentoo-dev 2004-09-03 13:00:42 UTC
ok, closing it now