Forum Discussion
FICO
3 years agoCommunity Manager
__lll_lock_wait allowing only one thread to work
I am calling the XPRESS optimizer from a multithreaded Pascal application and having performance issues with the solver. While the program is multithreaded, all but one of the threads are sleeping a...
FICO
3 years agoCommunity Manager
Sure, here's the output:
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x00007ffff7dd0fa0 0x00007ffff7df2d04 Yes (*) /lib64/ld-linux-x86-64.so.2
0x00007ffff7bb6820 0x00007ffff7bc4c15 Yes (*) /lib64/libpthread.so.0
0x00007ffff4500600 0x00007ffff717a6da Yes (*) /opt/xpressmp/lib/libxprs.so.41
0x00007ffff40140c0 0x00007ffff4014eb9 Yes (*) /lib64/libdl.so.2
0x00007ffff3c6fb90 0x00007ffff3dbc95d Yes (*) /lib64/libc.so.6
0x00007ffff38d8520 0x00007ffff39777ba Yes (*) /lib64/libm.so.6
0x00007ffff36c6430 0x00007ffff36c9770 Yes (*) /lib64/librt.so.1
0x00007ffff33f2080 0x00007ffff345a940 Yes (*) /opt/xpressmp/lib/libxprl.so.x9.0
0x00007ffff31d5e00 0x00007ffff31e6a55 Yes (*) /lib64/libgcc_s.so.1
(*): Shared library is missing debugging information.(gdb) thread 3
[Switching to thread 3 (Thread 0x7ffff0277700 (LWP 2096063))]
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) where
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007ffff7bbab44 in pthread_mutex_lock () from /lib64/libpthread.so.0
#2 0x00007ffff62981c1 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#3 0x00007ffff53528bd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#4 0x00007ffff6b62cb8 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#5 0x00007ffff6b6246a in ?? () from /opt/xpressmp/lib/libxprs.so.41
#6 0x00007ffff62947ed in ?? () from /opt/xpressmp/lib/libxprs.so.41
#7 0x00007ffff6293507 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#8 0x00007ffff629669e in ?? () from /opt/xpressmp/lib/libxprs.so.41
#9 0x00007ffff555f21e in ?? () from /opt/xpressmp/lib/libxprs.so.41
#10 0x00007ffff555f4cd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#11 0x00007ffff555fdd1 in XPRSmaxim_internal () from /opt/xpressmp/lib/libxprs.so.41
#12 0x00007ffff555f7bd in XPRSmipoptimize_internal () from /opt/xpressmp/lib/libxprs.so.41
#13 0x00007ffff48a711d in XPRSmipoptimize () from /opt/xpressmp/lib/libxprs.so.41
#14 0x00000000004c1a4e in RESOLVER (this=0x7fffe0562bb8) at ../../rchlib/mat/umipsimplex_xprs.pas:976
#15 0x0000000000491484 in RESOLVERPASO (this=0x7fffe00099e8) at ../../fc/base/usalasdejuego.pas:5149
#16 0x000000000049edf5 in OPTIMIZACIONCRONIZADA_UNPASO_RANGODEESTRELLAS (this=0x7fffe00099e8, ESTRELLAINI=8624, ESTRELLAFIN=8819, NOTIFICAR=false, PRINTACTORES_OPTRES=false)
at ../../fc/base/usalasdejuego.pas:8792
#17 0x000000000049f32e in CALCULARRANGOESTRELLAS (this=0x7fffe00099e8, ESTRELLAINI=8624, ESTRELLAFIN=8819, NOTIFICAR=false, PRINTACTORESOPTRES=false) at ../../fc/base/usalasdejuego.pas:8954
#18 0x00000000007ea05e in EJECUTAR (this=0x18852a48, WORKER=0xf7da58) at ../../fc/base/umh_worker_opt.pas:68
#19 0x00000000007e9c0d in EXECUTE (this=0xf7da58) at ../../fc/base/umh_sincrodata.pas:553
#20 0x00000000004dd7f8 in CLASSES_$$_THREADFUNC$POINTER$$INT64 ()
#21 0x0000000000f7da58 in ?? ()
#22 0x0000000000864438 in __dso_handle ()
#23 0x0000000000f7da58 in ?? ()
#24 0x0000000000413e18 in fpc_popaddrstack ()
#25 0x00007ffff0276d08 in ?? ()
#26 0x0000000000000000 in ?? ()(gdb) thread 4
[Switching to thread 4 (Thread 0x7fffefe76700 (LWP 2096064))]
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) where
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007ffff7bbab44 in pthread_mutex_lock () from /lib64/libpthread.so.0
#2 0x00007ffff62981c1 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#3 0x00007ffff53528bd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#4 0x00007ffff6b62cb8 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#5 0x00007ffff6b6246a in ?? () from /opt/xpressmp/lib/libxprs.so.41
#6 0x00007ffff62947ed in ?? () from /opt/xpressmp/lib/libxprs.so.41
#7 0x00007ffff6293507 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#8 0x00007ffff629669e in ?? () from /opt/xpressmp/lib/libxprs.so.41
#9 0x00007ffff555f21e in ?? () from /opt/xpressmp/lib/libxprs.so.41
#10 0x00007ffff555f4cd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#11 0x00007ffff555fdd1 in XPRSmaxim_internal () from /opt/xpressmp/lib/libxprs.so.41
#12 0x00007ffff555f7bd in XPRSmipoptimize_internal () from /opt/xpressmp/lib/libxprs.so.41
#13 0x00007ffff48a711d in XPRSmipoptimize () from /opt/xpressmp/lib/libxprs.so.41
#14 0x00000000004c1a4e in RESOLVER (this=0x7fffe4562bb8) at ../../rchlib/mat/umipsimplex_xprs.pas:976
#15 0x0000000000491484 in RESOLVERPASO (this=0x7fffe40099e8) at ../../fc/base/usalasdejuego.pas:5149
#16 0x000000000049edf5 in OPTIMIZACIONCRONIZADA_UNPASO_RANGODEESTRELLAS (this=0x7fffe40099e8, ESTRELLAINI=13895, ESTRELLAFIN=14089, NOTIFICAR=false, PRINTACTORES_OPTRES=false)
at ../../fc/base/usalasdejuego.pas:8792
#17 0x000000000049f32e in CALCULARRANGOESTRELLAS (this=0x7fffe40099e8, ESTRELLAINI=13895, ESTRELLAFIN=14089, NOTIFICAR=false, PRINTACTORESOPTRES=false) at ../../fc/base/usalasdejuego.pas:8954
#18 0x00000000007ea05e in EJECUTAR (this=0x1857b008, WORKER=0xf7cd38) at ../../fc/base/umh_worker_opt.pas:68
#19 0x00000000007e9c0d in EXECUTE (this=0xf7cd38) at ../../fc/base/umh_sincrodata.pas:553
#20 0x00000000004dd7f8 in CLASSES_$$_THREADFUNC$POINTER$$INT64 ()
#21 0x0000000000f7cd38 in ?? ()
#22 0x0000000000864438 in __dso_handle ()
#23 0x0000000000f7cd38 in ?? ()
#24 0x0000000000413e18 in fpc_popaddrstack ()
#25 0x00007fffefe75d08 in ?? ()
#26 0x0000000000000000 in ?? ()(gdb) thread 5
[Switching to thread 5 (Thread 0x7fffefa75700 (LWP 2096065))]
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) where
#0 0x00007ffff7bc175d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007ffff7bbab44 in pthread_mutex_lock () from /lib64/libpthread.so.0
#2 0x00007ffff62981c1 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#3 0x00007ffff53528bd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#4 0x00007ffff6b608c8 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#5 0x00007ffff6b6007a in ?? () from /opt/xpressmp/lib/libxprs.so.41
#6 0x00007ffff6054729 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#7 0x00007ffff500cc0c in ?? () from /opt/xpressmp/lib/libxprs.so.41
#8 0x00007ffff50035c9 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#9 0x00007ffff555efb0 in ?? () from /opt/xpressmp/lib/libxprs.so.41
#10 0x00007ffff555f4cd in ?? () from /opt/xpressmp/lib/libxprs.so.41
#11 0x00007ffff555fdd1 in XPRSmaxim_internal () from /opt/xpressmp/lib/libxprs.so.41
#12 0x00007ffff555f7bd in XPRSmipoptimize_internal () from /opt/xpressmp/lib/libxprs.so.41
#13 0x00007ffff48a711d in XPRSmipoptimize () from /opt/xpressmp/lib/libxprs.so.41
#14 0x00000000004c1a4e in RESOLVER (this=0x7fffd8562bb8) at ../../rchlib/mat/umipsimplex_xprs.pas:976
#15 0x0000000000491484 in RESOLVERPASO (this=0x7fffd80099e8) at ../../fc/base/usalasdejuego.pas:5149
#16 0x000000000049edf5 in OPTIMIZACIONCRONIZADA_UNPASO_RANGODEESTRELLAS (this=0x7fffd80099e8, ESTRELLAINI=2352, ESTRELLAFIN=2547, NOTIFICAR=false, PRINTACTORES_OPTRES=false)
at ../../fc/base/usalasdejuego.pas:8792
#17 0x000000000049f32e in CALCULARRANGOESTRELLAS (this=0x7fffd80099e8, ESTRELLAINI=2352, ESTRELLAFIN=2547, NOTIFICAR=false, PRINTACTORESOPTRES=false) at ../../fc/base/usalasdejuego.pas:8954
#18 0x00000000007ea05e in EJECUTAR (this=0x152be6f8, WORKER=0xf7c568) at ../../fc/base/umh_worker_opt.pas:68
#19 0x00000000007e9c0d in EXECUTE (this=0xf7c568) at ../../fc/base/umh_sincrodata.pas:553
#20 0x00000000004dd7f8 in CLASSES_$$_THREADFUNC$POINTER$$INT64 ()
#21 0x0000000000f7c568 in ?? ()
#22 0x0000000000864438 in __dso_handle ()
#23 0x0000000000f7c568 in ?? ()
#24 0x0000000000413e18 in fpc_popaddrstack ()
#25 0x00007fffefa74d08 in ?? ()
#26 0x0000000000000000 in ?? ()Thank you very much!
Related Content
Related Content
Parameter Threads
Hi, I'm using Fico Xpress and I have a question about the parameter THREADS. According to the documentation, THREADS > 0 means the "number of threads to use". Let suppose THREADS = 4. In this ca...7 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2CommentsConst correctness and thread safety in the C-API
How do I know : Which functions can be considered const i.e leave the XPRSprob in an unaltered state ? Which functions are thread safe ? (I am in particular interested in knowing if XPRSbtran and...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Comments