public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27303]  New: crash at unalign access
@ 2006-04-25 11:12 mehmet dot ekici at alcatel dot com dot tr
  2006-04-25 11:36 ` [Bug target/27303] " rguenth at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mehmet dot ekici at alcatel dot com dot tr @ 2006-04-25 11:12 UTC (permalink / raw)
  To: gcc-bugs

Sortly,
We have a global variable which is initialized to 1 and named AMLogging.
When we compile our source it does not cause any problem but when we change
AMLogging = 0; 
and compile, if at run time we try to access to this variable it is causing
system to crash with a floating point exception to 4-byte aligned address.

We think that because the location of the variable moves to bss instead of data
section compiler makes alignment errors.

Following is about our compiler version and options used.

bt0puk:/home/mekici/crash/geltbas/acpu> mips-gcc -v -save-temps -DLANGUAGE_C
-O2 -g -DACPU_SCM -DGELT -DGFI_GM_RUN_TIME -DGM_USE_BPD -DGM_PM_TYPE_PROMPT
-nostdlib -I. -I./Includes -nostdinc -fsigned-char -fno-builtin -Wreturn-type
-Wuninitialized -Winline -Wswitch -Wchar-subscripts -Wshadow
-Wimplicit-function-declaration -DREL_220 -mlong-calls -mdivide-breaks -mfp32
-mhard-float -mdouble-float -march=rm9k -mips4 -EL -G 0 -c ./image-ver.c
Reading specs from /project/xana/gcc-3.4.3/bin/../lib/gcc/mips/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/home/beckers/crossdev
--target=mips --disable-threads --with-newlib --disable-shared
--enable-languages=c --with-stabs --nfp --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 3.4.3
 /project/xana/gcc-3.4.3/bin/../libexec/gcc/mips/3.4.3/cc1 -E -quiet -nostdinc
-v -I. -I./Includes -iprefix /project/xana/gcc-3.4.3/bin/../lib/gcc/mips/3.4.3/
-DLANGUAGE_C -DACPU_SCM -DGELT -DGFI_GM_RUN_TIME -DGM_USE_BPD
-DGM_PM_TYPE_PROMPT -DREL_220 ./image-ver.c -G 0 -mel -mlong-calls
-mdivide-breaks -mfp32 -mhard-float -mdouble-float -march=rm9k -mips4
-Wreturn-type -Wuninitialized -Winline -Wswitch -Wchar-subscripts -Wshadow
-Wimplicit-function-declaration -fsigned-char -fno-builtin -fworking-directory
-O2 -o image-ver.i
#include "..." search starts here:
#include <...> search starts here:
 .
 ./Includes
 /usr/openwin/lib
 /ap/local/5.8/include
End of search list.
 /project/xana/gcc-3.4.3/bin/../libexec/gcc/mips/3.4.3/cc1 -fpreprocessed
image-ver.i -G 0 -mel -quiet -dumpbase image-ver.c -mlong-calls -mdivide-breaks
-mfp32 -mhard-float -mdouble-float -march=rm9k -mips4 -auxbase image-ver -g -O2
-Wreturn-type -Wuninitialized -Winline -Wswitch -Wchar-subscripts -Wshadow
-Wimplicit-function-declaration -version -fsigned-char -fno-builtin -o
image-ver.s
GNU C version 3.4.3 (mips)
        compiled by GNU C version 2.95.3 20010315 (release).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 /project/xana/gcc-3.4.3/bin/../lib/gcc/mips/3.4.3/../../../../mips/bin/as -G 0
-EL -mips4 -O2 -g -no-mdebug -32 -march=rm9k -v -o image-ver.o image-ver.s
GNU assembler version 050111 (mips) using BFD version 050111 20050111


-- 
           Summary: crash at unalign access
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mehmet dot ekici at alcatel dot com dot tr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
@ 2006-04-25 11:36 ` rguenth at gcc dot gnu dot org
  2006-04-25 11:50 ` mehmet dot ekici at alcatel dot com dot tr
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-25 11:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-04-25 11:36 -------
First, gcc 3.4.3 is no longer in active maintainance, the oldest still
maintained version is 4.0.3.  Second, please read the bugreporting guidelines
and provide a testcase for the problem.  Third, this may be as well a linker or
assembler bug (or missing feature).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
 GCC target triplet|                            |mips
           Keywords|                            |ABI, wrong-code
            Summary|crash at unalign access     |crash at unalign access


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
  2006-04-25 11:36 ` [Bug target/27303] " rguenth at gcc dot gnu dot org
@ 2006-04-25 11:50 ` mehmet dot ekici at alcatel dot com dot tr
  2006-04-25 12:07 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mehmet dot ekici at alcatel dot com dot tr @ 2006-04-25 11:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mehmet dot ekici at alcatel dot com dot tr  2006-04-25 11:49 -------
(In reply to comment #1)
> First, gcc 3.4.3 is no longer in active maintainance, the oldest still
> maintained version is 4.0.3.  Second, please read the bugreporting guidelines
> and provide a testcase for the problem.  Third, this may be as well a linker or
> assembler bug (or missing feature).

Would you please tell me how I can localize the problem if it is ld or gcc ?


-- 

mehmet dot ekici at alcatel dot com dot tr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mehmet dot ekici at alcatel
                   |                            |dot com dot tr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
  2006-04-25 11:36 ` [Bug target/27303] " rguenth at gcc dot gnu dot org
  2006-04-25 11:50 ` mehmet dot ekici at alcatel dot com dot tr
@ 2006-04-25 12:07 ` rguenth at gcc dot gnu dot org
  2006-04-25 17:28 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-25 12:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-04-25 12:07 -------
Look at the assembly output of gcc (-S) and see if there is an appropriate
alignment directive before the entry for AMLogging in the bss section.  If
there
is, the assembler/linker are at fault.  Otherwise please attach a testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (2 preceding siblings ...)
  2006-04-25 12:07 ` rguenth at gcc dot gnu dot org
@ 2006-04-25 17:28 ` pinskia at gcc dot gnu dot org
  2006-04-26  7:05 ` mehmet dot ekici at alcatel dot com dot tr
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-25 17:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-04-25 17:28 -------
We need a testcase to go any further.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (3 preceding siblings ...)
  2006-04-25 17:28 ` pinskia at gcc dot gnu dot org
@ 2006-04-26  7:05 ` mehmet dot ekici at alcatel dot com dot tr
  2006-04-26  8:15 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mehmet dot ekici at alcatel dot com dot tr @ 2006-04-26  7:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mehmet dot ekici at alcatel dot com dot tr  2006-04-26 07:04 -------
(In reply to comment #4)
> We need a testcase to go any further.

What do you mean with a test case ?
I looked at http://gcc.gnu.org/bugs.html and dit nt see
any description of testcase.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (4 preceding siblings ...)
  2006-04-26  7:05 ` mehmet dot ekici at alcatel dot com dot tr
@ 2006-04-26  8:15 ` rguenth at gcc dot gnu dot org
  2006-04-26  8:20 ` mehmet dot ekici at alcatel dot com dot tr
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-26  8:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2006-04-26 08:15 -------
A testcase is a source that we can compile and run that reproduces the failure.
 Preferrably small.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (5 preceding siblings ...)
  2006-04-26  8:15 ` rguenth at gcc dot gnu dot org
@ 2006-04-26  8:20 ` mehmet dot ekici at alcatel dot com dot tr
  2006-04-26 16:50 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mehmet dot ekici at alcatel dot com dot tr @ 2006-04-26  8:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mehmet dot ekici at alcatel dot com dot tr  2006-04-26 08:20 -------
(In reply to comment #4)
> We need a testcase to go any further.

Source code is too big to send. I can send map, nm, elf oupts, etc...
to you. Would it make any sense ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (6 preceding siblings ...)
  2006-04-26  8:20 ` mehmet dot ekici at alcatel dot com dot tr
@ 2006-04-26 16:50 ` pinskia at gcc dot gnu dot org
  2006-07-24  3:22 ` echristo at apple dot com
  2006-07-24  4:46 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-26 16:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-04-26 16:50 -------
(In reply to comment #7)
> (In reply to comment #4)
> > We need a testcase to go any further.
> Source code is too big to send. I can send map, nm, elf oupts, etc...
> to you. Would it make any sense ?

No, that does not make sense for a "compiler" bug.  We need the source.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (7 preceding siblings ...)
  2006-04-26 16:50 ` pinskia at gcc dot gnu dot org
@ 2006-07-24  3:22 ` echristo at apple dot com
  2006-07-24  4:46 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: echristo at apple dot com @ 2006-07-24  3:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from echristo at apple dot com  2006-07-24 03:22 -------
No testcase after 3 mos. No need to keep this open.


-- 

echristo at apple dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |echristo at apple dot com
             Status|WAITING                     |UNCONFIRMED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/27303] crash at unalign access
  2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
                   ` (8 preceding siblings ...)
  2006-07-24  3:22 ` echristo at apple dot com
@ 2006-07-24  4:46 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-24  4:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2006-07-24 04:46 -------
Invalid as mentioned by Eric because we don't have a testcase.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27303


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-07-24  4:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 11:12 [Bug c/27303] New: crash at unalign access mehmet dot ekici at alcatel dot com dot tr
2006-04-25 11:36 ` [Bug target/27303] " rguenth at gcc dot gnu dot org
2006-04-25 11:50 ` mehmet dot ekici at alcatel dot com dot tr
2006-04-25 12:07 ` rguenth at gcc dot gnu dot org
2006-04-25 17:28 ` pinskia at gcc dot gnu dot org
2006-04-26  7:05 ` mehmet dot ekici at alcatel dot com dot tr
2006-04-26  8:15 ` rguenth at gcc dot gnu dot org
2006-04-26  8:20 ` mehmet dot ekici at alcatel dot com dot tr
2006-04-26 16:50 ` pinskia at gcc dot gnu dot org
2006-07-24  3:22 ` echristo at apple dot com
2006-07-24  4:46 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).