[erlang-bugs] Floating point exception (core dumped) in beam

Maximillian Dornseif md@REDACTED
Wed Dec 12 08:09:53 CET 2007



Mikael Pettersson-3 wrote:
> 
> Can you disassemble pthread_testcancel() up to and including the
> instruction
> at 0x281a731b?
> 

That was more than I thought. The full Output is available at
http://static.23.nu/md/Pictures/diss-beam.txt , below is a clipped version.

Regards

Maximillian

gdb) disassemble pthread_testcancel
Dump of assembler code for function pthread_testcancel:
0x281a692c <pthread_testcancel+0>:      push   %ebp
0x281a692d <pthread_testcancel+1>:      mov    %esp,%ebp
0x281a692f <pthread_testcancel+3>:      push   %edi
0x281a6930 <pthread_testcancel+4>:      push   %esi
0x281a6931 <pthread_testcancel+5>:      push   %ebx
0x281a6932 <pthread_testcancel+6>:      sub    $0xc,%esp
0x281a6935 <pthread_testcancel+9>:      call   0x281a693a
<pthread_testcancel+14>
0x281a693a <pthread_testcancel+14>:     pop    %ebx
0x281a693b <pthread_testcancel+15>:     add    $0x3b82,%ebx
0x281a6941 <pthread_testcancel+21>:     mov    %gs:0x0,%edx
0x281a6948 <pthread_testcancel+28>:     mov    $0x0,%eax
0x281a694d <pthread_testcancel+33>:     test   %edx,%edx
0x281a694f <pthread_testcancel+35>:     je     0x281a6954
<pthread_testcancel+40>
...
0x281a725e <pthread_testcancel+2354>:   ret    
0x281a725f <pthread_testcancel+2355>:   nop    
0x281a7260 <pthread_testcancel+2356>:   push   %ebp
0x281a7261 <pthread_testcancel+2357>:   mov    %esp,%ebp
0x281a7263 <pthread_testcancel+2359>:   push   %ebx
0x281a7264 <pthread_testcancel+2360>:   sub    $0x10,%esp
0x281a7267 <pthread_testcancel+2363>:   call   0x281a726c
<pthread_testcancel+2368>
0x281a726c <pthread_testcancel+2368>:   pop    %ebx
0x281a726d <pthread_testcancel+2369>:   add    $0x3250,%ebx
0x281a7273 <pthread_testcancel+2375>:   push   $0x0
0x281a7275 <pthread_testcancel+2377>:   call   0x281a3bb8
<pthread_setconcurrency+1668>
0x281a727a <pthread_testcancel+2382>:   mov    0xfffffffc(%ebp),%ebx
0x281a727d <pthread_testcancel+2385>:   leave  
0x281a727e <pthread_testcancel+2386>:   ret    
0x281a727f <pthread_testcancel+2387>:   nop    
0x281a7280 <pthread_testcancel+2388>:   push   %ebx
0x281a7281 <pthread_testcancel+2389>:   call   0x281a7286
<pthread_testcancel+2394>
0x281a7286 <pthread_testcancel+2394>:   pop    %ebx
0x281a7287 <pthread_testcancel+2395>:   add    $0x3236,%ebx
0x281a728d <pthread_testcancel+2401>:   jmp    0x281a7638
<pthread_testcancel+3340>
0x281a7292 <pthread_testcancel+2406>:   mov    %esi,%esi
0x281a7294 <pthread_testcancel+2408>:   mov    $0xe8,%eax
0x281a7299 <pthread_testcancel+2413>:   int    $0x80
0x281a729b <pthread_testcancel+2415>:   jb     0x281a7280
<pthread_testcancel+2388>
0x281a729d <pthread_testcancel+2417>:   ret    
0x281a729e <pthread_testcancel+2418>:   nop    
0x281a729f <pthread_testcancel+2419>:   nop    
0x281a72a0 <pthread_testcancel+2420>:   push   %ebx
0x281a72a1 <pthread_testcancel+2421>:   call   0x281a72a6
<pthread_testcancel+2426>
0x281a72a6 <pthread_testcancel+2426>:   pop    %ebx
0x281a72a7 <pthread_testcancel+2427>:   add    $0x3216,%ebx
0x281a72ad <pthread_testcancel+2433>:   jmp    0x281a7638
<pthread_testcancel+3340>
0x281a72b2 <pthread_testcancel+2438>:   mov    %esi,%esi
0x281a72b4 <pthread_testcancel+2440>:   mov    $0x17d,%eax
---Type <return> to continue, or q <return> to quit---
0x281a72b9 <pthread_testcancel+2445>:   int    $0x80
0x281a72bb <pthread_testcancel+2447>:   jb     0x281a72a0
<pthread_testcancel+2420>
0x281a72bd <pthread_testcancel+2449>:   ret    
0x281a72be <pthread_testcancel+2450>:   nop    
0x281a72bf <pthread_testcancel+2451>:   nop    
0x281a72c0 <pthread_testcancel+2452>:   push   %ebx
0x281a72c1 <pthread_testcancel+2453>:   call   0x281a72c6
<pthread_testcancel+2458>
0x281a72c6 <pthread_testcancel+2458>:   pop    %ebx
0x281a72c7 <pthread_testcancel+2459>:   add    $0x31f6,%ebx
0x281a72cd <pthread_testcancel+2465>:   jmp    0x281a7638
<pthread_testcancel+3340>
0x281a72d2 <pthread_testcancel+2470>:   mov    %esi,%esi
0x281a72d4 <pthread_testcancel+2472>:   mov    $0x17b,%eax
0x281a72d9 <pthread_testcancel+2477>:   int    $0x80
0x281a72db <pthread_testcancel+2479>:   jb     0x281a72c0
<pthread_testcancel+2452>
0x281a72dd <pthread_testcancel+2481>:   ret    
0x281a72de <pthread_testcancel+2482>:   nop    
0x281a72df <pthread_testcancel+2483>:   nop    
0x281a72e0 <pthread_testcancel+2484>:   push   %ebx
0x281a72e1 <pthread_testcancel+2485>:   call   0x281a72e6
<pthread_testcancel+2490>
0x281a72e6 <pthread_testcancel+2490>:   pop    %ebx
0x281a72e7 <pthread_testcancel+2491>:   add    $0x31d6,%ebx
0x281a72ed <pthread_testcancel+2497>:   jmp    0x281a7638
<pthread_testcancel+3340>
0x281a72f2 <pthread_testcancel+2502>:   mov    %esi,%esi
0x281a72f4 <pthread_testcancel+2504>:   mov    $0x17f,%eax
0x281a72f9 <pthread_testcancel+2509>:   int    $0x80
0x281a72fb <pthread_testcancel+2511>:   jb     0x281a72e0
<pthread_testcancel+2484>
0x281a72fd <pthread_testcancel+2513>:   ret    
0x281a72fe <pthread_testcancel+2514>:   nop    
0x281a72ff <pthread_testcancel+2515>:   nop    
0x281a7300 <pthread_testcancel+2516>:   push   %ebx
0x281a7301 <pthread_testcancel+2517>:   call   0x281a7306
<pthread_testcancel+2522>
0x281a7306 <pthread_testcancel+2522>:   pop    %ebx
0x281a7307 <pthread_testcancel+2523>:   add    $0x31b6,%ebx
0x281a730d <pthread_testcancel+2529>:   jmp    0x281a7638
<pthread_testcancel+3340>
0x281a7312 <pthread_testcancel+2534>:   mov    %esi,%esi
0x281a7314 <pthread_testcancel+2536>:   mov    $0x17e,%eax
0x281a7319 <pthread_testcancel+2541>:   int    $0x80
0x281a731b <pthread_testcancel+2543>:   jb     0x281a7300
<pthread_testcancel+2516>
0x281a731d <pthread_testcancel+2545>:   ret    
0x281a731e <pthread_testcancel+2546>:   nop    
0x281a731f <pthread_testcancel+2547>:   nop    
0x281a7320 <pthread_testcancel+2548>:   push   %ebx
0x281a7321 <pthread_testcancel+2549>:   call   0x281a7326
<pthread_testcancel+2554>
0x281a7326 <pthread_testcancel+2554>:   pop    %ebx
0x281a7327 <pthread_testcancel+2555>:   add    $0x3196,%ebx
0x281a732d <pthread_testcancel+2561>:   jmp    0x281a7638
<pthread_testcancel+3340>


-- 
View this message in context: http://www.nabble.com/Floating-point-exception-%28core-dumped%29-in-beam-tp14208305p14282109.html
Sent from the Erlang Bugs mailing list archive at Nabble.com.




More information about the erlang-bugs mailing list