d*******n 发帖数: 369 | 1 那厮说了个软件名,没听清。态度很差。懒得再追问。谁知道,能不能指点一下?就是
当你碰到segmentation fault时,用什么软件去track down (通过back tracing) 问
题从哪儿来的.多谢了! |
|
l*0 发帖数: 195 | 2 $ fqterm
[info 0 fqterm_trace.cpp: 44, setMaxTraceLevel] The upper bound of maximum
trace level is 1
[info 0 fqterm_trace.cpp: 46, setMaxTraceLevel] The maximum trace level is
set to 1
Segmentation fault
$
有人遇到么?怎么解决?
fqterm 版本是
""fqterm" 0.9.6.8-1 source package in The Maverick Meerkat"
See
https://launchpad.net/ubuntu/maverick/+package/fqterm |
|
d**o 发帖数: 864 | 3 segmentation faut....
最讨厌看见这个了. |
|
w*s 发帖数: 7227 | 4 【 以下文字转载自 Programming 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Programming
标 题: segmentation fault as soon as entering 1 function in the arm processor board
发信站: BBS 未名空间站 (Sat Dec 15 22:20:01 2012, 美东)
Hi everyone,
i'm lost on this one, can someone give me some hints ?
1. downloaded latest stunnel package from web
2. build in the host linux and runs fine
3. build for arm target (am using the same settings from before,
my task is to upgrade to latest stunnel)
4. builds ok, when run in arm board, seg fau... 阅读全帖 |
|
b***s 发帖数: 2 | 5 Hi there,
I'm programming segmentation fault signal handling.
I can catch the memory address and also the instruction which causes the fault
. Is there an easy
way to tell whether that instruction is a load or store instruction? Of course
, a solution would be to
derive that by decoding the instruction. Even for that solution, I'm not clear
on how to do it quickly
given the big instruction set of IA32...
Gaven |
|
n***a 发帖数: 1373 | 6 I have a C code wich is running totally fine at my local linux marchine.
But if I qsub it to PBS to run, PBS will terminate the program for "
Segmentation fault".
What could be the problem for that? |
|
m*********t 发帖数: 399 | 7 我猜想你的程序是用到了网络通讯收发package并且定义了 #pragma pack 1 的数据结
构。
Segment Fault 基本上都是因为你访问了非4-byte align的内存地址。
检查代码里有没有 #pragma pack 1 的数据结构定义,并且把某成员地址强行 cast 到
一个 int 指针。 |
|
m*********e 发帖数: 37 | 8 I implemented a simple list class. There is a member function "=", which
define the assignment two list.
When I am testing the list class with following code, I got very weird
segmentation fault.
******************************************************
int main()
{
IntList a;
int i;
for(i=0; i<3; i++)
{
a.add_entry(1);
}
IntList b;
for(i=0; i<1; i++)
{
b.add_entry(100);
}
char s;
|
|
C******e 发帖数: 6 | 9 今天遇到一个神奇的错误
有一个别人写好的类,我试图在里面加两个short int类型的public成员变量
结果是这样的,如果我把这两个成员变量加在public:和构造函数中间,就会产生
segmentation fault;如果放在所有成员变量和成员函数的最后,就没有错误
有人知道这是为什么吗? |
|
A*********l 发帖数: 2005 | 10 As some people suggested, first try clean full build. Every binary using
that class needs to be rebuilt.
If it still has segmentation fault, hook up a debugger to the process and
let it run. When it crashes, you will see the call stack in the debugger,
that's the best way to solve such problems. There are so many possible
causes here.
One possibity is: Say this class is A, and a A* is cast to B*, because
originally A and B has the same memory layout up to certain point. And the
code is trying to |
|
x******a 发帖数: 6336 | 11 请问这个mergesort有什么问题?编译时没问题, 执行时提示Segmentation fault 11
多谢。
#include
using namespace std;
void merge(int a[], int const left, int const mid, int const right)
{
int* b=new int[right-left];
int h,i,j,k;
h=left;
i=0;
j=mid;
//merges the two array's into b[] till the first is finished
while((h
{
if(a[h]<=a[j])
{
b[i]=a[h];
h++;
}
else
{
b[i]=a[j];
j++;
}
i++;
}
//completes the array filling i... 阅读全帖 |
|
z********i 发帖数: 568 | 12 typo.原文已修改。就是这样,还有segmentation fault. |
|
b*******s 发帖数: 5216 | 13 楼主,segment fault一般就是两个原因导致的,一个是指针瞎指,一个是地址没有对
齐,你从这两个方面入手,基本常见的都会找到原因 |
|
z********i 发帖数: 568 | 14 个人观点,没有测试。
1. isblank returns true for both blank and tab.
2. for "const char *source", source can be modifed. So no need of "const
char *s".
3. since source_len is given, "while(*s++)" is not good, may have
segmentation fault if the parameters are not correct.
4. the way of memory allocation(double at each reallocation) is not space
efficient.
5. "used" is never increased in the loop.
知道memcpy,常常想不起来用它。见这程序用了,所以觉得有意思。 |
|
g*****n 发帖数: 1 | 15 Help!!!
whenever the user or even root try to use lp and its related commands,
the output is always segmentation fault.
Any suggestion to resolve this issue would be greatly appreciated |
|
l****p 发帖数: 12 | 16 I wrote a PS/SQL file (.pc), which runs ok on Unix. however,
when I tried
to use script command to output all the steps into a file,
it generated
a "segmentation fault". I am wondering is this because the
program uses the
local stack allocated by script which is too small?
thanks in advance. |
|
p*****m 发帖数: 31 | 17 【 以下文字转载自 Linux 讨论区 】
【 原文由 problem 所发表 】
如题,我们的程序是用标准C写的.
在sun/hp/alpha上都没有问题,但是在linux上编译后
运行某一case时会在调用malloc时死掉.
有关信息是:
Program received signal SIGSEGV, Segmentation fault.
0x400b8929 in chunk_free (ar_ptr=0x40156c00, p=0xb7c09274) at malloc.c:3115
不知哪位大狭能提供帮助?
其他平台上用的都不是gcc,
linux上用的是gcc2.95-2,
os 为 redhat 7.0
(2.2.16-22 )
我怀疑是不是编译时结构变量是否要双字对齐或者类似的问题,
还是linux os的问
因为在sun下作过purify,没有内存问题
br /> |
|
gw 发帖数: 2175 | 18 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: gw (唧唧歪歪~~~~要饭糊口), 信区: Programming
标 题: 请教: intel fortran 的 segmentation fault
发信站: Unknown Space - 未名空间 (Wed Jun 1 19:45:21 2005) WWW-POST
这里都是讨论C++的, 不知道在哪儿问关于FORTRAN的编程问题.
我有一个fortran程序, 在 windows 下用 compaq virtual fortran
编绎运行都没有问题,连结果都是正确的.
可是现在想在 linux 下用 intel fortran 编译运行( 编译器是 ifort (efc) ),
编绎没有问题,可是运行时出现错误:
/opt/intel/compiler70/ia64/lib/libunwind.so.4: undefined symbol:
GetImageHeader
forrtl: severe ( |
|
s*j 发帖数: 7 | 19 在xp下装了一个Cygwin,用gdb debug一个小例子程序,设了断点后,就出现了上面的错
误。。Program received signal SIGSEGV, Segmentation fault. 这个程序拿到其他装
Cynwin的机子上debug,没有什么问题。
google了一下这个问题,看到说 You need to simplefy your PATH. The main probl
em you're having is that you're
mixing UNIX TOOL PACKAGES. 建议add `export
PATH=/bin:/usr/bin:/usr/local/bin:/what/ever/other/paths:." to your ~/.bashr
c file。加了以后,好像还是不行。
请指点一下。谢谢。 |
|
|
v*******y 发帖数: 5530 | 21 你想要什么样的data
另外你想怎么取data
一般的annual segment data
seg_annfund里面就有啊 |
|
p*w 发帖数: 124 | 22 我的一个程序, 把array size扩大64倍后, 出现,
./program
segmentation fail
什么都没做就failed了.
没有array越界的问题.
array的大小是double 64*128*128
不算大.
查linux system monitor, 1.9G of 2.0G is used.
不知是什么愿因?
有谁知道么? 谢谢. |
|
n****y 发帖数: 106 | 23 我用c, pthread,多线程 读一个很大(32M)的文件,这个文件都是数据
每个线程对一小部分 sort, 然后再合成一个大文件sort.
问题是,如果文件比较小,无论我多少线程,都可以,是对的
但是如果,用这个很大的文件(32M),如果只用一个或者两个线程的话,会segmentation
error,但是如果线程数>=3, 那么一切ok.
这种情况会是什么原因呢?谢谢
我都free了dynamic allocated memory.
谢谢 |
|
|
y*w 发帖数: 238 | 25 32M不是很大,你的code要贴出来看看才知道
segmentation |
|
f***a 发帖数: 329 | 26 2d的时候可以
先plot()
然后用points()加additional points
用segments()连线段
用text()加字
3d情形呢?
plot3d{rgl}画出来的图还能加东西进去么?
scaterplot3d()呢?
多谢~ |
|
d*******o 发帖数: 493 | 27 你做的research我不太懂,Retail方向的也没接触过。看样子你没用过商业上面的建模
工具吧,比如
SAS EM或者SPSS Modeler. Customer segmentation技术上分两种:supervised 和
unsupervised.方法上分两种:value-based和behavior-based. 如果找工作的话,建议
找个平
台练习一下build和deploy model.实在找不到用开源的weka和R也行。
5 |
|
x********u 发帖数: 64 | 28 大家说说都有哪些方法可以做segmentation model? |
|
t*****8 发帖数: 157 | 29 请大家推荐一本关于segmentation的书,thx |
|
v*******a 发帖数: 1193 | 30 在unix下 用一个 set 时出现下面的error:
Segmentation Violation In Task
dataset也不算太大,600,000rows的样子 column很多
是怎么回事? 大家知道吗? |
|
s****u 发帖数: 1200 | 31 很迷茫。本来数据直接fit结果勉强能看。结果用miner搞了个decision tree之后,把
这个变量作为segmentation variable,把数据劈成两半。结果每个node 建的模型反而
更差了。这是为什么啊? 而且劈两半后,两个数据的average sales明显有巨大差距了
。照理说fit该更牛才对啊。 为什么啊,为什么啊....
★ 发自iPhone App: ChineseWeb 7.8 |
|
l******n 发帖数: 9344 | 32 你segmentation的target和你model evaluation不一致 |
|
m******e 发帖数: 1399 | 33 当然是这样啦。越分每个segment会更差。但总的来说,整个model还是提高了的。
★ 发自iPhone App: ChineseWeb 7.3 |
|
m******e 发帖数: 89 | 34 我知道怎么做scaling 但是不知道怎么做aligment cross segments. 能给点详细的指
点吗? 或者有什么书有相关的内容?
十分感谢! |
|
m******e 发帖数: 89 | 35 谢谢回复! 这里 “alignment之后同样的Score值在每个Segment上对应相同的风险”
的风险是指 BAD RATE OR ODDS 吗?如果是指ODDS 或者 BAD RATE 的话,那么 if i
have original log odds or probabilty from logistic regression, can i
directly compare them? Thanks ! |
|
m******e 发帖数: 89 | 36 我想我大概明白了。问题是如果我在10% 上calibrate two segments, how can i
make sure they are also aligned at 5%, 1% ?
Thans a lot!
make |
|
a***g 发帖数: 2761 | 37
logistic
如果是segmented regression不是就一个model么,怎么有50个model? |
|
A*******s 发帖数: 3942 | 38 在logistic regression在应用之前,银行的scorecard(评分表)其实就是简单地把申请
人的资料逐项打分(itemized and score),最后看看相加的总分是否超过了阈值。评分
表也不仅仅是在银行里用,social/medical/psychological research也很常见。评分
表的最重要的性质是每项分数的可加性,而我们都知道概率一般是不可加的(除非
underlying events are mutually exclusive),只有log odds有很好的可加性,也恰
好对应了logistic regression里面beta的意义。这是为什么logistic regression实际
应用非常广泛的原因,也是score应该是log odds的线性变换的原因。
具体到楼主的这个问题,要看阿三这个model的应用是否需要itemized scorecard的存
在。如果不需要的话,确实没必要转换成score,直接用probability即可。如果每个
segment的sampling weights是一样的话,当然可以直接一起用。 |
|
f*******n 发帖数: 2665 | 39 多谢你的分析。这个model里每个segment的prior肯定是不一样的, |
|
|
g******r 发帖数: 3 | 41 I am looking for papers and examples for volume segmentation. Bull people,
please, provide me the useful materials.
Thanks a lot. |
|
g*2 发帖数: 658 | 42 刚刚把堆积了几个星期的nejm翻看了一下,居然在11月底的那期case discussion就是
讲得这个病
http://www.nejm.org/doi/full/10.1056/NEJMcpc1103565
Case 36-2011 — A 93-Year-Old Woman with Shortness of Breath and Chest Pain
Presentation of Case
Dr. Pooja Agrawal (Emergency Medicine): A 93-year-old woman was seen in the
emergency department at this hospital because of chest pain and shortness of
breath.
The patient had been in her usual state of health, with hypertension and
chronic renal insufficiency, until the morning of admission, wh... 阅读全帖 |
|
w****x 发帖数: 2483 | 43 public class RacerScore
{
static public class Segment
{
int id = -1;
int beg = 0;
int end = 0;
Segment(int i, int b, int e)
{
id = i;
beg = b;
end = e;
}
}
static public class comp implements Comparator
{
public int compare(Segment s1, Segment s2)
{
return s1.beg - s2.beg;
}
}
static public void getScores(Segment[] segs, int ... 阅读全帖 |
|
f**d 发帖数: 768 | 44 这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖 |
|
l*********y 发帖数: 142 | 45 #include
#include
#include
#include
#include
#include
#include
|
|
X*******6 发帖数: 306 | 46 (转)
This is fake news.
昨天,中新社和新华社同时发文(新浪等国内媒体转载),用中英双语宣布ABC公开道歉
并且称Kid's Table将被取消
今天再到google上一搜,标题还在,但是正文已经改了,说是ABC的spokesman
私下里给中新社新华社联系,但新华社回拨了电话无人接听
虽然是 ABC 自己网站上面的,可是没有任何 ABC 的高管 take responsibility。上次
就算是给80-20的信还有高管签名呢,这个news link什么都不算的。这就是一个狡猾
的fake。
很明显ABC/Disney已经感觉到了压力,我们需要继续努力,取得他们真正的道歉。
真正的道歉我认为必须 ABC的 CEO或者President在ABC自己的公司和新闻 主页 公布亲
自签名的诚恳道歉信。
您的位置: 文学城首页 » 滚动新闻 » ABC正式道歉了 Press release声
明中承认了错误
ABC正式道歉了 Press release声明中承认了错误
文章来源: 综合新闻 于 2013-11-11 08:06:08 - 新闻取自各大... 阅读全帖 |
|
发帖数: 1 | 47
Download pdf published by SfN (Chapter from 'The History of Neuroscience in
Autobiography, Volume 8' edited by Larry R. Squire)
Yuh-Nung Jan's CV
Lily Jan's CV
Yuh-Nung Jan and Lily Jan
Birth
Family History and Growing Up
National Taiwan University
The Hiking Trip to Shitou in the Spring of 1967
Graduate School Application
Graduate Study at Caltech (1968锟974)
Seymour Benzer Lab (1974锟977)
Steve Kuffler锟絪 Lab at H... 阅读全帖 |
|
l*********u 发帖数: 19053 | 48 Last year was extremely good for the American car industry. Sales of light
vehicles rose by 5.9% to more than 16.5 million on the back of low gas
prices, consumer-friendly interest rates, and an improving domestic economy.
Yet, for some models, 2014 was not a banner year. Instead, these nine models
were discontinued in 2014. Four of these models were manufactured by one of
Honda Motor Company's (HMC) brands, Acura or Honda. Other brands that cut
at least one model from their lineups were Fiat Ch... 阅读全帖 |
|
l*********y 发帖数: 142 | 49 #include
#include
#include
using namespace std;
struct Segment {
Segment(int l, int r) : left(l), right(r) {};
int left;
int right;
};
vector input;
vector output;
void MergeInput(vector& input, Segment& cand)
{
int left = cand.left;
int right = cand.right;
// 处理边界情况
if (input.size() == 0 || cand.right < input.front().left || cand.left >
input.back().right) {
output.push_back(Segment(cand.left, cand.right... 阅读全帖 |
|
S**I 发帖数: 15689 | 50 ☆─────────────────────────────────────☆
honeydream (pretty) 于 (Fri May 6 00:30:21 2011, 美东) 提到:
下面这个程序为啥会segmentation fault呢?
int main(void)
{
char *p1, *p2;
*p1 = 'a';
*p2 = 'b';
printf("%c %c\n", *p1, *p2);
return 0;
}
如果我不用指针,把p1,p2的星号都去掉,就可以输出正确结果。
☆─────────────────────────────────────☆
chenpp (chenpp) 于 (Fri May 6 00:31:43 2011, 美东) 提到:
p1和p2浮空,指向未定义的地址空间。
对未定义的地址空间进行读写操作会导致未定义的行为,包括段错。
☆─────────────────────────────────────☆
mercuriusl (Mercurius) 于 (Fri May 6 ... 阅读全帖 |
|