[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20451] uncontrolled thread creation / crash
From: |
Riccardo mottola |
Subject: |
[bug #20451] uncontrolled thread creation / crash |
Date: |
Wed, 11 Jul 2007 21:02:50 +0000 |
User-agent: |
Opera/9.21 (X11; Linux i386; U; en) |
URL:
<http://savannah.gnu.org/bugs/?20451>
Summary: uncontrolled thread creation / crash
Project: GNUstep
Submitted by: rmottola
Submitted on: Wednesday 07/11/2007 at 21:02
Category: None
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
On NetBSD GNUmail crashes with the following message:
_res is not supported for multi-threaded programs.
now I asked Ludovic explicitely and he said:
GNUMail (nor Pantomime) does NOT create any thread so that has to
come from GNUstep (the thread creation)...
but somehow more than une thread must be running... (GNUMail exposes this
problem since other programs probably don't query DNSs that way).
when inside GDB i can effectively switch among "t 1" and "t 2" ! I get two
identical stactraces though. The only difference I can see is that GDB class
one LWP 1 and the other Thread 1.
[Switching to thread 1 (LWP 1)]#0 0xbd1c20fb in kill ()
from /usr/lib/libc.so.12
(gdb) bt
#0 0xbd1c20fb in kill () from /usr/lib/libc.so.12
#1 0xbd24317f in abort () from /usr/lib/libc.so.12
#2 0xbd2a4720 in __res_state () from /usr/lib/libpthread.so.0
#3 0xbda1e679 in _i_CWDNSManager_Private__parseResolvFile (self=0x847acc8,
_cmd=0xbda85c10) at CWDNSManager.m:435
#4 0xbda1da1a in _i_CWDNSManager__init (self=0x847acc8, _cmd=0xbda85be0)
at CWDNSManager.m:157
#5 0xbda1e22c in _c_CWDNSManager__singleInstance (self=0xbda85ac0,
_cmd=0xbda98360) at CWDNSManager.m:360
#6 0xbda667ae in
_i_CWTCPConnection__initWithName_port_connectionTimeout_readTimeout_writeTimeout_background_
(self=0x847ac08, _cmd=0xbda98320,
theName=0x817be88, thePort=110, theConnectionTimeout=60,
theReadTimeout=60, theWriteTimeout=60, theBOOL=1 '\001')
at CWTCPConnection.m:189
#7 0xbda66374 in _i_CWTCPConnection__initWithName_port_background_ (
self=0x847ac08, _cmd=0xbda96cd8, theName=0x817be88, thePort=110,
theBOOL=1 '\001') at CWTCPConnection.m:87
#8 0xbda5e1ef in _i_CWService__connectInBackgroundAndNotify (self=0x8198a88,
_cmd=0xbdbe6f60) at CWService.m:431
#9 0xbdb70b01 in _i_TaskManager_Private__receiveUsingPOP3ForTask_ (
self=0x84f3b48, _cmd=0xbdbe6940, theTask=0x8198a08) at TaskManager.m:2329
#10 0xbdb6547d in _i_TaskManager__nextTask (self=0x84f3b48, _cmd=0xbdbe68e8)
at TaskManager.m:272
#11 0xbdb64fb2 in _i_TaskManager__addTask_ (self=0x84f3b48, _cmd=0xbdbe7038,
theTask=0x8198a08) at TaskManager.m:185
#12 0xbdb72c8c in _i_TaskManager_Private__checkMailForAccount_origin_owner_
(
self=0x84f3b48, _cmd=0xbdbe69f8, theAccountName=0x8189dc8, theOrigin=1,
theOwner=0x85e1808) at TaskManager.m:2637
#13 0xbdb66099 in _i_TaskManager__checkForNewMail_controller_
(self=0x84f3b48,
_cmd=0xbdbdb678, theSender=0x8608288, theMailWindowController=0x85e1808)
at TaskManager.m:472
#14 0xbdb46aea in _i_MailWindowController__getNewMessages_ (self=0x85e1808,
_cmd=0xbdbdc840, sender=0x8608288) at MailWindowController.m:2434
#15 0xbced567f in L10 () from /usr/pkg/lib/libavcall.so.0
#16 0xbd48d74f in GSFFCallInvokeWithTargetAndImp (_inv=0x82ac548,
anObject=0x85e1808,
imp=0xbdb46a7c <_i_MailWindowController__getNewMessages_>)
at GSFFCallInvocation.m:708
#17 0xbd48dac1 in _i_GSFFCallInvocation__invokeWithTarget_ (self=0x82ac548,
_cmd=0xbd950cc8, anObject=0x85e1808) at GSFFCallInvocation.m:778
#18 0xbd6df332 in _i_NSApplication__sendAction_to_from_ (self=0x8176008,
_cmd=0xbd98a140, aSelector=0xbdbdc840, aTarget=0x85e1808, sender=0x8608288)
at NSApplication.m:1986
#19 0xbd815673 in _i_GSToolbarButton__sendAction_to_ (self=0x8606c08,
_cmd=0xbd9588e0, action=0x0, target=0x85e1808) at NSToolbarItem.m:368
#20 0xbd71274b in _i_NSCell__trackMouse_inRect_ofView_untilMouseUp_ (
self=0x8606d08, _cmd=0xbd95f350, theEvent=0x8198d88, cellFrame=
{origin = {x = 0, y = 0}, size = {width = 61, height = 61}},
controlView=0x8606c08, flag=0 '\0') at NSCell.m:1699
#21 0xbd736b47 in _i_NSControl__mouseDown_ (self=0x8606c08, _cmd=0xbd98a110,
theEvent=0x8255508) at NSControl.m:849
#22 0xbd815431 in _i_GSToolbarButton__mouseDown_ (self=0x8606c08,
_cmd=0xbd98e388, event=0x8255508) at NSToolbarItem.m:327
#23 0xbd835351 in _i_NSWindow__sendEvent_ (self=0x85cea08, _cmd=0xbd950c68,
theEvent=0x8255508) at NSWindow.m:3267
#24 0xbd6dedb9 in _i_NSApplication__sendEvent_ (self=0x8176008,
_cmd=0xbd950ba0, theEvent=0x8255508) at NSApplication.m:1867
#25 0xbd6dda04 in _i_NSApplication__run (self=0x8176008, _cmd=0xbd94b6c8)
at NSApplication.m:1369
#26 0xbd6c2ef7 in NSApplicationMain (argc=1, argv=0xbfbfd99c) at
Functions.m:72
#27 0x08048bb6 in gnustep_base_user_main (argc=1, argv=0xbfbfd99c,
env=0xbfbfd9a4) at GNUMail_main.m:42
#28 0xbd41209b in main (argc=1, argv=0xbfbfd99c, env=0xbfbfd9a4)
at NSProcessInfo.m:897
#29 0x08048876 in ___start ()
and
[Switching to thread 2 (Thread 1 ())]#0 0xbd1c20fb in kill ()
from /usr/lib/libc.so.12
(gdb) bt
#0 0xbd1c20fb in kill () from /usr/lib/libc.so.12
#1 0xbd24317f in abort () from /usr/lib/libc.so.12
#2 0xbd2a4720 in __res_state () from /usr/lib/libpthread.so.0
#3 0xbda1e679 in _i_CWDNSManager_Private__parseResolvFile (self=0x847acc8,
_cmd=0xbda85c10) at CWDNSManager.m:435
#4 0xbda1da1a in _i_CWDNSManager__init (self=0x847acc8, _cmd=0xbda85be0)
at CWDNSManager.m:157
#5 0xbda1e22c in _c_CWDNSManager__singleInstance (self=0xbda85ac0,
_cmd=0xbda98360) at CWDNSManager.m:360
#6 0xbda667ae in
_i_CWTCPConnection__initWithName_port_connectionTimeout_readTimeout_writeTimeout_background_
(self=0x847ac08, _cmd=0xbda98320,
theName=0x817be88, thePort=110, theConnectionTimeout=60,
theReadTimeout=60, theWriteTimeout=60, theBOOL=1 '\001')
at CWTCPConnection.m:189
#7 0xbda66374 in _i_CWTCPConnection__initWithName_port_background_ (
self=0x847ac08, _cmd=0xbda96cd8, theName=0x817be88, thePort=110,
theBOOL=1 '\001') at CWTCPConnection.m:87
#8 0xbda5e1ef in _i_CWService__connectInBackgroundAndNotify (self=0x8198a88,
_cmd=0xbdbe6f60) at CWService.m:431
#9 0xbdb70b01 in _i_TaskManager_Private__receiveUsingPOP3ForTask_ (
self=0x84f3b48, _cmd=0xbdbe6940, theTask=0x8198a08) at TaskManager.m:2329
#10 0xbdb6547d in _i_TaskManager__nextTask (self=0x84f3b48, _cmd=0xbdbe68e8)
at TaskManager.m:272
#11 0xbdb64fb2 in _i_TaskManager__addTask_ (self=0x84f3b48, _cmd=0xbdbe7038,
theTask=0x8198a08) at TaskManager.m:185
#12 0xbdb72c8c in _i_TaskManager_Private__checkMailForAccount_origin_owner_
(
self=0x84f3b48, _cmd=0xbdbe69f8, theAccountName=0x8189dc8, theOrigin=1,
theOwner=0x85e1808) at TaskManager.m:2637
#13 0xbdb66099 in _i_TaskManager__checkForNewMail_controller_
(self=0x84f3b48,
_cmd=0xbdbdb678, theSender=0x8608288, theMailWindowController=0x85e1808)
at TaskManager.m:472
#14 0xbdb46aea in _i_MailWindowController__getNewMessages_ (self=0x85e1808,
_cmd=0xbdbdc840, sender=0x8608288) at MailWindowController.m:2434
#15 0xbced567f in L10 () from /usr/pkg/lib/libavcall.so.0
#16 0xbd48d74f in GSFFCallInvokeWithTargetAndImp (_inv=0x82ac548,
anObject=0x85e1808,
imp=0xbdb46a7c <_i_MailWindowController__getNewMessages_>)
at GSFFCallInvocation.m:708
#17 0xbd48dac1 in _i_GSFFCallInvocation__invokeWithTarget_ (self=0x82ac548,
_cmd=0xbd950cc8, anObject=0x85e1808) at GSFFCallInvocation.m:778
#18 0xbd6df332 in _i_NSApplication__sendAction_to_from_ (self=0x8176008,
_cmd=0xbd98a140, aSelector=0xbdbdc840, aTarget=0x85e1808, sender=0x8608288)
at NSApplication.m:1986
#19 0xbd815673 in _i_GSToolbarButton__sendAction_to_ (self=0x8606c08,
_cmd=0xbd9588e0, action=0x0, target=0x85e1808) at NSToolbarItem.m:368
#20 0xbd71274b in _i_NSCell__trackMouse_inRect_ofView_untilMouseUp_ (
self=0x8606d08, _cmd=0xbd95f350, theEvent=0x8198d88, cellFrame=
{origin = {x = 0, y = 0}, size = {width = 61, height = 61}},
controlView=0x8606c08, flag=0 '\0') at NSCell.m:1699
#21 0xbd736b47 in _i_NSControl__mouseDown_ (self=0x8606c08, _cmd=0xbd98a110,
theEvent=0x8255508) at NSControl.m:849
#22 0xbd815431 in _i_GSToolbarButton__mouseDown_ (self=0x8606c08,
_cmd=0xbd98e388, event=0x8255508) at NSToolbarItem.m:327
#23 0xbd835351 in _i_NSWindow__sendEvent_ (self=0x85cea08, _cmd=0xbd950c68,
theEvent=0x8255508) at NSWindow.m:3267
#24 0xbd6dedb9 in _i_NSApplication__sendEvent_ (self=0x8176008,
_cmd=0xbd950ba0, theEvent=0x8255508) at NSApplication.m:1867
#25 0xbd6dda04 in _i_NSApplication__run (self=0x8176008, _cmd=0xbd94b6c8)
at NSApplication.m:1369
#26 0xbd6c2ef7 in NSApplicationMain (argc=1, argv=0xbfbfd99c) at
Functions.m:72
#27 0x08048bb6 in gnustep_base_user_main (argc=1, argv=0xbfbfd99c,
env=0xbfbfd9a4) at GNUMail_main.m:42
#28 0xbd41209b in main (argc=1, argv=0xbfbfd99c, env=0xbfbfd9a4)
at NSProcessInfo.m:897
#29 0x08048876 in ___start ()
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20451>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #20451] uncontrolled thread creation / crash,
Riccardo mottola <=