#918 aslink abortes with signal 6

closed-out-of-date
nobody
linker (61)
5
2013-05-25
2005-05-05
No

hello,

get sdcc-2.4.0.tar.gz or cvs version (2.5.0-pre1)
compile and install under fedora 3 or other newer glibc
linux distro

get
ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/sdcc/sample_apps/dhcp_sample.tar.gz
and the libraries init.tar.gz, task.tar.gz, sock.tar.gz
and dhcp.tar.gz from
ftp://ftp.dalsemi.com/pub/tini/ds80c400/c_libraries/sdcc/bin/

move the libs to your dhcp_sample directory and run the
script dhcp_sample.bat

see the error *** glibc detected *** malloc(): memory
corruption: 0x0805e490 *** (comes from aslink), see the
core file and backtrack it:
gdb /usr/local/bin/aslink core.3922

GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 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/tls/libthread_db.so.1".

Reading symbols from shared object read from target
memory...done.
Loaded system supplied DSO at 0xffffe000
Core was generated by `aslink -nf main'.
Program terminated with signal 6, Aborted.

warning: svr4_current_sos: Can't read pathname for load
map: Input/output error

Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ed97d5 in raise () from /lib/tls/libc.so.6
#2 0xb7edb149 in abort () from /lib/tls/libc.so.6
#3 0xb7f0d27a in __libc_message () from /lib/tls/libc.so.6
#4 0xb7f1449c in _int_malloc () from /lib/tls/libc.so.6
#5 0xb7f15c76 in calloc () from /lib/tls/libc.so.6
#6 0x0804bc95 in new (n=16) at lksym.c:483
#7 0x0804cd17 in addfile (path=0x805e480 "",
libfil=0x8059683 "rom_task.lib") at lklibr.c:287
#8 0x0804ced9 in addlib () at lklibr.c:161
#9 0x0804957d in parse () at lkmain.c:900
#10 0x08049d7c in main (argc=3, argv=0xbffffae4) at
lkmain.c:291

how can this bug fixed?

a friend of mine compiled a static aslink via diet
glibc from Felix von Leitner (see
http://www.fefe.de/dietlibc\), this version links
sucessfully.

Andreas

Discussion

  • Maarten Brock

    Maarten Brock - 2007-03-24

    Logged In: YES
    user_id=888171
    Originator: NO

    Andreas,

    As SDCC (2.6.5) is nowadays build and regression tested on Fedora Core 6 with glibc 2.5-10, can you please verify this bug still exists?

    Maarten

     
  • Maarten Brock

    Maarten Brock - 2007-03-24
    • milestone: --> unreproducable
    • status: open --> pending-out-of-date
     
  • SourceForge Robot

    • status: pending-out-of-date --> closed-out-of-date
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.