Advertisement
Guest User

Untitled

a guest
May 9th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. Adding a print statement in eglibc-2.11.2/mach/msgserver.c
  2. (void) (*demux) (&request->Head, &reply->Head);
  3. assert (reply->Head.msgh_size <= max_size);
  4. fprintf(stderr,".");
  5. switch (reply->RetCode)
  6.  
  7. ans recompiling libc.so.0.3
  8. makes the long lasting ghc configuration suddenly work:
  9.  
  10. cd ~/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/random
  11. LD_LIBRARY_PATH=~/DEBs/eglibc/eglibc-2.11.2/build-tree/hurd-i386-libc/ gdb /home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/cabal-bin
  12. (gdb) dir ...
  13. (gdb) break msgserver.c:74
  14. (gdb) run /usr/bin/ghc6 /home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/bootstrapping.conf configure --verbose=3 --with-compiler=/home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/ghc/stage1-inplace/ghc --with-hc-pkg=/home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/utils/ghc-pkg/install-inplace/bin/ghc-pkg
  15. ...
  16. (only two threads present)
  17. Program exited normally.
  18.  
  19. Creates libraries/random/dist/setup-config. Previously it just hang!
  20.  
  21. When using the installed glibc:
  22. ^C when hanging
  23. Adding a print statement in eglibc-2.11.2/mach/msgserver.c
  24. (void) (*demux) (&request->Head, &reply->Head);
  25. assert (reply->Head.msgh_size <= max_size);
  26. fprintf(stderr,".");
  27. switch (reply->RetCode)
  28.  
  29. ans recompiling libc.so.0.3
  30. makes the long lasting ghc configuration suddenly work:
  31.  
  32. cd ~/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/random
  33. LD_LIBRARY_PATH=~/DEBs/eglibc/eglibc-2.11.2/build-tree/hurd-i386-libc/ gdb /home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/cabal-bin
  34. (gdb) dir ...
  35. (gdb) break msgserver.c:74
  36. (gdb) run /usr/bin/ghc6 /home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/libraries/bootstrapping.conf configure --verbose=3 --with-compiler=/home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/ghc/stage1-inplace/ghc --with-hc-pkg=/home/srs/DEBs/ghc/ghc6-6.10.1+dfsg1/utils/ghc-pkg/install-inplace/bin/ghc-pkg
  37. ...
  38. (only two threads present)
  39. Program exited normally.
  40.  
  41. Creates libraries/random/dist/setup-config. Previously it just hang!
  42.  
  43. When using the installed glibc:
  44. ^C when hanging
  45. (three threads present)
  46. Program received signal SIGINT, Interrupt.
  47. 0x01113970 in trampoline () from /lib/libc.so.0.3
  48. (gdb) info threads
  49. 6 Thread 19821.6 0x010f7f4c in mach_msg_trap ()
  50. at /home/buildd/build/chroot-sid/home/buildd/byhand/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
  51. 5 Thread 19821.5 0x010f7f4c in mach_msg_trap ()
  52. at /home/buildd/build/chroot-sid/home/buildd/byhand/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
  53. * 4 Thread 19821.4 0x01113970 in trampoline () from /lib/libc.so.0.3
  54.  
  55. (gdb) thread apply all bt
  56.  
  57. Thread 6 (Thread 19821.6):
  58. #0 0x010f7f4c in mach_msg_trap ()
  59. at /home/buildd/build/chroot-sid/home/buildd/byhand/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
  60. #1 0x010f8749 in __mach_msg (msg=0x29fd4, option=1282, send_size=0,
  61. rcv_size=0, rcv_name=127, timeout=20, notify=0) at msg.c:110
  62. #2 0x01195608 in timer_thread () at ../sysdeps/mach/hurd/setitimer.c:91
  63. Cannot access memory at address 0x2a000
  64.  
  65. Thread 5 (Thread 19821.5):
  66. #0 0x010f7f4c in mach_msg_trap ()
  67. at /home/buildd/build/chroot-sid/home/buildd/byhand/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
  68. #1 0x010f8749 in __mach_msg (msg=0x17fef30, option=2, send_size=0,
  69. rcv_size=4096, rcv_name=119, timeout=0, notify=0) at msg.c:110
  70. #2 0x010f8e04 in __mach_msg_server_timeout (demux=0x1109980 <msgport_server>,
  71. max_size=4096, rcv_name=119, option=0, timeout=0) at msgserver.c:101
  72. #3 0x010f8f4b in __mach_msg_server (demux=0x1109980 <msgport_server>,
  73. max_size=4096, rcv_name=119) at msgserver.c:196
  74. #4 0x0110994f in _hurd_msgport_receive () at msgportdemux.c:68
  75. #5 0x01274c3c in entry_point (
  76. start_routine=0x11098e0 <_hurd_msgport_receive>, arg=0x0)
  77. at /home/buildd/build/chroot-sid/home/buildd/byhand/hurd/./libpthread/pthread/pt-create.c:50
  78. #6 0x00000000 in ?? ()
  79.  
  80. Thread 4 (Thread 19821.4):
  81. #0 0x01113970 in trampoline () from /lib/libc.so.0.3
  82. #1 0x0000000e in ?? ()
  83. #2 0x00000000 in ?? ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement