public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting
@ 2007-01-25 21:49 olsajiri at gmail dot com
  2007-01-25 22:17 ` [Bug libc/3924] " olsajiri at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-01-25 21:49 UTC (permalink / raw)
  To: glibc-bugs

There's a bug in the sysdeps/i386/dl-trampoline.S _dl_runtime_profile function
making process segfaulting. Under some conditions the 'edi' and 'esi' registers
are restored to wrong values. IMHO this could be fixed like this:

Index: sysdeps/i386/dl-trampoline.S
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/i386/dl-trampoline.S,v
retrieving revision 1.2
diff -r1.2 dl-trampoline.S
116d115
<       andl $0xfffffff0, %edi  # Align stack

edi and esi registers are pushed on stack before it is alligned. In case it is
really aligned those register wont be restored properly. I tried the fix and it
is working for me. I dont know the reason for alligning the stack here, so
hopefully I'm not missing something... :)

I'm running the 2.4 version, but seems it is an issue in current sources as well.

regards
Jiri Olsa

-- 
           Summary: LD_AUDIT implementation causing process segfaulting
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: olsajiri at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
@ 2007-01-25 22:17 ` olsajiri at gmail dot com
  2007-02-17  7:18 ` drepper at redhat dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-01-25 22:17 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal
 GCC target triplet|                            |x86


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
  2007-01-25 22:17 ` [Bug libc/3924] " olsajiri at gmail dot com
@ 2007-02-17  7:18 ` drepper at redhat dot com
  2007-04-17 21:05 ` olsajiri at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2007-02-17  7:18 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-02-17 07:18 -------
Provide example code.  As I wrote on the list already, I don't see anything
wrong.  The alignment is needed and is correctly expressed for the unwinder.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
  2007-01-25 22:17 ` [Bug libc/3924] " olsajiri at gmail dot com
  2007-02-17  7:18 ` drepper at redhat dot com
@ 2007-04-17 21:05 ` olsajiri at gmail dot com
  2007-05-16 17:36 ` olsajiri at gmail dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-04-17 21:05 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From olsajiri at gmail dot com  2007-04-17 22:05 -------
Created an attachment (id=1726)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1726&action=view)
example code

create an shared library 'libaudit.so' from the source and run:

LD_AUDIT=<PATH>/libaudit.so /bin/ls

this segfaults for me most of the time

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (2 preceding siblings ...)
  2007-04-17 21:05 ` olsajiri at gmail dot com
@ 2007-05-16 17:36 ` olsajiri at gmail dot com
  2007-08-09 20:05 ` olsajiri at gmail dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-05-16 17:36 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (3 preceding siblings ...)
  2007-05-16 17:36 ` olsajiri at gmail dot com
@ 2007-08-09 20:05 ` olsajiri at gmail dot com
  2007-08-14 19:17 ` olsajiri at gmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-08-09 20:05 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (4 preceding siblings ...)
  2007-08-09 20:05 ` olsajiri at gmail dot com
@ 2007-08-14 19:17 ` olsajiri at gmail dot com
  2007-08-24  2:58 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-08-14 19:17 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (5 preceding siblings ...)
  2007-08-14 19:17 ` olsajiri at gmail dot com
@ 2007-08-24  2:58 ` drepper at redhat dot com
  2007-08-27 20:20 ` olsajiri at gmail dot com
  2007-10-07  5:32 ` drepper at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2007-08-24  2:58 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-08-24 02:58 -------
Fixed in cvs.  Your patch is not correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (6 preceding siblings ...)
  2007-08-24  2:58 ` drepper at redhat dot com
@ 2007-08-27 20:20 ` olsajiri at gmail dot com
  2007-10-07  5:32 ` drepper at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: olsajiri at gmail dot com @ 2007-08-27 20:20 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From olsajiri at gmail dot com  2007-08-27 20:20 -------
The example code is still not working with the fixed libc code.

Regarding the framesizep output agrument of la_i86_gnu_pltenter function:

If there's a framesizep set to any value but zero, the ls binary will segfault.
If there's a framesizep set to zero value, the ls binary will run without errors.

Does the example code work ok for you?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/3924] LD_AUDIT implementation causing process segfaulting
  2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
                   ` (7 preceding siblings ...)
  2007-08-27 20:20 ` olsajiri at gmail dot com
@ 2007-10-07  5:32 ` drepper at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2007-10-07  5:32 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-10-07 05:32 -------
There was another little bug in the code which I fixed.  But an equally bad bug
is that you test module is requesting too large stack frames.  Unless I reduced
the size to something more reasonable the copy operation will sometimes/often
segfault.  Current cvs has all the changes.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2007-10-07  5:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-25 21:49 [Bug libc/3924] New: LD_AUDIT implementation causing process segfaulting olsajiri at gmail dot com
2007-01-25 22:17 ` [Bug libc/3924] " olsajiri at gmail dot com
2007-02-17  7:18 ` drepper at redhat dot com
2007-04-17 21:05 ` olsajiri at gmail dot com
2007-05-16 17:36 ` olsajiri at gmail dot com
2007-08-09 20:05 ` olsajiri at gmail dot com
2007-08-14 19:17 ` olsajiri at gmail dot com
2007-08-24  2:58 ` drepper at redhat dot com
2007-08-27 20:20 ` olsajiri at gmail dot com
2007-10-07  5:32 ` drepper 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).