Advertisement
Guest User

gforth 0.7.3 */

a guest
Dec 16th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.08 KB | None | 0 0
  1. $ gdb -q $(readlink -f $(command -v gforth))
  2. Reading symbols from /usr/bin/gforth-0.7.3...(no debugging symbols found)...done.
  3.  
  4. (gdb) r
  5. Starting program: /usr/bin/gforth-0.7.3
  6. Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc.
  7. Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
  8. Type `bye' to exit
  9. ' */ HEX U. 41F130 ok
  10.  
  11. Program received signal SIGINT, Interrupt.
  12. eax 0xfffffe00 -512
  13. ecx 0xbffff20b -1073745397
  14. edx 0x1 1
  15. ebx 0x0 0
  16. esp 0xbffff158 0xbffff158
  17. ebp 0xbffff20b 0xbffff20b
  18. esi 0xb7f515a0 -1208674912
  19. edi 0x1 1
  20. eip 0xb7fd9cf9 0xb7fd9cf9 <__kernel_vsyscall+9>
  21. eflags 0x246 [ PF ZF IF ]
  22. cs 0x73 115
  23. ss 0x7b 123
  24. ds 0x7b 123
  25. es 0x7b 123
  26. fs 0x0 0
  27. gs 0x33 51
  28. 0xb7fd9cf9 in __kernel_vsyscall ()
  29.  
  30. (gdb) x/x 0x41F130
  31. 0x41f130: 0x00409e89
  32.  
  33. (gdb) b *0x00409e89
  34. Breakpoint 1 at 0x409e89
  35.  
  36. (gdb) def hook-stop
  37. Redefine command "hook-stop"? (y or n) y
  38. Type commands for definition of "hook-stop".
  39. End with a line saying just "end".
  40. >info reg
  41. >end
  42.  
  43. (gdb) display/4i $pc
  44. 3: x/4i $pc
  45. => 0xb7fd9cf9 <__kernel_vsyscall+9>: pop %ebp
  46. 0xb7fd9cfa <__kernel_vsyscall+10>: pop %edx
  47. 0xb7fd9cfb <__kernel_vsyscall+11>: pop %ecx
  48. 0xb7fd9cfc <__kernel_vsyscall+12>: ret
  49.  
  50. (gdb) c
  51. Continuing.
  52. 7FFFFFFF 2 1 */
  53.  
  54. eax 0x41f130 4321584
  55. ecx 0x409e89 4234889
  56. edx 0x433d34 4406580
  57. ebx 0xb7999f50 -1214668976
  58. esp 0xbffff230 0xbffff230
  59. ebp 0x41edd0 0x41edd0
  60. esi 0xb7fc4ff4 -1208201228
  61. edi 0xb799c598 -1214659176
  62. eip 0x409e89 0x409e89 <gforth_engine+3289>
  63. eflags 0x282 [ SF IF ]
  64. cs 0x73 115
  65. ss 0x7b 123
  66. ds 0x7b 123
  67. es 0x7b 123
  68. fs 0x0 0
  69. gs 0x33 51
  70.  
  71. Breakpoint 1, 0x00409e89 in gforth_engine ()
  72. 3: x/4i $pc
  73. => 0x409e89 <gforth_engine+3289>: lea 0x4b10(%ebp),%eax
  74. 0x409e8f <gforth_engine+3295>: mov %ebx,0x24(%esp)
  75. 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
  76. 0x409e95 <gforth_engine+3301>: mov %esi,%edi
  77.  
  78. (gdb) stepi
  79. eax 0x4238e0 4339936
  80. ecx 0x409e89 4234889
  81. edx 0x433d34 4406580
  82. ebx 0xb7999f50 -1214668976
  83. esp 0xbffff230 0xbffff230
  84. ebp 0x41edd0 0x41edd0
  85. esi 0xb7fc4ff4 -1208201228
  86. edi 0xb799c598 -1214659176
  87. eip 0x409e8f 0x409e8f <gforth_engine+3295>
  88. eflags 0x282 [ SF IF ]
  89. cs 0x73 115
  90. ss 0x7b 123
  91. ds 0x7b 123
  92. es 0x7b 123
  93. fs 0x0 0
  94. gs 0x33 51
  95. 0x00409e8f in gforth_engine ()
  96. 3: x/4i $pc
  97. => 0x409e8f <gforth_engine+3295>: mov %ebx,0x24(%esp)
  98. 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
  99. 0x409e95 <gforth_engine+3301>: mov %esi,%edi
  100. 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
  101.  
  102. (gdb) stepi
  103. eax 0x4238e0 4339936
  104. ecx 0x409e89 4234889
  105. edx 0x433d34 4406580
  106. ebx 0xb7999f50 -1214668976
  107. esp 0xbffff230 0xbffff230
  108. ebp 0x41edd0 0x41edd0
  109. esi 0xb7fc4ff4 -1208201228
  110. edi 0xb799c598 -1214659176
  111. eip 0x409e93 0x409e93 <gforth_engine+3299>
  112. eflags 0x282 [ SF IF ]
  113. cs 0x73 115
  114. ss 0x7b 123
  115. ds 0x7b 123
  116. es 0x7b 123
  117. fs 0x0 0
  118. gs 0x33 51
  119. 0x00409e93 in gforth_engine ()
  120. 3: x/4i $pc
  121. => 0x409e93 <gforth_engine+3299>: mov %ebx,(%eax)
  122. 0x409e95 <gforth_engine+3301>: mov %esi,%edi
  123. 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
  124. 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
  125.  
  126. (gdb) stepi
  127. eax 0x4238e0 4339936
  128. ecx 0x409e89 4234889
  129. edx 0x433d34 4406580
  130. ebx 0xb7999f50 -1214668976
  131. esp 0xbffff230 0xbffff230
  132. ebp 0x41edd0 0x41edd0
  133. esi 0xb7fc4ff4 -1208201228
  134. edi 0xb799c598 -1214659176
  135. eip 0x409e95 0x409e95 <gforth_engine+3301>
  136. eflags 0x282 [ SF IF ]
  137. cs 0x73 115
  138. ss 0x7b 123
  139. ds 0x7b 123
  140. es 0x7b 123
  141. fs 0x0 0
  142. gs 0x33 51
  143. 0x00409e95 in gforth_engine ()
  144. 3: x/4i $pc
  145. => 0x409e95 <gforth_engine+3301>: mov %esi,%edi
  146. 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
  147. 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
  148. 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
  149.  
  150. (gdb) stepi
  151. eax 0x4238e0 4339936
  152. ecx 0x409e89 4234889
  153. edx 0x433d34 4406580
  154. ebx 0xb7999f50 -1214668976
  155. esp 0xbffff230 0xbffff230
  156. ebp 0x41edd0 0x41edd0
  157. esi 0xb7fc4ff4 -1208201228
  158. edi 0xb7fc4ff4 -1208201228
  159. eip 0x409e97 0x409e97 <gforth_engine+3303>
  160. eflags 0x282 [ SF IF ]
  161. cs 0x73 115
  162. ss 0x7b 123
  163. ds 0x7b 123
  164. es 0x7b 123
  165. fs 0x0 0
  166. gs 0x33 51
  167. 0x00409e97 in gforth_engine ()
  168. 3: x/4i $pc
  169. => 0x409e97 <gforth_engine+3303>: mov 0x4(%esi),%eax
  170. 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
  171. 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
  172. 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
  173.  
  174. (gdb) stepi
  175. eax 0x2 2
  176. ecx 0x409e89 4234889
  177. edx 0x433d34 4406580
  178. ebx 0xb7999f50 -1214668976
  179. esp 0xbffff230 0xbffff230
  180. ebp 0x41edd0 0x41edd0
  181. esi 0xb7fc4ff4 -1208201228
  182. edi 0xb7fc4ff4 -1208201228
  183. eip 0x409e9a 0x409e9a <gforth_engine+3306>
  184. eflags 0x282 [ SF IF ]
  185. cs 0x73 115
  186. ss 0x7b 123
  187. ds 0x7b 123
  188. es 0x7b 123
  189. fs 0x0 0
  190. gs 0x33 51
  191. 0x00409e9a in gforth_engine ()
  192. 3: x/4i $pc
  193. => 0x409e9a <gforth_engine+3306>: mov (%esi),%ebx
  194. 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
  195. 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
  196. 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
  197.  
  198. (gdb) stepi
  199. eax 0x2 2
  200. ecx 0x409e89 4234889
  201. edx 0x433d34 4406580
  202. ebx 0x1 1
  203. esp 0xbffff230 0xbffff230
  204. ebp 0x41edd0 0x41edd0
  205. esi 0xb7fc4ff4 -1208201228
  206. edi 0xb7fc4ff4 -1208201228
  207. eip 0x409e9c 0x409e9c <gforth_engine+3308>
  208. eflags 0x282 [ SF IF ]
  209. cs 0x73 115
  210. ss 0x7b 123
  211. ds 0x7b 123
  212. es 0x7b 123
  213. fs 0x0 0
  214. gs 0x33 51
  215. 0x00409e9c in gforth_engine ()
  216. 3: x/4i $pc
  217. => 0x409e9c <gforth_engine+3308>: imull 0x8(%edi)
  218. 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
  219. 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
  220. 0x409ea4 <gforth_engine+3316>: idiv %ebx
  221.  
  222. (gdb) x/4wx $edi
  223. 0xb7fc4ff4: 0x00000001 0x00000002 0x7fffffff 0x00000000
  224.  
  225. (gdb) stepi
  226. eax 0xfffffffe -2
  227. ecx 0x409e89 4234889
  228. edx 0x0 0
  229. ebx 0x1 1
  230. esp 0xbffff230 0xbffff230
  231. ebp 0x41edd0 0x41edd0
  232. esi 0xb7fc4ff4 -1208201228
  233. edi 0xb7fc4ff4 -1208201228
  234. eip 0x409e9f 0x409e9f <gforth_engine+3311>
  235. eflags 0xa83 [ CF SF IF OF ]
  236. cs 0x73 115
  237. ss 0x7b 123
  238. ds 0x7b 123
  239. es 0x7b 123
  240. fs 0x0 0
  241. gs 0x33 51
  242. 0x00409e9f in gforth_engine ()
  243. 3: x/4i $pc
  244. => 0x409e9f <gforth_engine+3311>: lea 0x8(%esi),%esi
  245. 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
  246. 0x409ea4 <gforth_engine+3316>: idiv %ebx
  247. 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
  248.  
  249. (gdb) x/4wx $esi
  250. 0xb7fc4ff4: 0x00000001 0x00000002 0x7fffffff 0x00000000
  251.  
  252. (gdb) stepi
  253. eax 0xfffffffe -2
  254. ecx 0x409e89 4234889
  255. edx 0x0 0
  256. ebx 0x1 1
  257. esp 0xbffff230 0xbffff230
  258. ebp 0x41edd0 0x41edd0
  259. esi 0xb7fc4ffc -1208201220
  260. edi 0xb7fc4ff4 -1208201228
  261. eip 0x409ea2 0x409ea2 <gforth_engine+3314>
  262. eflags 0xa83 [ CF SF IF OF ]
  263. cs 0x73 115
  264. ss 0x7b 123
  265. ds 0x7b 123
  266. es 0x7b 123
  267. fs 0x0 0
  268. gs 0x33 51
  269. 0x00409ea2 in gforth_engine ()
  270. 3: x/4i $pc
  271. => 0x409ea2 <gforth_engine+3314>: mov %edx,%ecx
  272. 0x409ea4 <gforth_engine+3316>: idiv %ebx
  273. 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
  274. 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
  275.  
  276. (gdb) stepi
  277. eax 0xfffffffe -2
  278. ecx 0x0 0
  279. edx 0x0 0
  280. ebx 0x1 1
  281. esp 0xbffff230 0xbffff230
  282. ebp 0x41edd0 0x41edd0
  283. esi 0xb7fc4ffc -1208201220
  284. edi 0xb7fc4ff4 -1208201228
  285. eip 0x409ea4 0x409ea4 <gforth_engine+3316>
  286. eflags 0xa83 [ CF SF IF OF ]
  287. cs 0x73 115
  288. ss 0x7b 123
  289. ds 0x7b 123
  290. es 0x7b 123
  291. fs 0x0 0
  292. gs 0x33 51
  293. 0x00409ea4 in gforth_engine ()
  294. 3: x/4i $pc
  295. => 0x409ea4 <gforth_engine+3316>: idiv %ebx
  296. 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
  297. 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
  298. 0x409eac <gforth_engine+3324>: jns 0x409ecf <gforth_engine+3359>
  299.  
  300. (gdb) stepi
  301.  
  302. Program received signal SIGFPE, Arithmetic exception.
  303. eax 0xfffffffe -2
  304. ecx 0x0 0
  305. edx 0x0 0
  306. ebx 0x1 1
  307. esp 0xbffff230 0xbffff230
  308. ebp 0x41edd0 0x41edd0
  309. esi 0xb7fc4ffc -1208201220
  310. edi 0xb7fc4ff4 -1208201228
  311. eip 0x409ea4 0x409ea4 <gforth_engine+3316>
  312. eflags 0x10a83 [ CF SF IF OF RF ]
  313. cs 0x73 115
  314. ss 0x7b 123
  315. ds 0x7b 123
  316. es 0x7b 123
  317. fs 0x0 0
  318. gs 0x33 51
  319. 0x00409ea4 in gforth_engine ()
  320. 3: x/4i $pc
  321. => 0x409ea4 <gforth_engine+3316>: idiv %ebx
  322. 0x409ea6 <gforth_engine+3318>: xor %ecx,%ebx
  323. 0x409ea8 <gforth_engine+3320>: mov %eax,0x18(%esp)
  324. 0x409eac <gforth_engine+3324>: jns 0x409ecf <gforth_engine+3359>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement