summaryrefslogtreecommitdiff
path: root/open_issues/gdb_attach.mdwn
blob: 8f1b7b48b10ee34d59e48ec97ba05ed903fe8f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[[!meta copyright="Copyright © 2012 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

[[!meta title="GDB: attach"]]

[[!tag open_issue_gdb]]


# [[gdb_thread_ids]]


# IRC, freenode, #hurd, 2012-06-30

    <braunr> hm, gdb isn't able to determine which thread is running when
      attaching to a process


# IRC, freenode, #hurd, 2012-07-02

    <braunr> woah, now that's a weird message !
    <braunr> when using gdb on a hanged ext2fs :
    <braunr> Pid 938 has an additional task suspend count of 1; clear it? (y or
      n) 
    <braunr> when hanged, gdb thinks the target task is already being debugged
      :/
    <braunr> no wonder why it's completely stuck
    <braunr> hm, the task_suspend might actually be the crash-dump-core server
      attempting to create the core :/
    <braunr> hm interesting, looks like a problem with the
      diskfs_catch_exception macro
    <pinotree> braunr: what's up with it?
    <braunr> pinotree: it uses setjmp
    <braunr> hm random corruptions :/
    <braunr> definitely looks like a concurrency problem


# IRC, freenode, #hurd, 2012-05-23

    <pinotree>
      /build/buildd-gdb_7.4really-1-hurd-i386-UKStgK/gdb-7.4really/gdb/thread.c:72:
      internal-error: inferior_thread: Assertion `tp' failed.
    <pinotree> arg
    <tschwinge> pinotree: Been doing anything "special"?   Is it reproducible? 
    <pinotree> trying to debug something
    <tschwinge> Indeed.  ;-)
    <pinotree> i'm not sure i'm doing anything special, just trying to attach a
      process
    <tschwinge> That is supposed to work.
    <tschwinge> If the permission match.