www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - AA Insertion Bug?

Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I am running into something that is causing my program to segfault at the same 
point every time it is run. Changing the input parameters doesn't help. I am 
attaching the valgrind error output is case someone may find that useful.

The program has been compiled for 64-bit using both DMD and GDC with the same 
results. The backtrace as shown in gdb is at the bottom. Can anyone help?

Thanks,
Jonathan


(gdb) bt
#0  __lll_lock_wait () at
../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
#1  0x00007ffff710e864 in _L_lock_1024 () from /lib/libpthread.so.0
#2  0x00007ffff710e6c7 in __pthread_mutex_lock (mutex=0xd8b250) at 
pthread_mutex_lock.c:82
#3  0x0000000000af1714 in hasNoPointers (this=..., p=<value optimized out>)
     at ../../../libphobos/internal/gc/gcx.d:1101
#4  0x0000000000aefc9b in _adDupT (ti=..., a=...) at 
../../../libphobos/internal/gc/gc.d:1419
#5  0x00000000004444c5 in getNextRow (this=...) at ../ccb/MySQLConnection.d:208
#6  0x000000000044096e in getVector (db=..., query=..., rows=...) at 
../ccb/matrix/Util.d:287
#7  0x00000000004165b8 in getSales (this=..., county=...) at mr_sam.d:486
#8  0x0000000000415edf in __foreachbody280 (__applyArg0=...) at mr_sam.d:410
#9  0x00000000004516bd in opApply (this=..., dg=...) at 
../ccb/MessagingWorkerPool.d:109
#10 0x0000000000416126 in work () at mr_sam.d:425
#11 0x0000000000450726 in run (this=...) at ../ccb/MessagingWorkerPool.d:71
#12 0x0000000000ade08a in threadstart (p=0x7fffd75e5200) at 
../../../libphobos/std/thread.d:1090
#13 0x00007ffff710c971 in start_thread (arg=<value optimized out>) at 
pthread_create.c:304
#14 0x00007ffff6e6892d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
Apr 25 2011