[Pkg-corba-devel] Bug#467503: g++-4.2 generates code that sigsegv on arm for omniORB

Thomas Girard thomas.g.girard at free.fr
Mon Feb 25 22:41:13 UTC 2008


Package: g++-4.2
Version: 4.2.3-1
Severity: important

Hello,

While investigating why omniORB 4.1.1 FTBFS on arm[1], I tried
compilation with g++-4.1 (4.1.2-19) and it worked.

With g++-4.2 (4.2.3-1) or g++-4.3 (4.3-20080202-1) it generates
code that crashes at runtime in the Prefix::newFile() method,
when invoked for the second time (even compiled with -O0). FWIW
the crash can be reproduced using a qemu arm box.

The code crashes in the method prolog:

  mov r12, sp
  push { r4, r5, r6, r7, r8, r9, r10, r11, r12, lr, sp }
  sfm f4, 4, [ sp, #-48 ]!
  sub r11, r12, #4
  sub sp, sb, #72
  ldr r3, [ pc, #244 ]
  ldr r1, [ r11, #-160 ]
  ldr r3, [ r1, r3 ] <- this is where the crash occurs

Please find attached assembly files generated by g++-4.1 and
g++-4.2.

On the second invocation r1 gets loaded to 0, hence the crash.

Regards,

Thomas

[1] http://bugs.debian.org/460419


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages g++-4.2 depends on:
ii  gcc-4.2                       4.2.3-1    The GNU C compiler
ii  gcc-4.2-base                  4.2.3-1    The GNU Compiler Collection (base 
ii  libc6                         2.7-8      GNU C Library: Shared libraries
ii  libstdc++6-4.2-dev            4.2.3-1    The GNU Standard C++ Library v3 (d

g++-4.2 recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idlrepoId.s_4.2
Type: text/x-asm
Size: 365085 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-corba-devel/attachments/20080225/3cbf7624/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idlrepoId.s_4.1
Type: text/x-asm
Size: 364853 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-corba-devel/attachments/20080225/3cbf7624/attachment-0003.bin 


More information about the Pkg-corba-devel mailing list