My build crash ld and here is the strange story. I'm always building
stuff using script away from my repository and that's always been fine
with darktable until recently.

I just found out that when building into the "build" directory under
darktable repo all is fine:

$ cd darktable
$ rm -fr build
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/darktable 
/home/obry/dev/repositories/git/darktable/
$ make -j8

But when building from say bb instead of build ld crashes:

$ cd darktable
$ rm -fr build
$ mkdir bb
$ cd bb
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/darktable 
/home/obry/dev/repositories/git/darktable/
$ make -j8

All this run from the same shell, so that's not an environment issue.

Of course ld should not crash but I'm wondering what could be the issue
with "build" vs "bb"?????

Anyone can reproduce this?

$ ld --version
GNU ld (GNU Binutils for Debian) 2.27.51.20161102

$ gcc --version
gcc (Debian 6.2.0-11) 6.2.0 20161103

The crash:

*** Error in `/usr/bin/ld': corrupted double-linked list: 0x000055f72d6a7a30 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f5631ce8bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76fa6)[0x7f5631ceefa6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7732c)[0x7f5631cef32c]
/lib/x86_64-linux-gnu/libc.so.6(+0x78cea)[0x7f5631cf0cea]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f5631cf2d94]
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so(objalloc_create+0x1d)[0x7f5632524fbd]
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so(_bfd_new_bfd+0x37)[0x7f5632486cc7]
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so(bfd_fopen+0x47)[0x7f5632486ea7]
/usr/bin/ld(+0x2e5cc)[0x55f72c04e5cc]
/usr/bin/ld(+0x2eb3b)[0x55f72c04eb3b]
/usr/bin/ld(+0x2f854)[0x55f72c04f854]
/usr/bin/ld(+0x1fc09)[0x55f72c03fc09]
/usr/bin/ld(+0xe651)[0x55f72c02e651]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f5631c982b1]
/usr/bin/ld(+0xed0a)[0x55f72c02ed0a]
======= Memory map: ========
55f72c020000-55f72c14b000 r-xp 00000000 08:01 401928                     
/usr/bin/x86_64-linux-gnu-ld.bfd
55f72c34b000-55f72c351000 r--p 0012b000 08:01 401928                     
/usr/bin/x86_64-linux-gnu-ld.bfd
55f72c351000-55f72c354000 rw-p 00131000 08:01 401928                     
/usr/bin/x86_64-linux-gnu-ld.bfd
55f72c354000-55f72c356000 rw-p 00000000 00:00 0 
55f72c3af000-55f72dc4e000 rw-p 00000000 00:00 0                          [heap]
7f562c000000-7f562c021000 rw-p 00000000 00:00 0 
7f562c021000-7f5630000000 ---p 00000000 00:00 0 
7f563184f000-7f5631865000 r-xp 00000000 08:01 2097216                    
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f5631865000-7f5631a64000 ---p 00016000 08:01 2097216                    
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f5631a64000-7f5631a65000 r--p 00015000 08:01 2097216                    
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f5631a65000-7f5631a66000 rw-p 00016000 08:01 2097216                    
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f5631a66000-7f5631a77000 r-xp 00000000 08:01 657002                     
/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so.0.0.0
7f5631a77000-7f5631c76000 ---p 00011000 08:01 657002                     
/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so.0.0.0
7f5631c76000-7f5631c77000 r--p 00010000 08:01 657002                     
/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so.0.0.0
7f5631c77000-7f5631c78000 rw-p 00011000 08:01 657002                     
/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so.0.0.0
7f5631c78000-7f5631e0d000 r-xp 00000000 08:01 2098180                    
/lib/x86_64-linux-gnu/libc-2.24.so
7f5631e0d000-7f563200c000 ---p 00195000 08:01 2098180                    
/lib/x86_64-linux-gnu/libc-2.24.so
7f563200c000-7f5632010000 r--p 00194000 08:01 2098180                    
/lib/x86_64-linux-gnu/libc-2.24.so
7f5632010000-7f5632012000 rw-p 00198000 08:01 2098180                    
/lib/x86_64-linux-gnu/libc-2.24.so
7f5632012000-7f5632016000 rw-p 00000000 00:00 0 
7f5632016000-7f5632018000 r-xp 00000000 08:01 2098434                    
/lib/x86_64-linux-gnu/libdl-2.24.so
7f5632018000-7f5632218000 ---p 00002000 08:01 2098434                    
/lib/x86_64-linux-gnu/libdl-2.24.so
7f5632218000-7f5632219000 r--p 00002000 08:01 2098434                    
/lib/x86_64-linux-gnu/libdl-2.24.so
7f5632219000-7f563221a000 rw-p 00003000 08:01 2098434                    
/lib/x86_64-linux-gnu/libdl-2.24.so
7f563221a000-7f5632233000 r-xp 00000000 08:01 2097407                    
/lib/x86_64-linux-gnu/libz.so.1.2.8
7f5632233000-7f5632432000 ---p 00019000 08:01 2097407                    
/lib/x86_64-linux-gnu/libz.so.1.2.8
7f5632432000-7f5632433000 r--p 00018000 08:01 2097407                    
/lib/x86_64-linux-gnu/libz.so.1.2.8
7f5632433000-7f5632434000 rw-p 00019000 08:01 2097407                    
/lib/x86_64-linux-gnu/libz.so.1.2.8
7f5632434000-7f563255b000 r-xp 00000000 08:01 404383                     
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so
7f563255b000-7f563275a000 ---p 00127000 08:01 404383                     
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so
7f563275a000-7f563276f000 r--p 00126000 08:01 404383                     
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so
7f563276f000-7f5632776000 rw-p 0013b000 08:01 404383                     
/usr/lib/x86_64-linux-gnu/libbfd-2.27.51-system.20161102.so
7f5632776000-7f563277a000 rw-p 00000000 00:00 0 
7f563277a000-7f563279d000 r-xp 00000000 08:01 2097317                    
/lib/x86_64-linux-gnu/ld-2.24.so
7f56328aa000-7f5632918000 rw-p 00000000 00:00 0 
7f5632918000-7f5632966000 r--p 00000000 08:01 1839779                    
/usr/lib/locale/aa_DJ.utf8/LC_CTYPE
7f5632966000-7f5632968000 rw-p 00000000 00:00 0 
7f5632990000-7f5632991000 rw-p 00000000 00:00 0 
7f5632991000-7f5632998000 r--s 00000000 08:01 448962                     
/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f5632998000-7f5632999000 r--p 00000000 08:01 1842611                    
/usr/lib/locale/en_AG/LC_MESSAGES/SYS_LC_MESSAGES
7f5632999000-7f563299c000 rw-p 00000000 00:00 0 
7f563299c000-7f563299d000 r--p 00022000 08:01 2097317                    
/lib/x86_64-linux-gnu/ld-2.24.so
7f563299d000-7f563299e000 rw-p 00023000 08:01 2097317                    
/lib/x86_64-linux-gnu/ld-2.24.so
7f563299e000-7f563299f000 rw-p 00000000 00:00 0 
7ffda829a000-7ffda82bc000 rw-p 00000000 00:00 0                          [stack]
7ffda83bb000-7ffda83bd000 r--p 00000000 00:00 0                          [vvar]
7ffda83bd000-7ffda83bf000 r-xp 00000000 00:00 0                          [vdso]
collect2: fatal error: ld terminated with signal 6 [Aborted]

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to