dmd memory usage/static lib/algorithm bug?

Marek Janukowicz marek at janukowicz.net
Wed Aug 28 16:46:03 PDT 2013


H. S. Teoh wrote:

> On Thu, Aug 29, 2013 at 12:45:05AM +0200, Marek Janukowicz wrote:
>> H. S. Teoh wrote:
> [...]
>> > Oh, and BTW, are you on Linux 32-bit or 64-bit? Don't know if that
>> > makes a difference, but just in case.
>> 
>> 64-bit
> [...]
> 
> Maybe try compiling with -m32 and see if it makes a difference? If so,
> it may be a 64-bit related dmd bug. I'm also having trouble building a
> working compiler toolchain with a purely 64-bit environment.

Yeah, it makes a difference :)

./main(_D4core7runtime18runModuleUnitTestsUZb19unittestSegvHandlerUiPS4core3sys5posix6signal9siginfo_tPvZv+0x2c)
[0x80a8c64]
linux-gate.so.1(__kernel_rt_sigreturn+0x0)[0xffffe410]
./main(_D6sorter14__unittestL9_3FZv101__T13quickSortImplS65_D6sorter14__unittestL9_3FZv2dgPFNaNbNfS6sorter3ValS6sorter3ValZbTAS6sorter3ValZ13quickSortImplMFAS6sorter3ValZv+0x1a7)
[0x80a1b53]
./main(_D6sorter14__unittestL9_3FZv122__T4sortS65_D6sorter14__unittestL9_3FZv2dgPFNaNbNfS6sorter3ValS6sorter3ValZbVE3std9algorithm12SwapStrategy0TAS6sorter3ValZ4sortMFAS6sorter3ValZS6sorter14__unittestL9_3FZv99__T11SortedRangeTAS6sorter3ValS65_D6sorter14__unittestL9_3FZv2dgPFNaNbNfS6sorter3ValS6sorter3ValZbZ11SortedRange+0x17)
[0x80a20cb]
./main(_D6sorter14__unittestL9_3FZv+0x6d)[0x80a2079]
./main(_D6sorter9__modtestFZv+0x8)[0x80a21ac]
./main(_D4core7runtime18runModuleUnitTestsUZb16__foreachbody352MFKPS6object10ModuleInfoZi+0x24)
[0x80a8ccc]
./main(_D2rt5minfo17moduleinfos_applyFMDFKPS6object10ModuleInfoZiZi16__foreachbody541MFKS2rt14sections_linux3DSOZi+0x37)
[0x80a5f47]
./main(_D2rt14sections_linux3DSO7opApplyFMDFKS2rt14sections_linux3DSOZiZi+0x2c)
[0x80a619c]
./main(_D2rt5minfo17moduleinfos_applyFMDFKPS6object10ModuleInfoZiZi+0x14)
[0x80a5ef4]
./main(runModuleUnitTests+0x87)[0x80a8bd7]
./main(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi6runAllMFZv+0x25)[0x80a4a55]
./main(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv+0x18)
[0x80a46c0]
./main(_d_run_main+0x121)[0x80a4691]
./main(main+0x14)[0x80a4564]
/lib32/libc.so.6(__libc_start_main+0xf3)[0xf74d4943]
Segmentation fault (core dumped)

This stacktrace did not show in 64-bit version, but the problem persists.

-- 
Marek Janukowicz


More information about the Digitalmars-d-learn mailing list