Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

touch() crashes Xorg

by jbryan (Acolyte)
on Sep 29, 2012 at 03:28 UTC ( #996328=perlquestion: print w/ replies, xml ) Need Help??
jbryan has asked for the wisdom of the Perl Monks concerning the following question:

Silly me - I forgot to import File::Touch. So when I added line 85 (as seen here) my script did not exit with an "Undefined subroutine" error (as perl -e 'touch("/tmp/test")' does) - no, it rudely crashes my entire friggin X server!

The question is: why? And what am I really calling when I call touch() if I didn't use File::Touch? (The next rev on that file linked above does use File::Touch - and, wonder of wonders, X doesn't crash.) But the question remains - why in the world does calling touch() without File::Touch being used cause X to crash? (This crash happens on two different machines, both running CentOS, both running NVidia display drivers.)

My program works now that I use File::Touch, the emergency is over - now I'm just mad - mad that something simple like that causes X to crash - with no rhyme or reason, no messages in /var/log/messages, /var/log/Xorg*.log - nothing. Like I said, this is more personal pride at figuring out why than a need to fix it - the program works, now I want to know why it broke to begin with. Any pointers, wise monks?

Comment on touch() crashes Xorg
Download Code
Re: touch() crashes Xorg
by irirgem (Novice) on Sep 29, 2012 at 03:55 UTC
    Interesting question

    ExtUtils::Command uses:


Re: touch() crashes Xorg
by Anonymous Monk on Sep 29, 2012 at 06:25 UTC



    Crash isn't specific enough :)


      1. I run my script (perl tests/propogate.t)
      2. Script starts (output on STDOUT observed)
      3. Entire display goes black
      4. NVIDIA logo appears (using nvidia drivers)
      5. Gnome login manager appears, prompting me to login
      7. Go back to 1 - process is 100% repeatable

      A couple of notes:





Re: touch() crashes Xorg
by Anonymous Monk on Sep 29, 2012 at 16:02 UTC
    Lacking log, have you run tried getting output via ktrace (in FreeBSD at least), ltrace, strace, trace-cmd, truss, and the like?
      My knowledge and awareness of such commands is limited at best. I shall go forth and Google. Thanks for the arrow toward enlightenment, mate!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://996328]
Approved by Athanasius
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
As of 2014-12-29 03:30 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (184 votes), past polls