Bug 232918

Summary: /usr/sbin/redhat_lsb_trigger.i386 segfaults
Product: [Fedora] Fedora Reporter: Roy-Magne Mo <rmo>
Component: redhat-lsbAssignee: Lawrence Lim <llim>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bloch, jakub, kevin, tmokros, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-22 02:58:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Roy-Magne Mo 2007-03-19 14:38:48 UTC
Description of problem:
redhat_lsb_trigger.i386 during install of glibc-2.5.90-19

Version-Release number of selected component (if applicable):

How reproducible:
segfaults every time redhat_lsb_trigger.i386 is called

Steps to Reproduce:
Actual results:
[root@localhost ~]# redhat_lsb_trigger.i386 
Segmentation fault

Expected results:

Additional info:

Comment 1 Kevin Fenzi 2007-03-30 20:22:50 UTC
Can you provide some info on the machine? This is a i386 install/machine?

Can you try: 

- Install the redhat-lsb-debuginfo package: 
rpm -ivh
- Install 'gdb' if you don't have it already. 
- Run 'gdb redhat_lsb_trigger.i386' 
- When it fails do a 'bt' to list a backtrace. 

Attach that trace here. 

Comment 2 Roy-Magne Mo 2007-04-01 20:24:52 UTC
# rpm -qa redhat-lsb\*

i386 machine (PIII in this case)

# gdb redhat_lsb_trigger.i386
GNU gdb Red Hat Linux (6.6-8.fc7rh)
Copyright (C) 2006 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 "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/sbin/redhat_lsb_trigger.i386
warning: shared library handler failed to enable breakpoint

Program received signal SIGSEGV, Segmentation fault.
main () at redhat_lsb_trigger.c:427
427     {
(gdb) bt
#0  main () at redhat_lsb_trigger.c:427
#1  0x08048235 in __libc_start_main (main=0x804823c <main>, argc=1,
    argv=0xbfe51954, init=0x8048214 <__libc_csu_init>,
    fini=0x8048219 <__libc_csu_fini>, rtld_fini=0, stack_end=0xbfe5194c)
    at redhat_lsb_trigger.c:496
#2  0x08048131 in _start ()

Comment 3 Lawrence Lim 2007-04-04 00:06:30 UTC
Thanks for the bug report.

Comment 4 Adam Huffman 2007-04-24 07:53:43 UTC
I've also been seeing this on an x86_64 machine.

Comment 6 Jakub Jelinek 2007-04-25 10:54:05 UTC
Make sure redhat_lsb_trigger.c is not compiled with -fstack-protector (which is
included in $RPM_OPT_FLAGS), the code in __libc_start_main doesn't set this up.

-gcc $RPM_OPT_FLAGS -Os -static -o redhat_lsb_trigger{.%{_target_cpu},.c}
-DLSBSOVER='"%{lsbsover}"' \
+gcc $RPM_OPT_FLAGS -fno-stack-protector -Os -static -o
redhat_lsb_trigger{.%{_target_cpu},.c} -DLSBSOVER='"%{lsbsover}"' \
  -DLDSO='"%{ldso}"' -DLSBLDSO='"/%{_lib}/%{lsbldso}"' -D_GNU_SOURCE

should do the trick.

Comment 7 A S Alam 2007-05-02 05:38:18 UTC
Test Result with latest build:
root@alamPunjabi i386]# redhat_lsb_trigger.i386
[root@alamPunjabi i386]#                    

Not more "Segmentation fault"

Tested on i386 machine

Comment 8 Dennis Jacobfeuerborn 2007-05-09 12:33:03 UTC
> Test Result with latest build:
> redhat-lsb-3.1-14.fc7

Where is this package available? It doesn't seem to be in rawhide.

Comment 9 Roy-Magne Mo 2007-05-22 02:58:30 UTC
Can't reproduce the segfault with redhat-lsb-3.1-14.fc7