के बाद जेनेरिक त्रुटि मैं एआरएम बोर्ड पर ओपनएम्बेड आधारित लिनक्स चला रहा हूं, जहां मेरा एप्लिकेशन चल रहा है। मैं कर्नेल 2.6.35, जीडीबी 6.8 और जीसीसी 4.3 चलाने के लिए प्रयोग किया जाता था। हाल ही में मैंने सिस्टम को कर्नेल 2.6.37, जीडीबी 7.4 (7.3 की भी कोशिश की) और जीसीसी 4.6 में अद्यतन किया है।gdb: नए धागे नहीं मिल पा रहे हैं: सिस्टम अपडेट
अब, मेरे आवेदन को अब डीडीजी नहीं किया जा सकता है (एआरएम बोर्ड पर), हर बार जब मैं इसे जीडीबी में चलाने की कोशिश करता हूं तो मुझे त्रुटि मिलती है "gdb: नए धागे नहीं मिल सकते हैं: जेनेरिक त्रुटि"। एप्लिकेशन pthreads का उपयोग करता है और pthreads के खिलाफ लिंक करता है (readelf libpthread.so.0 निर्भरता के रूप में सूचीबद्ध करता है)। मैंने सुझाए गए सुझाए गए समाधान अब तक जो कुछ भी कर रहे हैं, उसे जोड़ने के लिए अनुशंसा करते हैं। मुझे मिली दूसरी सिफारिश LD_PRELOAD =/lib/libpthread.so.0 का उपयोग करना था जो मेरे लिए कोई फर्क नहीं पड़ता।
किसी भी समस्या के बिना अनुप्रयोग के x86 बिल्डों को डिबग करना।
संपादित करें: पहले उत्तर में दिए गए सवालों के जवाब देने के लिए, मैं लक्ष्य (एआरएम) पर जीडीबी का उपयोग कर रहा हूं, यानी कोई क्रॉस-जीडीबी नहीं। मैंने libpthread.so.0 को भी नहीं हटाया है (/lib/libpthread-2.9.so: ईएलएफ 32-बिट एलएसबी साझा ऑब्जेक्ट, एआरएम, संस्करण 1 (एसवाईएसवी), गतिशील रूप से लिंक (साझा libs का उपयोग करता है), जीएनयू/लिनक्स 2.6 के लिए। 16, छीन नहीं)। glibc संस्करण 2.9 पर बने रहे, और अद्यतन पूरे linux छवि recompiling शामिल
EDIT2: निकाला जा रहा है/lib/libthread-db * (फलस्वरूप चेतावनी के साथ और स्पष्ट रूप से कुछ सुविधाओं को काम नहीं करेगा) डिबगिंग की अनुमति देता है
EDIT3: का उपयोग करना सेट डिबग libthread-db 1 मैं:
Starting program: /home/root/app
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1.
td_ta_new failed: application not linked with libthread
thread_db_load_search returning 0
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: /lib/libthread_db.so.1.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
warning: Unable to set global thread event mask: generic error
Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error
Found 0 new threads in iteration 0.
Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error
Found 0 new threads in iteration 1.
Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error
Found 0 new threads in iteration 2.
Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error
Found 0 new threads in iteration 3.
thread_db_load_search returning 1
Warning: find_new_threads_once: find_new_threads_callback: cannot get thread info: generic error
Found 0 new threads in iteration 0.
Cannot find new threads: generic error
(gdb) Write failed: Broken pipe
क्या आपके पास मिलान करने वाला libthread-db है? –
@Guy: मैंने पूरी छवि को दोबारा बनाया है और यह सिर्फ सभी मैच होना चाहिए। अन्यथा, मैं कैसे जांचूं कि यह मेल खाता है या नहीं? – dseifert