Click here to Skip to main content
11,708,974 members (66,420 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
hi,

I have a C program where i am writing a record in string to a file , i am getting coredump.
When i opened coredump with gdb to get stacktrace i get this error message

(Internal error: pc 0x4070db in read in psymtab, but not in symtab.)

Please suggest if someone has faced this issue.

Thanks in advance
Posted 9-Apr-13 17:58pm
Comments
Richard MacCutchan at 10-Apr-13 3:46am
   
Try stepping through your code to see where the crash occurs.
CPallini at 10-Apr-13 3:55am
   
Could you please post the relevant code here?
Sergey Alexandrovich Kryukov at 16-Apr-13 0:37am
   
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership. And the fact you even self-accepted some formally is just outrageous, a sure way for a ban. I hope you won't do it after this warning.

Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is a gdb's bug,see more information here.
When you write something to a file,you should check if the file stream pointer is NULL,make sure the file path is correct.
If it is possible, show your code directly.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 360
1 Maciej Los 235
2 Mika Wendelius 170
3 OriginalGriff 158
4 Peter Leow 139
0 OriginalGriff 9,348
1 Sergey Alexandrovich Kryukov 8,727
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 10 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100