Skip to content

Segmentation fault

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1708
    peijieyin
    Member

    Dear all,rnrnCould you explain me the why the segmentation fault happens when I am trying to decrease the pore size.rnrnFor example, to simulate fluid flow through single fracture with rough surface. The resolution and Umax as well as the Re is fixed.With specific rough surface, when I decrease the aperture, the segmentation fault presented.rnrnLooking forward to your responsernrnBest regardsrnrnPeijie

    #2049
    mathias
    Keymaster

    Dear Peijie,rnrn Can you localise the seg. fault by e.g. using a debuger? In which function call does it happen. Then, send the source code and all input parameter to bug(a)openlb.net. rnrnMathias

    #2050
    jepson
    Member

    Dear Mathias,rnrnSorry for the late response.rnrnThe debug shows that:rnrn(gdb) runrnStarting program: /home/peijie/lb06/jrc/25Jan2012/jrc rn*** glibc detected *** /home/peijie/lb06/jrc/25Jan2012/jrc: double free or corruption (out): 0x0000000000653280 ***rn======= Backtrace: =========rn/lib/x86_64-linux-gnu/libc.so.6(+0x7a6e6)[0x7ffff73146e6]rn/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7ffff73189cc]rn/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt13basic_filebufIcSt11char_traitsIcEE26_M_destroy_internal_bufferEv+0x1e)[0x7ffff7b4d5ce]rn/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv+0x4e)[0x7ffff7b4e3be]rn/home/peijie/lb06/jrc/25Jan2012/jrc[0x403cb6]rn/home/peijie/lb06/jrc/25Jan2012/jrc[0x406c13]rn/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ffff72bb30d]rn/home/peijie/lb06/jrc/25Jan2012/jrc[0x403099]rn======= Memory map: ========rn00400000-0044f000 r-xp 00000000 08:06 3942626 /home/peijie/lb06/jrc/25Jan2012/jrcrn0064f000-00650000 r–p 0004f000 08:06 3942626 /home/peijie/lb06/jrc/25Jan2012/jrcrn00650000-00651000 rw-p 00050000 08:06 3942626 /home/peijie/lb06/jrc/25Jan2012/jrcrn00651000-00674000 rw-p 00000000 00:00 0 [heap]rn7ffff0000000-7ffff0021000 rw-p 00000000 00:00 0 rn7ffff0021000-7ffff4000000 —p 00000000 00:00 0 rn7ffff729a000-7ffff7431000 r-xp 00000000 08:06 7873502 /lib/x86_64-linux-gnu/libc-2.13.sorn7ffff7431000-7ffff7630000 —p 00197000 08:06 7873502 /lib/x86_64-linux-gnu/libc-2.13.sorn7ffff7630000-7ffff7634000 r–p 00196000 08:06 7873502 /lib/x86_64-linux-gnu/libc-2.13.sorn7ffff7634000-7ffff7635000 rw-p 0019a000 08:06 7873502 /lib/x86_64-linux-gnu/libc-2.13.sorn7ffff7635000-7ffff763b000 rw-p 00000000 00:00 0 rn7ffff763b000-7ffff7650000 r-xp 00000000 08:06 7870255 /lib/x86_64-linux-gnu/libgcc_s.so.1rn7ffff7650000-7ffff784f000 —p 00015000 08:06 7870255 /lib/x86_64-linux-gnu/libgcc_s.so.1rn7ffff784f000-7ffff7850000 r–p 00014000 08:06 7870255 /lib/x86_64-linux-gnu/libgcc_s.so.1rn7ffff7850000-7ffff7851000 rw-p 00015000 08:06 7870255 /lib/x86_64-linux-gnu/libgcc_s.so.1rn7ffff7851000-7ffff78d4000 r-xp 00000000 08:06 7873506 /lib/x86_64-linux-gnu/libm-2.13.sorn7ffff78d4000-7ffff7ad3000 —p 00083000 08:06 7873506 /lib/x86_64-linux-gnu/libm-2.13.sorn7ffff7ad3000-7ffff7ad4000 r–p 00082000 08:06 7873506 /lib/x86_64-linux-gnu/libm-2.13.sorn7ffff7ad4000-7ffff7ad5000 rw-p 00083000 08:06 7873506 /lib/x86_64-linux-gnu/libm-2.13.sorn7ffff7ad5000-7ffff7bbd000 r-xp 00000000 08:06 7736261 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16rn7ffff7bbd000-7ffff7dbd000 —p 000e8000 08:06 7736261 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16rn7ffff7dbd000-7ffff7dc5000 r–p 000e8000 08:06 7736261 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16rn7ffff7dc5000-7ffff7dc7000 rw-p 000f0000 08:06 7736261 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16rn7ffff7dc7000-7ffff7ddc000 rw-p 00000000 00:00 0 rn7ffff7ddc000-7ffff7dfd000 r-xp 00000000 08:06 7864414 /lib/x86_64-linux-gnu/ld-2.13.sorn7ffff7fd3000-7ffff7fd8000 rw-p 00000000 00:00 0 rn7ffff7ff9000-7ffff7ffb000 rw-p 00000000 00:00 0 rn7ffff7ffb000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso]rn7ffff7ffc000-7ffff7ffd000 r–p 00020000 08:06 7864414 /lib/x86_64-linux-gnu/ld-2.13.sorn7ffff7ffd000-7ffff7fff000 rw-p 00021000 08:06 7864414 /lib/x86_64-linux-gnu/ld-2.13.sorn7ffffff99000-7ffffffff000 rw-p 00000000 00:00 0 [stack]rnffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]rnrnProgram received signal SIGSEGV, Segmentation fault.rn0x00007ffff73121ac in ?? () from /lib/x86_64-linux-gnu/libc.so.6rnrnThe source codes will be sent to your email.rnrnThanks a lot!rnrnPeijie

    #2051
    mathias
    Keymaster

    Dear Peijie,rnrnI propose to change the code using the cuboid-parallelisation with “”superLattice””. You will find an example in “”cylinder3d””. The 2d case is very similar.rnrnMathias

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.