delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2011/07/29/12:02:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=vYxyZr/zzFcuYrcj0FHieyzmlu6nfyKX5xPSeE/iM60=;
b=J2jm8HsoEq5+HD7Hdj2aQunWsBeEGUtWdkH+a+JBCaWsfwXPoOpXj8EuXra6n9dDeR
cDeuq6ai2yADITEk4Z2p5sgh2Zk3go/PJdjkC9ZiZLBkSjD8VwKn1XGcd/8qt6atYNhz
AHwBHcG3I2BgYGhp6ybHox6vO5G84vcY4GjL4=
MIME-Version: 1.0
Date: Fri, 29 Jul 2011 18:32:55 +0300
Message-ID: <CAA2C=vCB+cqF8LCEtPhVtURkwagNeRhszvuKJPdsZ7axS4GSVQ@mail.gmail.com>
Subject: dxegen segfaults when built as a 64 bit host tool
From: Ozkan Sezer <sezeroz AT gmail DOT com>
To: djgpp-workers AT delorie DOT com
Reply-To: djgpp-workers AT delorie DOT com

Hi all:

dxegen segfaults when built as a 64 bit host tool in
dxe3gen.c:553 (write_dxe) most probably due to "long"
data type usage at many places (such as coff.h)


libemu]$ export PATH="/usr/local/cross-djgpp/bin:$PATH"
libemu]$ export DXE_LD_LIBRARY_PATH=./../../lib
libemu]$ gdb ./../../hostbin/dxegen.exe
GNU gdb Fedora (6.8-32.fc10)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
(gdb) set args ./../../bin/emu387.dxe __emu_entry src/emu387.o
id_emu.o src/emudummy.o -L../../lib
/usr/local/cross-djgpp-gcc33/bin/../lib/gcc-lib/i586-pc-msdosdjgpp/3.3.6/libgcc.a
-lc /usr/local/cross-djgpp-gcc33/bin/../lib/gcc-lib/i586-pc-msdosdjgpp/3.3.6/libgcc.a
(gdb) r
Starting program:
/home/ozzie/Download/djgpp-20110710/hostbin/dxegen.exe
./../../bin/emu387.dxe __emu_entry src/emu387.o id_emu.o
src/emudummy.o -L../../lib
/usr/local/cross-djgpp-gcc33/bin/../lib/gcc-lib/i586-pc-msdosdjgpp/3.3.6/libgcc.a
-lc /usr/local/cross-djgpp-gcc33/bin/../lib/gcc-lib/i586-pc-msdosdjgpp/3.3.6/libgcc.a
Detaching after fork from child process 15611.

Program received signal SIGSEGV, Segmentation fault.
0x0000003397e839db in mempcpy () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.9-3.x86_64
(gdb) bt
#0  0x0000003397e839db in mempcpy () from /lib64/libc.so.6
#1  0x0000003397e735e6 in _IO_file_xsgetn_internal () from /lib64/libc.so.6
#2  0x0000003397e68f5f in fread () from /lib64/libc.so.6
#3  0x0000000000401098 in write_dxe (inf=0x607160, outf=0x6073a0,
fh=0x7fffffffe0a0) at dxe3gen.c:553
#4  0x0000000000402817 in main (argc=10, argv=0x7fffffffe1f8) at dxe3gen.c:1173
(gdb)



I don't have a patch at the moment.  If someone beats me
to it, it'd be nice.

--
O.S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019