New topic | Post reply


Segmentation fault

When i Commit ,the deimos project crashes.... Im using gentoo with kernel 2.6.24-gentoo-r8. I compiled Deimos 0.57 with these options: --with-wx-config CFLAGS="-march=athlon-xp" CXXFLAGS="-march=athlon-xp" CHOST="i686-pc-linux-gnu"

And here is the output in konsole:
cappy@cappy-gentoo ~/Sources/Deimos/deimos-0.57 $ deimos
22:10:44: Client 0.57 starting...
22:10:44: Deleted stale lock file '/home/cappy/Deimos-cappy'.
22:10:44: Starting input-thread
22:10:44: Loaded snapshots file, it contained 3 snapshots
22:10:47: Creating new snapshot, duration: 3
22:10:47: Written 4 snapshots to snapshots file, hash: 0E8C38BCCC2A84CBD0B94671D264DCC4
Segmentation fault

dmesg:

[15189.442720] deimos[25546]: segfault at bfd96000 eip b7771a38 esp bfd92740 error 4
[15221.552149] deimos[25556]: segfault at bfc10000 eip b776cb2a esp bfc0bf5c error 4
[15254.392642] deimos[25559]: segfault at bf9fe000 eip b777fb2a esp bf9fa54c error 4
[15269.651682] deimos[25561]: segfault at 00000000 eip 0806159a esp bfc711d0 error 4
[15346.065645] deimos[28486]: segfault at bfdc3000 eip b77e0b2a esp bfdbe91c error 4
[15560.316652] deimos[31430]: segfault at bfb6b000 eip b77dcb2a esp bfb66ebc error 4
[15677.377562] deimos[1914]: segfault at b70e7088 eip 0805af19 esp bfb52a90 error 7
[16753.091275] deimos[2222]: segfault at b70db088 eip 0805af19 esp bff5de90 error 7
[16841.808953] deimos[2252]: segfault at b707d088 eip 0805af19 esp bfb7cc50 error 7
[20905.502454] deimos[9135]: segfault at bfaf2000 eip b77feb2a esp bfaeeabc error 4

I fixed it .... touch /etc/issue.net <- that fixed it

Thanks for reporting. I have fixed it in my code. :)

It would be better if you can include bash script to do: "cat /etc/*-release" instead of /etc/issue.net and print it to the other part in program. I dont know C/C++, if i did i would make it. :)

In 0.70 I'm using the "lsb_release -d" command (instead of /etc/issue.net).

Every modern Linux distribution should support it. (Could you test it in your Gentoo?)

There is the distro name. I changed the source code to search there the name of distro.(just for me)
#if defined(__LINUX__)
// I'm not using wxFile or wxFFile because those can't just read the first line
// TODO: Make it use lsb_release
FILE *fp = fopen("/etc/gentoo-release", "r";);
if ( fp )
etc....

And here is the output of /etc/gentoo-release:
Gentoo Base System release 1.12.11.1

I don't have such a command.
cappy@cappy-gentoo ~ $ lsb_release -d
bash: lsb_release: command not found

With what package does it come ?

I found the package, for gentoo users you should include sys-apps/lsb-release as dependency. emerge sys-apps/lsb-release to install it. :) If you need something about gentoo ask me. :)

You could add me at MSN/GTalk (dutchmega@gmail.com) /ICQ (105450205) :)

I don't have either of them. Skype/IRC ? If you don't have i will install ICQ

No, sorry.

I also have Yahoo/AIM (dutchmeganl)

New topic | Post reply

Latest news


Login


Latest forum


Global stats

23 users in 1 teams with 126 computers committed 210 284 hours of stats and posted 104 messages.