Issue 62770 - Segmentation fault while building OOo 2.0.2 RC3/RC4 with GCC 4.1
Summary: Segmentation fault while building OOo 2.0.2 RC3/RC4 with GCC 4.1
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: kay.ramme
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 14:49 UTC by sbergmann
Modified: 2006-03-30 17:18 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sbergmann 2006-03-04 14:49:57 UTC
=============
Building project pyuno
=============
/var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/unotypes
-------------
/var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/module
dmake: Executing shell macro: $(FIND) . -name
"{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX),
$(SHL1TARGET)))}.xml"
------------------------------
Making: ../../unxlngi6.pro/misc/pyuno.dpc
dmake subdmake=true  -f makefile.mk  depend=t ALLDPC
Making : Dependencies
touch ../../unxlngi6.pro/misc/pyuno.dpc
--- NOOPTFILES ---
dmake: Executing shell macro: $(FIND) . -name
"{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX),
$(SHL1TARGET)))}.xml"
`../../unxlngi6.pro/slo/pyuno_module.obj' is up to date
--- NOOPTFILES OVER ---
-------------
/var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/loader
dmake: Executing shell macro: $(FIND) . -name
"{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX),
$(SHL1TARGET)))}.xml"
------------------------------
Making: ../../unxlngi6.pro/misc/pythonloader.uno.dpc
dmake subdmake=true  -f makefile.mk  depend=t ALLDPC
Making : Dependencies
touch ../../unxlngi6.pro/misc/pythonloader.uno.dpc
-------------
rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb
../../unxlngi6.pro/lib/pyuno_services.tmp
../../unxlngi6.pro/lib/pyuno_services.rdb
cd ../../unxlngi6.pro/lib && regcomp -register -r pyuno_services.tmp -c
typeconverter.uno -c invocation.uno -c reflection.uno -c introspection.uno -c
invocadapt.uno -c proxyfac.uno -c pythonloader.uno
Segmentation fault
dmake:  Error code 139, while making
'../../unxlngi6.pro/lib/pyuno_services.rdb'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/loader
make: *** [stamp/build] Error 1

-- 

Portage 2.1_pre5-r3 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.3.6-r3,
2.6.15-gentoo-r6 i686)
=================================================================
System uname: 2.6.15-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages sandbox sfperms
sign strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/personal /usr/local/overlay/cvs
/usr/local/overlay/gnome"
SYNC="rsync://194.97.4.250/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf avi beagle berkdb bitmap-fonts bonjour
browserplugin bzip2 cairo cdr crypt cups dbus divx4linux dvd dvdr dvdread eds
emboss encode exif fame firefox flac foomaticdb fortran galago gdbm gif glitz
gnome gpm gstreamer gtk gtk2 hal howl imlib ipv6 java jpeg libg++ libnotify
libsexy libwww lzo mad matroska mikmod mjpeg mmx mng mono moznocompose moznoirc
moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nsplugin nvidia ogg oggvorbis
opengl oss pam pam_console pcre pdflib perl png python quicktime readline spell
sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode
usb vorbis win32codecs wmf xml2 xv xvid zlib elibc_glibc input_devices_evdev
input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux
linguas_de userland_GNU video_cards_nv video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 kay.ramme 2006-03-15 14:04:09 UTC
Joerg, please take this over ... thanks.
Comment 2 joergbudi 2006-03-20 20:50:54 UTC
Hi,

can you check, whether executing

regcomp -register -r pyuno_services.tmp -c typeconverter.uno -c invocation.uno
-c reflection.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno

also creates a crash ? In case it does, it is a problem with the compiler, libc
or binutils and has nothing to do with python. Can you provide a stacktrace and
a list of loaded shared libraries(

limit coredumpsize unlimited, 
gdb `which regcomp` core
where
info shared
)
Bye,

Joerg
Comment 3 sbergmann 2006-03-21 07:24:00 UTC
wopr-mobile lib #
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/regcomp
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) set args -register -r pyuno_services.tmp -c typeconverter.uno -c
invocation.uno -c reflection.uno -c introspection.uno -c invocadapt.uno -c
proxyfac.uno
(gdb) r
Starting program:
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/regcomp.bin
-register -r pyuno_services.tmp -c typeconverter.uno -c invocation.uno -c
reflection.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno
[Thread debugging using libthread_db enabled]
[New Thread -1214658896 (LWP 21232)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214658896 (LWP 21232)]
0xb7dbbaf5 in getFromCommandLineArgs () from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_sal.so.3
(gdb) bt
#0  0xb7dbbaf5 in getFromCommandLineArgs () from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_sal.so.3
#1  0xb7dbc89f in getIniFileName_Impl () from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_sal.so.3
#2  0xb7dbd8b9 in get_static_bootstrap_handle () from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_sal.so.3
#3  0xb7dbd9f9 in rtl_bootstrap_get_from_handle () from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_sal.so.3
#4  0xb7d054ab in cppu::add_access_control_entries ()
   from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_cppuhelpergcc3.so.3
#5  0xb7d0694f in cppu::bootstrapInitialContext ()
   from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_cppuhelpergcc3.so.3
#6  0xb7d0852b in cppu::createRegistryServiceFactory ()
   from
/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/../lib/libuno_cppuhelpergcc3.so.3
#7  0x0804f843 in bootstrap ()
#8  0x08050753 in sal_main ()
#9  0x080516a6 in main ()
Comment 4 joergbudi 2006-03-21 12:34:40 UTC
Hi Kay,

crashes within bootstrapargument handling without pyuno involved. Your job to
investigate :-).

Bye,

Joerg
Comment 5 kendy 2006-03-30 17:17:46 UTC
Caused by sal-cxa-guard.diff in ooo-build, which was initially a workaround for  
issue 34676.  Removed from ooo-build HEAD - empty implementation of  
__cxa_guard_acquire/__cxa_guard_release is really not a good idea, and the  
initial problem is solved somehow else up-stream anyway.  
Comment 6 kendy 2006-03-30 17:18:55 UTC
Closing.