You are not logged in.
Sorry for the delay. Yes, I get a seg fault.
14:28:45 ~
$ cd accuweather_conky_mod
accuw curr_cond_raw last_days_raw Remove_Open_With.txt
accuw.c draw-bg.lua ms.conky tod_ton
curr_cond last_days no tod_ton_raw
14:28:49 ~/accuweather_conky_mod
$ gdb accuw
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sector11/accuweather_conky_mod/accuw...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/sector11/accuweather_conky_mod/accuw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400d31 in main ()
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/sector11/accuweather_conky_mod/accuw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400d31 in main ()
(gdb) Hope that helps.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Compile it with the -g option to enable debugging, ie
gcc accuw.c -o accuw -lcurl -gand rerun gdb to find out exactly where the segfault occurs.
Now that I see the code with a clear head (and also writing the C port of the weather.com script), I notice a few bugs myself.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Compile it with the -g option to enable debugging, ie
gcc accuw.c -o accuw -lcurl -gand rerun gdb to find out exactly where the segfault occurs.
Now that I see the code with a clear head (and also writing the C port of the weather.com script), I notice a few bugs myself.
As Yoda would say:
Follow instructions I can.
I understand not the results. Herh herh herh.
15:06:27 ~
$ cd accuweather_conky_mod
accuw.c draw-bg.lua ms.conky tod_ton
curr_cond last_days no tod_ton_raw
curr_cond_raw last_days_raw Remove_Open_With.txt
15:06:38 ~/accuweather_conky_mod
$ gcc accuw.c -o accuw -lcurl -g
15:06:57 ~/accuweather_conky_mod
$ gdb accuw
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sector11/accuweather_conky_mod/accuw...done.
(gdb) run
Starting program: /home/sector11/accuweather_conky_mod/accuw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400d31 in main () at accuw.c:22
22 *(strstr(c,"\n"))='\0';
(gdb) Other than line 22 
Last edited by Sector11 (2012-05-26 18:11:31)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
That's extremely helpful; thanks a lot.
EDIT: As a matter of fact, that explains everything, thanks again.
That part of the code searches for the pid of conky. If a single instance of conky is running, the pid is ensured to fit in a 10 char array (c[10]).
In your case, running 100 conkys or something, the return value of pidof conky is something like 12434 13535 433433 34453 23433 54333 etc.
This output could never fit in a 10 character array and therefore the segfault.
EDIT2: Confirmed: it segfaults mercilessly when more than one conkys is running. In the new version I'm currently playing with, I'll make sure that the program can pause all instances of conky.
PS: gdb kicks ass.
Last edited by TeoBigusGeekus (2012-06-11 07:52:02)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
That's extremely helpful; thanks a lot.
PS: gdb kicks ass.
hahahahaha 100 conkys, no, just 10. 
you may be right about gdb, but you rock!
However, it's good to know that the problem can be fixed and SUPER GOOD to know that my ability to break things actually helped. 
I'm kidding about the breaking things - even though I do.
Last edited by Sector11 (2012-05-26 20:50:04)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
TeoBigusGeekus wrote:That's extremely helpful; thanks a lot.
PS: gdb kicks ass.
hahahahaha 100 conkys, no, just 10.
you may be right about gdb, but you rock!
However, it's good to know that the problem can be fixed and SUPER GOOD to know that my ability to break things actually helped.
I'm kidding about the breaking things - even though I do.
Thanks for the feedback man!
I'll just force popen to call kill -STOP $(pidof conky) immediately, without trying to complicate things even more in the C part.
I mean, since I cheat calling it, why not go all the way?
EDIT: If you run the program with 1 or less conkys running, you'll see that it doesn't segfault.
Last edited by TeoBigusGeekus (2012-05-26 20:55:00)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
See - just 10:
17:54:11 ~
$ ps aux | grep conky
sector11 1678 0.0 0.1 151040 8068 ? S 09:44 0:05 conky -c /home/sector11/Conky/S11_Cal_br.conky
sector11 1679 0.0 0.1 136596 6892 ? S 09:44 0:12 conky -c /home/sector11/Conky/VO_Radiotray.conky
sector11 1680 0.3 0.1 159540 7976 ? Sl 09:44 1:37 conky -c /home/sector11/Conky/S11_UT2.conky
sector11 1681 1.1 0.1 366152 10676 ? Rl 09:44 5:41 conky -c /home/sector11/Conky/S11_v9_R.conky
sector11 1682 0.0 0.1 151068 7996 ? S 09:44 0:00 conky -c /home/sector11/Conky/S11_Rem_Cal.conky
sector11 1683 0.0 0.1 190136 8744 ? S 09:44 0:00 conky -c /home/sector11/Conky/S11_Dates.conky
sector11 1684 0.0 0.1 192960 9488 ? S 09:44 0:00 conky -c /home/sector11/Conky/S11_v9_SM.conky
sector11 1685 0.4 0.1 159304 8124 ? Sl 09:44 2:20 conky -c /home/sector11/Conky/S11_VNS.conky
sector11 1686 0.0 0.1 193556 10112 ? S 09:44 0:00 conky -c /home/sector11/Conky/S11_v9_H.conky
sector11 1687 0.7 0.1 207508 10024 ? S 09:44 3:31 conky -c /home/sector11/Conky/S11_24_white.conky
sector11 20048 0.0 0.0 7804 848 pts/0 S+ 17:54 0:00 grep conky
17:54:21 ~
$ #! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
See - just 10:
You disappoint me... 
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
EDIT: If you run the program with 1 or less conkys running, you'll see that it doesn't segfault.
Test 1: No conky:
17:57:02 ~
$ cd accuweather_conky_mod
accuw curr_cond_raw last_days_raw Remove_Open_With.txt
accuw.c draw-bg.lua ms.conky tod_ton
curr_cond last_days no tod_ton_raw
17:57:10 ~/accuweather_conky_mod
$ gdb accuw
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sector11/accuweather_conky_mod/accuw...done.
(gdb) run
Starting program: /home/sector11/accuweather_conky_mod/accuw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
p11-kit: duplicate configured module: gnome-keyring-module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
[Inferior 1 (process 20622) exited normally]
(gdb)Test 2: 1 conky:
17:59:02 ~
$ ps aux | grep conky
sector11 20627 0.2 0.1 193316 9900 ? S 17:58 0:00 conky -c /home/sector11/Conky/S11_v9_H.conky
sector11 20633 0.0 0.0 7800 848 pts/0 S+ 17:59 0:00 grep conky
17:59:04 ~
$ 17:59:47 ~
$ cd accuweather_conky_mod
accuw curr_cond draw-bg.lua last_days_raw no tod_ton
accuw.c curr_cond_raw last_days ms.conky Remove_Open_With.txt tod_ton_raw
17:59:56 ~/accuweather_conky_mod
$ gdb accuw
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sector11/accuweather_conky_mod/accuw...done.
(gdb) run
Starting program: /home/sector11/accuweather_conky_mod/accuw
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
p11-kit: duplicate configured module: gnome-keyring-module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
[Inferior 1 (process 20691) exited normally]
(gdb) Yup confirmed.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Sector11 wrote:See - just 10:
You disappoint me...
Really? I have enough here to run over 100 if you really want to try it.

#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Go for it man... 
Seriously now, try to time the C version vs the bash one...
Bricks will be shat...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Go for it man...
Seriously now, try to time the C version vs the bash one...
Bricks will be shat...
Are you saying run as many conkys as I can and then run "C" and "Bash" or run 10 and "C & Bash" or just the two alone?
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
TeoBigusGeekus wrote:Go for it man...
Seriously now, try to time the C version vs the bash one...
Bricks will be shat...Are you saying run as many conkys as I can and then run "C" and "Bash" or run 10 and "C & Bash" or just the two alone?
The 2 alone of course; in its current version, the C one will segfault with more than 1 conkys running.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Sector11 wrote:TeoBigusGeekus wrote:Go for it man...
Seriously now, try to time the C version vs the bash one...
Bricks will be shat...Are you saying run as many conkys as I can and then run "C" and "Bash" or run 10 and "C & Bash" or just the two alone?
The 2 alone of course; in its current version, the C one will segfault with more than 1 conkys running.
Wait for it I have some neat results ... 5-6 minutes.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
NOTE: May C and May B(ash)
mainstream called just before ms - they arrive at the same time.
ms then mainstream - arrived at the same time again.
Then I tried:
conky -c ~/accuweather_conky_modified/mainstream.conky && conky -c ~/accuweather_conky_mod/ms.conky &Watched mainstream come in --- yawn --- did a KFC -- instantly ms was there!
Delay because of problems with imgBox - using ImgBam - DONE!
Last edited by Sector11 (2012-05-26 22:09:34)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
The segfault is because of the 2 conkys.
Wait a day or two for that...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
The segfault is because of the 2 conkys.
Wait a day or two for that...
Yup, I got that, just testing things 
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Please don't use the C version... yet.
It has some bugs which I'm correcting right now, along with the C version of the weather com script.
Have patience for a few days.
Ok thanks:)
Sorry for being impatient, but this is the best conky ever! 
Offline
TeoBigusGeekus wrote:Please don't use the C version... yet.
It has some bugs which I'm correcting right now, along with the C version of the weather com script.
Have patience for a few days.Ok thanks:)
Sorry for being impatient, but this is the best conky ever!
Thanks a lot mate!
Your patience will be rewarded (I hope
)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
mainstream wrote:Sorry for being impatient, but this is the best conky ever!
Thanks a lot mate!
Your patience will be rewarded (I hope)
@ mainstream
patience - yes.
hope - not required, it WILL be good! It's called faith!
Last edited by Sector11 (2012-05-27 16:47:29)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
patience - yes.
hope - not required, it WILL be good! It's called faith!
Who needs Faith? How 'bout tried, tested, and true results that go back months without any sort of evidence to contradict it? An AXIOM, if you will. 'Cause if you can find evidence to the contrary that Teo will pull some sort of miracle out of his ass, THAT would be impressive. He's literally never done anything else but do awesome. It's become an Axiom at this point. And, isn't it a famous quote now, that the definition of Insanity is repeating the same things, expecting different results?
So... Same thing here... Teo at work on something new... Axiom and the definition of Insanity considered? It will be Awesome. Teo doesn't like it when it's not. That's good enough for me.
Seriously... There are times he just... MAGICALLY pulls the solution out... often in record times!... Sometimes I worry he doesn't sleep, or he's skipping meals or something.
Last edited by 42dorian (2012-05-28 06:10:07)
Offline
Sometimes I worry he doesn't sleep, or he's skipping meals or something.
...or the current economic situation in Greece has buggered his business affairs leaving him with plenty of free time... 
Thanks anyway; the guys at weather.com by the way sure deserve their wages for making their page a total chaos.
Patience is all I ask...
Last edited by TeoBigusGeekus (2012-05-28 08:28:57)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
...or the current economic situation in Greece has buggered his business affairs leaving him with plenty of free time...
Had that thought in the back of my head but refused to let it out not wanting to give it the light of day. I sure hope things improve for you.
Thanks anyway; the guys at weather.com by the way sure deserve their wages for making their page a total chaos.
All ex-MS employees from the sounds of it.

Oh that was evil. 
Patience is all I ask...
Care for a cuppa java while we wait? How do you like it?
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
42dorian wrote:Sometimes I worry he doesn't sleep, or he's skipping meals or something.
...or the current economic situation in Greece has buggered his business affairs leaving him with plenty of free time...
Thanks anyway; the guys at weather.com by the way sure deserve their wages for making their page a total chaos.
Patience is all I ask...
Oh, take your time Teo. If you rush, I'll worry you over-worked yourself again
Like I said SOMETIMES I think you don't sleep or skip meals. Blows my mind how much work you put into these things.
Offline
Had that thought in the back of my head but refused to let it out not wanting to give it the light of day. I sure hope things improve for you.
Me too...
Care for a cuppa java while we wait? How do you like it?
Sure thing, but make it tea for me.
Oh, take your time Teo. If you rush, I'll worry you over-worked yourself again
Like I said SOMETIMES I think you don't sleep or skip meals. Blows my mind how much work you put into these things.
Almost there.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.