看板 NTUGIEE_EDA 關於我們 聯絡資訊
我現在弄的程式 跑一跑會出現問題 用gdb查 結果是 Program received signal SIGSEGV, Segmentation fault. CPaqpRegion::partition (this=0x8534390, isH=false, reg1=@0x8554fb8, reg2=@0x85 55004) at stl_vector.h:462 462 stl_vector.h: No such file or directory. in stl_vector.h 在eda4 (gcc3.4.1)上make,在eda6上面run... 有沒有人知道這是怎麼回事呢 -- 自信是好事,但不一定能成事。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.48.60
gwliao:要debug的話, 要下-g3 -ggdb的選項,最好將最佳化的-O拿掉 11/07 02:16
gwliao:包含-O -O1-O2 -O3 -Os,做最佳化就可能破壞debug所需的資訊 11/07 02:23
gwliao:還有要看core file的話, 要到compile的機器上! 11/07 02:25
gwliao:因為running的機器不一定有那些資訊! 11/07 02:26