public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [Bug localedata/15870] New: backtrace don't give same result when called between redhat-32bit and redhat-64bit
@ 2013-08-21  3:05 stigano at 163 dot com
  2013-08-21  3:05 ` [Bug localedata/15870] " stigano at 163 dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: stigano at 163 dot com @ 2013-08-21  3:05 UTC (permalink / raw)
  To: libc-locales

http://sourceware.org/bugzilla/show_bug.cgi?id=15870

            Bug ID: 15870
           Summary: backtrace don't give same result when called between
                    redhat-32bit and redhat-64bit
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: stigano at 163 dot com
                CC: libc-locales at sourceware dot org

code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <execinfo.h>
#include <fcntl.h>
#include <unistd.h>

void coredump_handle(int sig)
{
   void         *arraypoint[100];
   size_t       size;

   size = backtrace(arraypoint,100);
   return;
}

void core()
{
   int i,j;
   i=0,j=1;
   printf("j/i=[%d]\n",j/i);
}

void test()
{
   core();
}


void core_test()
{
   test();


   int a,b;
   a=1,b=2;
   a= b;
}
int main()
{
   int i,j;

   signal(SIGFPE,coredump_handle);
   core_test();
   i=0,j=1;
   i++;
   return 0;
}


this code run on redhat 32it cannot locate the line where cause coredump,only
locate the line the function called,but on redhat 64-bit do locate the line
cause coredump.  

in functon coredump_handle,if the result of size is n on the 32-bit os,the
result of size always to be n-1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug localedata/15870] backtrace don't give same result when called between redhat-32bit and redhat-64bit
  2013-08-21  3:05 [Bug localedata/15870] New: backtrace don't give same result when called between redhat-32bit and redhat-64bit stigano at 163 dot com
@ 2013-08-21  3:05 ` stigano at 163 dot com
  2013-10-14 10:12 ` neleai at seznam dot cz
  2014-06-13 13:17 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: stigano at 163 dot com @ 2013-08-21  3:05 UTC (permalink / raw)
  To: libc-locales

http://sourceware.org/bugzilla/show_bug.cgi?id=15870

kang_xiaoping <stigano at 163 dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.19

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug localedata/15870] backtrace don't give same result when called between redhat-32bit and redhat-64bit
  2013-08-21  3:05 [Bug localedata/15870] New: backtrace don't give same result when called between redhat-32bit and redhat-64bit stigano at 163 dot com
  2013-08-21  3:05 ` [Bug localedata/15870] " stigano at 163 dot com
@ 2013-10-14 10:12 ` neleai at seznam dot cz
  2014-06-13 13:17 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: neleai at seznam dot cz @ 2013-10-14 10:12 UTC (permalink / raw)
  To: libc-locales

https://sourceware.org/bugzilla/show_bug.cgi?id=15870

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |neleai at seznam dot cz
         Resolution|---                         |INVALID

--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
A optimizing compiler can inline/reorder code so line where error appears may
move. There is nothing that we can do with this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug localedata/15870] backtrace don't give same result when called between redhat-32bit and redhat-64bit
  2013-08-21  3:05 [Bug localedata/15870] New: backtrace don't give same result when called between redhat-32bit and redhat-64bit stigano at 163 dot com
  2013-08-21  3:05 ` [Bug localedata/15870] " stigano at 163 dot com
  2013-10-14 10:12 ` neleai at seznam dot cz
@ 2014-06-13 13:17 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 13:17 UTC (permalink / raw)
  To: libc-locales

https://sourceware.org/bugzilla/show_bug.cgi?id=15870

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2014-06-13 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-21  3:05 [Bug localedata/15870] New: backtrace don't give same result when called between redhat-32bit and redhat-64bit stigano at 163 dot com
2013-08-21  3:05 ` [Bug localedata/15870] " stigano at 163 dot com
2013-10-14 10:12 ` neleai at seznam dot cz
2014-06-13 13:17 ` fweimer at redhat dot com

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).